FORTRAN Generation
(/./ftp/cats/J/PASP/117/199)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASP/117/199 into FORTRAN code for loading all data files into arrays.

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-19
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/PASP/117/199        IRTS carbon stars                       (Le Bertre+, 2005)
*================================================================================
*Carbon stars in the Infrared Telescope in Space Survey.
*    Le Bertre T., Tanaka M., Yamamura I., Murakami H., MacConnell D.J.
*   <Publ. Astron. Soc. Pac., 117, 199-206 (2005)>
*   =2005PASP..117..199L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! IRTS carbon stars

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

C  Position composed of: GLON GLAT
      character*10  NIRS       (nr__) ! NIRS (Near-Infrared Spectrometer) name
*                                    ([LTY2003] NIRS HHMMm+DDMM in Simbad)
      character*1   m_NIRS     (nr__) ! [NS] Multiplicity flag on NIRS
      real*4        GLON       (nr__) ! (deg) Galactic longitude
      real*4        GLAT       (nr__) ! (deg) Galactic latitude
      real*4        Kmag       (nr__) ! (mag) K band magnitude
      real*4        K_L_       (nr__) ! (mag) K-L' color index
      real*4        v3_1um     (nr__) ! 3.1{mu}m index (1)
      character*10  IRAS       (nr__) ! IRAS name
      integer*4     CGCS       (nr__) ! ? CGCS number (Cat. <III/227>)
      character*6   Com        (nr__) ! Comments (2)
*Note (1): To identify carbon stars in the NIRS PSC (Near-Infrared Spectrometer
*          Point Source Catalog), we use the 3.1{mu}m index defined in Paper II
*          (2003, Cat. <J/A+A/403/943>). This index gives the depth of the band
*          (at 3.1{mu}m) relative to the continuum (taken at 2.9 and 3.3{mu}m);
*          the maximum depth is obtained for an index value of 0.0, whereas a
*          value 0.5 indicates a flat spectrum.
*Note (2): Comments, defined as follows:
*    a = A 30 minute exposure plate obtained by D.J. MacConnell shows nothing at
*        this position. The R DSS2 plate has a faint star 3" southeast of the
*        IRAS position.
*    b = A 30 minute exposure plate obtained by D.J. MacConnell shows a faint
*        continuum (short and red) that has a general character of a carbon star
*        but is too underexposed to be certain, although it has been tentatively
*        identified as a C star by MacConnell (1979A&AS...38..335M). The R DSS2
*        plate has a bright star at the IRAS position.
*    c = A 60 minute exposure plate obtained by D.J. MacConnell shows nothing at
*        the IRAS position.
*    d = The 2.9-3.5m spectrum was also presented by Groenewegen et al.
*        (1994A&A...287..163G).
*    e = A 60 minute exposure plate obtained by D.J. MacConnell has a very red,
*        non-C star east of the IRAS position, which probably corresponds to the
*        bright star 32" away at position angle 66{deg} on the DDS2 I plate.
*    f = LRS spectrum C (11{mu}m SiC emission; Kwok et al. 1997,
*        Cat. <J/ApJS/112/557>); tentative identification as a C star by Chen &
*        Chen (2003AJ....125.2215C)
*    g = The 3.1{mu}m index is larger than 0.45 (2003, Cat. <J/A+A/403/943>).
*    h = The 3.1{mu}m index is larger than 0.45 (M. Tanaka et al. 2005,
*        in preparation).

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

C  Loading file 'table1.dat'	! IRTS carbon stars

C  Format for file interpretation

    1 format(
     +  A10,1X,A1,1X,F6.2,1X,F6.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,A10,6X,
     +  I4,1X,A6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,143
        read(1,'(A69)')ar__
        read(ar__,1)
     +  NIRS(i__),m_NIRS(i__),GLON(i__),GLAT(i__),Kmag(i__),K_L_(i__),
     +  v3_1um(i__),IRAS(i__),CGCS(i__),Com(i__)
        if(ar__(59:62) .EQ. '') CGCS(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  NIRS(i__),m_NIRS(i__),GLON(i__),GLAT(i__),Kmag(i__),K_L_(i__),
     +  v3_1um(i__),IRAS(i__),CGCS(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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