FORTRAN Generation
(/./ftp/cats/J/ApJ/720/259)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/720/259 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-Mar-29
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/720/259    CO column densities in dark clouds             (Whittet+, 2010)
*================================================================================
*The uptake of interstellar gaseous CO into icy grain mantles in a quiescent
*dark cloud.
*    Whittet D.C.B., Goldsmith P.F., Pineda J.L.
*   <Astrophys. J., 720, 259-265 (2010)>
*   =2010ApJ...720..259W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Extinction values and column densities for program
                            stars

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

      integer*4     Seq         ! [1/302] Running number
      character*17  ID          ! Source identification (1)
      real*4        A_V         ! (mag) Visual extinction
      real*4        N_CO_gas    ! (10+17cm-2) Gas phase CO column density (2)
      real*4        N_CO_ice    ! (10+17cm-2) ? Solid phase CO column density (3)
      real*4        N_CO2_ice   ! (10+17cm-2) ? Solid phase CO2 column density (3)
*Note (1): Field stars from Shenoy et al. 2008, Cat. J/ApJS/176/457 (n=1-247)
*     designated by 2MASS catalog number; additional field stars (n=248-292)
*     mostly designated by Henry Draper (HD) catalog number (Whittet et al.
*     2001ApJ...547..872W); YSOs (n=293-302) designated by 2MASS catalog number.
*Note (2): From present work.
*Note (3): Direct measurements are included where available (Whittet et al.
*     2007ApJ...655..332W, their table 2, for #Field stars; Cook et al.
*     2011ApJ...730..124C, their table 3 for YSOs), all other values are
*     calculated using the method described in Section 3.2.

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

C  Loading file 'table1.dat'	! Extinction values and column densities for program
*                            stars

C  Format for file interpretation

    1 format(I3,1X,A17,1X,F4.1,1X,F5.2,1X,F6.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,302
        read(1,'(A46)')ar__
        read(ar__,1)Seq,ID,A_V,N_CO_gas,N_CO_ice,N_CO2_ice
        if(ar__(34:39) .EQ. '') N_CO_ice = rNULL__
        if(ar__(41:46) .EQ. '') N_CO2_ice = rNULL__
c    ..............Just test output...........
        write(6,1)Seq,ID,A_V,N_CO_gas,N_CO_ice,N_CO2_ice
c    .......End.of.Just test output...........
      end do
      close(1)

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