FORTRAN Generation
(/./ftp/cats/J/ApJ/702/1507)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/702/1507 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/702/1507      Mid-IR photometry in IC 1396A      (Morales-Calderon+, 2009)
*================================================================================
*Mid-infrared variability of protostars in IC 1396A.
*    Morales-Calderon M., Stauffer J.R., Rebull L., Whitney B.A.,
*    Barrado y Navascues D., Ardila D.R., Song I., Brooke T.Y., Hartmann L.,
*    Calvet N.
*   <Astrophys. J., 702, 1507-1529 (2009)>
*   =2009ApJ...702.1507M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! New candidates photometry from the co-added
                             deep mosaics

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     ID          ! [60/74] YSO candidate name
*                                 (<[MSR2009] IC1396A-NN> in Simbad) (1)
      character*1   f_ID        ! [d] source close to a brighter one (2)
      integer*4     RAh         ! (h) Hour of right ascension (J2000)
      integer*4     RAm         ! (min) Minute of right ascension (J2000)
      real*4        RAs         ! (s) Second of right ascension (J2000)
      character*1   DE_         ! Sign of declination (J2000)
      integer*4     DEd         ! (deg) Degree of declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs         ! (arcsec) Arcsecond of declination (J2000)
      real*4        Jmag        ! (mag) ? 2MASS J-band magnitude
      character*1   l_Jmag      ! [c] c: upper limit
      real*4        e_Jmag      ! (mag) ? Jmag uncertainty
      real*4        Hmag        ! (mag) ? 2MASS H-band magnitude
      character*1   l_Hmag      ! [c] c: upper limit
      real*4        e_Hmag      ! (mag) ? Hmag uncertainty
      real*4        Ksmag       ! (mag) ? 2MASS Ks-band magnitude
      character*1   l_Ksmag     ! [c] c: upper limit
      real*4        e_Ksmag     ! (mag) ? Ksmag uncertainty
      real*4        v_3_6_      ! (mag) Spitzer/IRAC 3.6um-band magnitude
      real*4        e__3_6_     ! (mag) 3.6um-band magnitude uncertainty
      real*4        v_4_5_      ! (mag) Spitzer/IRAC 4.5um-band magnitude
      real*4        e__4_5_     ! (mag) 4.5um-band magnitude uncertainty
      real*4        v_5_8_      ! (mag) Spitzer/IRAC 5.8um-band magnitude
      real*4        e__5_8_     ! (mag) 5.8um-band magnitude uncertainty
      real*4        v_8_0_      ! (mag) ? Spitzer/IRAC 8.0um-band magnitude
      real*4        e__8_0_     ! (mag) ? 8.0um-band magnitude uncertainty
      real*4        v_24_       ! (mag) ? Spitzer 24um-band magnitude
      real*4        e__24_      ! (mag) ? 24um-band magnitude uncertainty
      character*2   Class       ! Candidate class (I or II)
*Note (1): Sicilia-Aguilar et al. (2006, Cat. J/ApJ/638/897)
*     identified 57 YSOs in this region and there are another two objects
*     that were identified by Reach et al. (2005PASP..117..978R), thus we
*     name our new candidate members beginning with number 60.
*Note (2): d = This object is very faint at 24um and it is located too close
*     to a brighter object to derive a reliable magnitude.

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

C  Declarations for 'table2.dat'	! Long-term variability: main results from mapping
                             data

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension J2000
      real*8        DEdeg_1     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     ID_1        ! [1/74] YSO candidate identification
*                               (<[MSR2009] IC1396A-NN> in Simbad)(1)
      character*1   f_ID_1      ! [f] Uncertain member (2)
      integer*4     RAh_1       ! (h) Hour of right ascension (J2000)
      integer*4     RAm_1       ! (min) Minute of right ascension (J2000)
      real*4        RAs_1       ! (s) Second of right ascension (J2000)
      character*1   DE__1       ! Sign of declination (J2000)
      integer*4     DEd_1       ! (deg) Degree of declination (J2000)
      integer*4     DEm_1       ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs_1       ! (arcsec) Arcsecond of declination (J2000)
      character*2   SA          ! YSO class as in Sicilia-Aguilar et al. (2006,
*                               Cat. J/ApJ/638/897)
      character*12  R04         ! ID and YSO Class as in Reach et al.
*                               (2004ApJS..154..385R)
      character*3   Class_1     ! YSO class in this paper (3)
      character*1   f_Class     ! [e] e: classification in disagreement with
*                               Sicilia-Aguilar et al. (2006, Cat. J/ApJ/638/897)
      real*4        v_3_6__1    ! (mag) Spitzer/IRAC 3.6um-band magnitude
      real*4        e__3_6__1   ! (mag) 3.6mag uncertainty
      real*4        rms1        ! 3.6um rms amplitude
      character*1   V1          ! [N/V] {chi}^2^ test variability result
      real*4        T1          ! (d) ? Variability timescale for the IRAC Ch. 1 (4)
      real*4        v_4_5__1    ! (mag) ? Spitzer/IRAC 4.5um-band magnitude
      real*4        e__4_5__1   ! (mag) ? 4.5mag uncertainty
      real*4        rms2        ! ? 4.5um rms amplitude
      character*1   V2          ! [N/V] {chi}^2^ test variability result
      real*4        T2          ! (d) ? Variability timescale for the IRAC Ch. 2 (4)
      real*4        Js          ! Stetson J statistic (Js>0.55 for a variable)
      character*1   Var         ! [N/V] Final variability tag
*Note (1): Objects are named following the order in Table 6 of
*     Sicilia-Aguilar et al. (2006, Cat. J/ApJ/638/897; note that not all
*     their members are included), objects 58 and 59 are YSOs from Reach et
*     al. (2004ApJS..154..385R) not in common with Sicilia-Aguilar et al.
*     (2006, Cat. J/ApJ/638/897), and objects from 60 to 74 are our new
*     candidate members from Table 1.
*Note (2): f = Uncertain cluster members following Sicilia-Aguilar et al.
*     (2006, Cat. J/ApJ/638/897).
*Note (3): Members in Sicilia-Aguilar et al. (2006, Cat. J/ApJ/638/897) that
*     do not show IR excess in our data have been classified as Class III.
*Note (4): Variability timescales rather than periods since the timespan of
*     our observations are not long enough to confirm the periodicity.

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

C  Declarations for 'table3.dat'	! Time series in the four IRAC bands for the
                             variable YSOs of our sample

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

      integer*4     ID_2        ! [1/74] Object ID
*                                 (<[MSR2009] IC1396A-NN> in Simbad)
      real*8        MJD         ! (d) Modified Julian Date
      real*4        v_3_6__2    ! (mag) ?=99.999 Spitzer/IRAC 3.6 micron band magnitude
      real*4        e__3_6__2   ! (mag) ?=9.999 Uncertainty in 3.6mag
      real*4        v_4_5__2    ! (mag) ?=99.999 Spitzer/IRAC 4.5 micron band magnitude
      real*4        e__4_5__2   ! (mag) ?=9.999 Uncertainty in 4.5mag
      real*4        v_5_8__1    ! (mag) ?=99.999 Spitzer/IRAC 5.8 micron band magnitude
      real*4        e__5_8__1   ! (mag) ?=9.999 Uncertainty in 5.8mag
      real*4        v_8_0__1    ! (mag) ?=99.999 Spitzer/IRAC 8.0 micron band magnitude
      real*4        e__8_0__1   ! (mag) ?=9.999 Uncertainty in 8.0mag

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

C  Declarations for 'table6.dat'	! Photometry for the variable objects found in the
                             field

      integer*4 nr__3
      parameter (nr__3=46)	! Number of records
      character*121 ar__3  	! Full-size record

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_2     ! (deg) Right Ascension J2000
      real*8        DEdeg_2     ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Seq         ! Object internal identification
*                                 (<[MSR2009] NNNN> in Simbad)
      integer*4     RAh_2       ! (h) Hour of right ascension (J2000)
      integer*4     RAm_2       ! (min) Minute of right ascension (J2000)
      real*4        RAs_2       ! (s) Second of right ascension (J2000)
      character*1   DE__2       ! Sign of declination (J2000)
      integer*4     DEd_2       ! (deg) Degree of declination (J2000)
      integer*4     DEm_2       ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs_2       ! (arcsec) Arcsecond of declination (J2000)
      real*4        Jmag_1      ! (mag) ? 2MASS J-band magnitude
      character*1   f_Jmag      ! [c] c: upper limit
      real*4        e_Jmag_1    ! (mag) ? Jmag uncertainty
      real*4        Hmag_1      ! (mag) ? 2MASS H-band magnitude
      real*4        e_Hmag_1    ! (mag) ? Hmag uncertainty
      real*4        Ksmag_1     ! (mag) ? 2MASS Ks-band magnitude
      character*1   f_Ksmag     ! [c] c: upper limit
      real*4        e_Ksmag_1   ! (mag) ? Ksmag uncertainty
      real*4        v_3_6__3    ! (mag) Spitzer/IRAC 3.6um-band magnitude
      real*4        e__3_6__3   ! (mag) Spitzer/IRAC 3.6um-band magnitude uncertainty
      real*4        v_4_5__3    ! (mag) Spitzer/IRAC 4.5um-band magnitude
      real*4        e__4_5__3   ! (mag) Spitzer/IRAC 4.5um-band magnitude uncertainty
      real*4        v_5_8__2    ! (mag) ? Spitzer/IRAC 5.8um-band magnitude
      real*4        e__5_8__2   ! (mag) ? Spitzer/IRAC 5.8um-band magnitude uncertainty
      real*4        v_8_0__2    ! (mag) ? Spitzer/IRAC 8.0um-band magnitude
      real*4        e__8_0__2   ! (mag) ? Spitzer/IRAC 8.0um-band magnitude uncertainty

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

C  Loading file 'table1.dat'	! New candidates photometry from the co-added
*                             deep mosaics

C  Format for file interpretation

    1 format(
     +  8X,I2,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,
     +  A1,1X,F5.3,1X,F6.3,A1,1X,F5.3,1X,F6.3,A1,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,1X,F5.3,
     +  1X,F5.3,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,15
        read(1,'(A144)')ar__
        read(ar__,1)
     +  ID,f_ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,l_Jmag,e_Jmag,Hmag,
     +  l_Hmag,e_Hmag,Ksmag,l_Ksmag,e_Ksmag,v_3_6_,e__3_6_,v_4_5_,
     +  e__4_5_,v_5_8_,e__5_8_,v_8_0_,e__8_0_,v_24_,e__24_,Class
        if(ar__(37:42) .EQ. '') Jmag = rNULL__
        if(ar__(45:49) .EQ. '') e_Jmag = rNULL__
        if(ar__(51:56) .EQ. '') Hmag = rNULL__
        if(ar__(59:63) .EQ. '') e_Hmag = rNULL__
        if(ar__(65:70) .EQ. '') Ksmag = rNULL__
        if(ar__(73:77) .EQ. '') e_Ksmag = rNULL__
        if(ar__(118:123) .EQ. '') v_8_0_ = rNULL__
        if(ar__(125:129) .EQ. '') e__8_0_ = rNULL__
        if(ar__(131:135) .EQ. '') v_24_ = rNULL__
        if(ar__(137:141) .EQ. '') e__24_ = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  ID,f_ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,l_Jmag,e_Jmag,Hmag,
     +  l_Hmag,e_Hmag,Ksmag,l_Ksmag,e_Ksmag,v_3_6_,e__3_6_,v_4_5_,
     +  e__4_5_,v_5_8_,e__5_8_,v_8_0_,e__8_0_,v_24_,e__24_,Class
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Long-term variability: main results from mapping
*                             data

C  Format for file interpretation

    2 format(
     +  8X,I2,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A2,1X,
     +  A12,1X,A3,A1,1X,F6.3,1X,F5.3,1X,F5.3,1X,A1,1X,F4.1,1X,F6.3,1X,
     +  F5.3,1X,F5.3,1X,A1,1X,F3.1,1X,E6.2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,69
        read(1,'(A116)')ar__1
        read(ar__1,2)
     +  ID_1,f_ID_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,SA,R04,
     +  Class_1,f_Class,v_3_6__1,e__3_6__1,rms1,V1,T1,v_4_5__1,
     +  e__4_5__1,rms2,V2,T2,Js,Var
        if(ar__1(79:82) .EQ. '') T1 = rNULL__
        if(ar__1(84:89) .EQ. '') v_4_5__1 = rNULL__
        if(ar__1(91:95) .EQ. '') e__4_5__1 = rNULL__
        if(ar__1(97:101) .EQ. '') rms2 = rNULL__
        if(ar__1(105:107) .EQ. '') T2 = rNULL__
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  ID_1,f_ID_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,SA,R04,
     +  Class_1,f_Class,v_3_6__1,e__3_6__1,rms1,V1,T1,v_4_5__1,
     +  e__4_5__1,rms2,V2,T2,Js,Var
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Time series in the four IRAC bands for the
*                             variable YSOs of our sample

C  Format for file interpretation

    3 format(
     +  8X,I2,1X,F13.7,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,1148
        read(1,'(A76)')ar__2
        read(ar__2,3)
     +  ID_2,MJD,v_3_6__2,e__3_6__2,v_4_5__2,e__4_5__2,v_5_8__1,
     +  e__5_8__1,v_8_0__1,e__8_0__1
c    ..............Just test output...........
        write(6,3)
     +  ID_2,MJD,v_3_6__2,e__3_6__2,v_4_5__2,e__4_5__2,v_5_8__1,
     +  e__5_8__1,v_8_0__1,e__8_0__1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Photometry for the variable objects found in the
*                             field

C  Format for file interpretation

    4 format(
     +  I4,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,A1,1X,
     +  F5.3,1X,F6.3,1X,F5.3,1X,F6.3,A1,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=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,46
        read(1,'(A121)')ar__3
        read(ar__3,4)
     +  Seq,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Jmag_1,f_Jmag,
     +  e_Jmag_1,Hmag_1,e_Hmag_1,Ksmag_1,f_Ksmag,e_Ksmag_1,v_3_6__3,
     +  e__3_6__3,v_4_5__3,e__4_5__3,v_5_8__2,e__5_8__2,v_8_0__2,
     +  e__8_0__2
        if(ar__3(30:35) .EQ. '') Jmag_1 = rNULL__
        if(ar__3(38:42) .EQ. '') e_Jmag_1 = rNULL__
        if(ar__3(44:49) .EQ. '') Hmag_1 = rNULL__
        if(ar__3(51:55) .EQ. '') e_Hmag_1 = rNULL__
        if(ar__3(57:62) .EQ. '') Ksmag_1 = rNULL__
        if(ar__3(65:69) .EQ. '') e_Ksmag_1 = rNULL__
        if(ar__3(97:102) .EQ. '') v_5_8__2 = rNULL__
        if(ar__3(104:108) .EQ. '') e__5_8__2 = rNULL__
        if(ar__3(110:115) .EQ. '') v_8_0__2 = rNULL__
        if(ar__3(117:121) .EQ. '') e__8_0__2 = rNULL__
        RAdeg_2 = rNULL__
        DEdeg_2 = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
        if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
        if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
        if(DEd_2 .GE. 0) DEdeg_2=DEd_2
        if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
        if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
        if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c    ..............Just test output...........
        write(6,4)
     +  Seq,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,Jmag_1,f_Jmag,
     +  e_Jmag_1,Hmag_1,e_Hmag_1,Ksmag_1,f_Ksmag,e_Ksmag_1,v_3_6__3,
     +  e__3_6__3,v_4_5__3,e__4_5__3,v_5_8__2,e__5_8__2,v_8_0__2,
     +  e__8_0__2
        write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c    .......End.of.Just test output...........
      end do
      close(1)

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