FORTRAN Generation
(/./ftp/cats/J/ApJ/698/1)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/698/1 into FORTRAN code for reading data files line by line.

Note that special values are assigned to unknown or unspecified numbers (also called NULL numbers); when necessary, the coordinate components making up the right ascension and declination are converted into floating-point numbers representing these angles in degrees.



      program load_ReadMe
C=============================================================================
C  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-Oct-14
C=============================================================================
*  This code was generated from the ReadMe file documenting a catalogue
*  according to the "Standard for Documentation of Astronomical Catalogues"
*  currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
*  (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
*  Please report problems or questions to   
C=============================================================================

      implicit none
*  Unspecified or NULL values, generally corresponding to blank columns,
*  are assigned one of the following special values:
*     rNULL__    for unknown or NULL floating-point values
*     iNULL__    for unknown or NULL   integer      values
      real*4     rNULL__
      integer*4  iNULL__
      parameter  (rNULL__=--2147483648.)  	! NULL real number
      parameter  (iNULL__=(-2147483647-1))	! NULL int  number
      integer    idig			! testing NULL number

C=============================================================================
Cat. J/ApJ/698/1           Spitzer observations of NGC 2362           (Currie+, 2009)
*================================================================================
*The last gasp of gas giant planet formation: a Spitzer study of the 5 Myr old
*cluster NGC 2362.
*    Currie T., Lada C.J., Plavchan P., Robitaille T.P., Irwin J., Kenyon S.J.
*   <Astrophys. J., 698, 1-27 (2009)>
*   =2009ApJ...698....1C
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table1.dat'	! Photometry catalog for all stars on the NGC 2362
                             field

      integer*4 nr__
      parameter (nr__=8642)	! Number of records
      character*129 ar__   	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq         ! Running identification number (1)
      real*8        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        Vmag        ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  V band magnitude
      real*4        Rmag        ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  R band magnitude
      real*4        Imag        ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  I band magnitude
      real*4        Jmag        ! (mag) ? 2MASS J band magnitude
      real*4        Hmag        ! (mag) ? 2MASS H band magnitude
      real*4        Ksmag       ! (mag) ? 2MASS Ks band magnitude
      real*4        v3_6mag     ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude
      real*4        e_3_6mag    ! (mag) ? The 1{sigma} uncertainty in 3.6mag
      real*4        v4_5mag     ! (mag) ? Spitzer/IRAC 4.5 micron band magnitude
      real*4        e_4_5mag    ! (mag) ? The 1{sigma} uncertainty in 4.5mag
      real*4        v5_8mag     ! (mag) ? Spitzer/IRAC 5.8 micron band magnitude
      real*4        e_5_8mag    ! (mag) ? The 1{sigma} uncertainty in 5.8mag
      real*4        v8_0mag     ! (mag) ? Spitzer/IRAC 8.0 micron band magnitude
      real*4        e_8_0mag    ! (mag) ? The 1{sigma} uncertainty in 8.0mag
      real*4        v24mag      ! (mag) ? Spitzer/MIPS 24 micron band magnitude
      real*4        e_24mag     ! (mag) ? The 1{sigma} uncertainty in 24mag
*Note (1): Objects are
*  * <[CLP2009] NNNN> in Simbad for table 1 (this work),
*  * <Cl* NGC 2362 DH NNN> in Simbad for table 2 (Dahm & Hillenbrand 2007,
*          Cat. J/AJ/133/2072), 
*  * <[IHA2008b] N2362-N-NNNNN> in Simbad for table 3 (Irwin et al. (2008,
*          Cat. J/MNRAS/384/675)

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table2.dat'	! Photometry catalog for NGC 2362 cluster members

      integer*4 nr__1
      parameter (nr__1=337)	! Number of records
      character*129 ar__1  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq_1       ! Running identification number (1)
      real*8        RAdeg_1     ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_1     ! (deg) Declination in decimal degrees (J2000)
      real*4        Vmag_1      ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  V band magnitude
      real*4        Rmag_1      ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  R band magnitude
      real*4        Imag_1      ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  I band magnitude
      real*4        Jmag_1      ! (mag) ? 2MASS J band magnitude
      real*4        Hmag_1      ! (mag) ? 2MASS H band magnitude
      real*4        Ksmag_1     ! (mag) ? 2MASS Ks band magnitude
      real*4        v3_6mag_1   ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude
      real*4        e_3_6mag_1  ! (mag) ? The 1{sigma} uncertainty in 3.6mag
      real*4        v4_5mag_1   ! (mag) ? Spitzer/IRAC 4.5 micron band magnitude
      real*4        e_4_5mag_1  ! (mag) ? The 1{sigma} uncertainty in 4.5mag
      real*4        v5_8mag_1   ! (mag) ? Spitzer/IRAC 5.8 micron band magnitude
      real*4        e_5_8mag_1  ! (mag) ? The 1{sigma} uncertainty in 5.8mag
      real*4        v8_0mag_1   ! (mag) ? Spitzer/IRAC 8.0 micron band magnitude
      real*4        e_8_0mag_1  ! (mag) ? The 1{sigma} uncertainty in 8.0mag
      real*4        v24mag_1    ! (mag) ? Spitzer/MIPS 24 micron band magnitude
      real*4        e_24mag_1   ! (mag) ? The 1{sigma} uncertainty in 24mag
*Note (1): Objects are
*  * <[CLP2009] NNNN> in Simbad for table 1 (this work),
*  * <Cl* NGC 2362 DH NNN> in Simbad for table 2 (Dahm & Hillenbrand 2007,
*          Cat. J/AJ/133/2072), 
*  * <[IHA2008b] N2362-N-NNNNN> in Simbad for table 3 (Irwin et al. (2008,
*          Cat. J/MNRAS/384/675)

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table3.dat'	! Photometry catalog for NGC 2362 candidate members
                             from Irwin et al. (2008, Cat. J/MNRAS/384/675)

      integer*4 nr__2
      parameter (nr__2=1143)	! Number of records
      character*129 ar__2  	! Full-size record

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq_2       ! Running identification number (1)
      real*8        RAdeg_2     ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_2     ! (deg) Declination in decimal degrees (J2000)
      real*4        Vmag_2      ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  V band magnitude
      real*4        Rmag_2      ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  R band magnitude
      real*4        Imag_2      ! (mag) ? Dahm & Hillenbrand 2007, Cat. J/AJ/133/2072,
*                                  I band magnitude
      real*4        Jmag_2      ! (mag) ? 2MASS J band magnitude
      real*4        Hmag_2      ! (mag) ? 2MASS H band magnitude
      real*4        Ksmag_2     ! (mag) ? 2MASS Ks band magnitude
      real*4        v3_6mag_2   ! (mag) ? Spitzer/IRAC 3.6 micron band magnitude
      real*4        e_3_6mag_2  ! (mag) ? The 1{sigma} uncertainty in 3.6mag
      real*4        v4_5mag_2   ! (mag) ? Spitzer/IRAC 4.5 micron band magnitude
      real*4        e_4_5mag_2  ! (mag) ? The 1{sigma} uncertainty in 4.5mag
      real*4        v5_8mag_2   ! (mag) ? Spitzer/IRAC 5.8 micron band magnitude
      real*4        e_5_8mag_2  ! (mag) ? The 1{sigma} uncertainty in 5.8mag
      real*4        v8_0mag_2   ! (mag) ? Spitzer/IRAC 8.0 micron band magnitude
      real*4        e_8_0mag_2  ! (mag) ? The 1{sigma} uncertainty in 8.0mag
      real*4        v24mag_2    ! (mag) ? Spitzer/MIPS 24 micron band magnitude
      real*4        e_24mag_2   ! (mag) ? The 1{sigma} uncertainty in 24mag
*Note (1): Objects are
*  * <[CLP2009] NNNN> in Simbad for table 1 (this work),
*  * <Cl* NGC 2362 DH NNN> in Simbad for table 2 (Dahm & Hillenbrand 2007,
*          Cat. J/AJ/133/2072), 
*  * <[IHA2008b] N2362-N-NNNNN> in Simbad for table 3 (Irwin et al. (2008,
*          Cat. J/MNRAS/384/675)

C=============================================================================

C  Loading file 'table1.dat'	! Photometry catalog for all stars on the NGC 2362
*                             field

C  Format for file interpretation

    1 format(
     +  I4,1X,F8.4,1X,F8.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  F6.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,8642
        read(1,'(A129)')ar__
        read(ar__,1)
     +  Seq,RAdeg,DEdeg,Vmag,Rmag,Imag,Jmag,Hmag,Ksmag,v3_6mag,
     +  e_3_6mag,v4_5mag,e_4_5mag,v5_8mag,e_5_8mag,v8_0mag,e_8_0mag,
     +  v24mag,e_24mag
        if(ar__(24:29) .EQ. '') Vmag = rNULL__
        if(ar__(31:36) .EQ. '') Rmag = rNULL__
        if(ar__(38:43) .EQ. '') Imag = rNULL__
        if(ar__(45:50) .EQ. '') Jmag = rNULL__
        if(ar__(52:57) .EQ. '') Hmag = rNULL__
        if(ar__(59:64) .EQ. '') Ksmag = rNULL__
        if(ar__(66:71) .EQ. '') v3_6mag = rNULL__
        if(ar__(73:77) .EQ. '') e_3_6mag = rNULL__
        if(ar__(79:84) .EQ. '') v4_5mag = rNULL__
        if(ar__(86:90) .EQ. '') e_4_5mag = rNULL__
        if(ar__(92:97) .EQ. '') v5_8mag = rNULL__
        if(ar__(99:103) .EQ. '') e_5_8mag = rNULL__
        if(ar__(105:110) .EQ. '') v8_0mag = rNULL__
        if(ar__(112:116) .EQ. '') e_8_0mag = rNULL__
        if(ar__(118:123) .EQ. '') v24mag = rNULL__
        if(ar__(125:129) .EQ. '') e_24mag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq,RAdeg,DEdeg,Vmag,Rmag,Imag,Jmag,Hmag,Ksmag,v3_6mag,
     +  e_3_6mag,v4_5mag,e_4_5mag,v5_8mag,e_5_8mag,v8_0mag,e_8_0mag,
     +  v24mag,e_24mag
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table2.dat'	! Photometry catalog for NGC 2362 cluster members

C  Format for file interpretation

    2 format(
     +  I4,1X,F8.4,1X,F8.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  F6.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,337
        read(1,'(A129)')ar__1
        read(ar__1,2)
     +  Seq_1,RAdeg_1,DEdeg_1,Vmag_1,Rmag_1,Imag_1,Jmag_1,Hmag_1,
     +  Ksmag_1,v3_6mag_1,e_3_6mag_1,v4_5mag_1,e_4_5mag_1,v5_8mag_1,
     +  e_5_8mag_1,v8_0mag_1,e_8_0mag_1,v24mag_1,e_24mag_1
        if(ar__1(24:29) .EQ. '') Vmag_1 = rNULL__
        if(ar__1(31:36) .EQ. '') Rmag_1 = rNULL__
        if(ar__1(38:43) .EQ. '') Imag_1 = rNULL__
        if(ar__1(45:50) .EQ. '') Jmag_1 = rNULL__
        if(ar__1(52:57) .EQ. '') Hmag_1 = rNULL__
        if(ar__1(59:64) .EQ. '') Ksmag_1 = rNULL__
        if(ar__1(66:71) .EQ. '') v3_6mag_1 = rNULL__
        if(ar__1(73:77) .EQ. '') e_3_6mag_1 = rNULL__
        if(ar__1(79:84) .EQ. '') v4_5mag_1 = rNULL__
        if(ar__1(86:90) .EQ. '') e_4_5mag_1 = rNULL__
        if(ar__1(92:97) .EQ. '') v5_8mag_1 = rNULL__
        if(ar__1(99:103) .EQ. '') e_5_8mag_1 = rNULL__
        if(ar__1(105:110) .EQ. '') v8_0mag_1 = rNULL__
        if(ar__1(112:116) .EQ. '') e_8_0mag_1 = rNULL__
        if(ar__1(118:123) .EQ. '') v24mag_1 = rNULL__
        if(ar__1(125:129) .EQ. '') e_24mag_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Seq_1,RAdeg_1,DEdeg_1,Vmag_1,Rmag_1,Imag_1,Jmag_1,Hmag_1,
     +  Ksmag_1,v3_6mag_1,e_3_6mag_1,v4_5mag_1,e_4_5mag_1,v5_8mag_1,
     +  e_5_8mag_1,v8_0mag_1,e_8_0mag_1,v24mag_1,e_24mag_1
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table3.dat'	! Photometry catalog for NGC 2362 candidate members
*                             from Irwin et al. (2008, Cat. J/MNRAS/384/675)

C  Format for file interpretation

    3 format(
     +  I4,1X,F8.4,1X,F8.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  F6.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,1143
        read(1,'(A129)')ar__2
        read(ar__2,3)
     +  Seq_2,RAdeg_2,DEdeg_2,Vmag_2,Rmag_2,Imag_2,Jmag_2,Hmag_2,
     +  Ksmag_2,v3_6mag_2,e_3_6mag_2,v4_5mag_2,e_4_5mag_2,v5_8mag_2,
     +  e_5_8mag_2,v8_0mag_2,e_8_0mag_2,v24mag_2,e_24mag_2
        if(ar__2(24:29) .EQ. '') Vmag_2 = rNULL__
        if(ar__2(31:36) .EQ. '') Rmag_2 = rNULL__
        if(ar__2(38:43) .EQ. '') Imag_2 = rNULL__
        if(ar__2(45:50) .EQ. '') Jmag_2 = rNULL__
        if(ar__2(52:57) .EQ. '') Hmag_2 = rNULL__
        if(ar__2(59:64) .EQ. '') Ksmag_2 = rNULL__
        if(ar__2(66:71) .EQ. '') v3_6mag_2 = rNULL__
        if(ar__2(73:77) .EQ. '') e_3_6mag_2 = rNULL__
        if(ar__2(79:84) .EQ. '') v4_5mag_2 = rNULL__
        if(ar__2(86:90) .EQ. '') e_4_5mag_2 = rNULL__
        if(ar__2(92:97) .EQ. '') v5_8mag_2 = rNULL__
        if(ar__2(99:103) .EQ. '') e_5_8mag_2 = rNULL__
        if(ar__2(105:110) .EQ. '') v8_0mag_2 = rNULL__
        if(ar__2(112:116) .EQ. '') e_8_0mag_2 = rNULL__
        if(ar__2(118:123) .EQ. '') v24mag_2 = rNULL__
        if(ar__2(125:129) .EQ. '') e_24mag_2 = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Seq_2,RAdeg_2,DEdeg_2,Vmag_2,Rmag_2,Imag_2,Jmag_2,Hmag_2,
     +  Ksmag_2,v3_6mag_2,e_3_6mag_2,v4_5mag_2,e_4_5mag_2,v5_8mag_2,
     +  e_5_8mag_2,v8_0mag_2,e_8_0mag_2,v24mag_2,e_24mag_2
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end