FORTRAN Generation
(/./ftp/cats/J/ApJ/788/122)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/788/122 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 2024-Apr-20
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/788/122    IR photometry of YSO candidates toward SNR IC 443   (Su+, 2014)
*================================================================================
*Molecular environment of the supernova remnant IC 443: discovery of
*the molecular shells surrounding the remnant.
*    Su Y., Fang M., Yang J., Zhou P., Chen Y.
*   <Astrophys. J., 788, 122 (2014)>
*   =2014ApJ...788..122S    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! The Infrared Photometric Magnitudes of the YSO
                                Candidates toward SNR IC 443

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

      integer*4     Seq         ! [1/98] YSO candidate running number
      character*19  WISE        ! WISE identifier (JHHMMSS.ss+DDMMSS.s)
      real*4        Jmag        ! (mag) ? 2MASS J band magnitude (1.25 mum)
      real*4        e_Jmag      ! (mag) ? Uncertainty in Jmag
      real*4        Hmag        ! (mag) ? 2MASS H band magnitude (1.65 mum)
      real*4        e_Hmag      ! (mag) ? Uncertainty in Hmag
      real*4        Ksmag       ! (mag) ? 2MASS Ks band magnitude (2.17 mum)
      real*4        e_Ksmag     ! (mag) ? Uncertainty in Ksmag
      real*4        W1mag       ! (mag) WISE W1 band magnitude (3.4 mum)
      real*4        e_W1mag     ! (mag) Uncertainty in W1mag
      real*4        W2mag       ! (mag) WISE W2 band magnitude (4.6 mum)
      real*4        e_W2mag     ! (mag) Uncertainty in W2mag
      real*4        W3mag       ! (mag) WISE W3 band magnitude (12 mum)
      real*4        e_W3mag     ! (mag) ? Uncertainty in W3mag
      real*4        W4mag       ! (mag) WISE W4 band magnitude (22 mum)
      real*4        e_W4mag     ! (mag) Uncertainty in W4mag
      real*4        Av          ! (mag) ? Absorption in V band
      real*4        alpha       ! ? IR spectral slope {alpha}

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

C  Loading file 'table3.dat'	! The Infrared Photometric Magnitudes of the YSO
*                                Candidates toward SNR IC 443

C  Format for file interpretation

    1 format(
     +  I2,1X,A19,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,
     +  1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,98
        read(1,'(A110)')ar__
        read(ar__,1)
     +  Seq,WISE,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,W1mag,e_W1mag,
     +  W2mag,e_W2mag,W3mag,e_W3mag,W4mag,e_W4mag,Av,alpha
        if(ar__(24:28) .EQ. '') Jmag = rNULL__
        if(ar__(30:33) .EQ. '') e_Jmag = rNULL__
        if(ar__(35:39) .EQ. '') Hmag = rNULL__
        if(ar__(41:44) .EQ. '') e_Hmag = rNULL__
        if(ar__(46:50) .EQ. '') Ksmag = rNULL__
        if(ar__(52:55) .EQ. '') e_Ksmag = rNULL__
        if(ar__(85:88) .EQ. '') e_W3mag = rNULL__
        if(ar__(100:104) .EQ. '') Av = rNULL__
        if(ar__(106:110) .EQ. '') alpha = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq,WISE,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,W1mag,e_W1mag,
     +  W2mag,e_W2mag,W3mag,e_W3mag,W4mag,e_W4mag,Av,alpha
c    .......End.of.Just test output...........
      end do
      close(1)

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