FORTRAN Generation
(/./ftp/cats/J/ApJ/646/1215)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/646/1215 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/646/1215      Low-mass stars and brown dwarfs in NGC 2024 (Levine+, 2006)
*================================================================================
*Low-mass stars and brown dwarfs in NGC 2024:
*constraints on the substellar mass function.
*    Levine J.L., Steinhauer A., Elston R.J., Lada E.A.
*   <Astrophys. J., 646, 1215-1229 (2006)>
*   =2006ApJ...646.1215L
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Measured data and derived quantities for
                              classified sources in NGC 2024

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

      integer*4     Seq         ! Sequential number,
*                                     Cl* NGC 2024 LSE NN in Simbad
      character*1   n_Seq       ! [d] d for possible background giant
      character*16  FLMN        ! FLAMINGOS designation (JHHMMSSs-DDMMSSs)
      real*4        Jmag        ! (mag) ? J magnitude
      character*1   n_Jmag      ! [b] Jmag derived from FLAMINGOS (1)
      real*4        Hmag        ! (mag) H magnitude
      real*4        Kmag        ! (mag) K magnitude
      character*1   l_SpType    ! Limit flag on SpType
      character*5   SpType      ! MK spectral type M with subclass
      character*1   n_SpType    ! [c] SpType derived from spectroscopy (2)
      real*4        AV          ! (mag) ? Absorption in V band
      real*4        rK          ! ? K-band veiling index (3)
      real*4        logTeff     ! ([K]) ? Effective temperature
      real*4        log_L       ! ([solLum]) ? Luminosity
      real*4        Mass        ! (solMass) ? Mass
*Note (1): 17, 47, and 68 have J magnitudes derived from FLAMINGOS imaging
*          on the 2.1m telescope.
*Note (2): Sources 68-71 have spectral types derived from 2.1m spectroscopy.
*Note (3): the veiling index is the ratio of excess flux over the
*          stellar flux, r = F_ex_/F_*_

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

C  Loading file 'table3.dat'	! Measured data and derived quantities for
*                              classified sources in NGC 2024

C  Format for file interpretation

    1 format(
     +  I2,A1,6X,A16,1X,F5.2,A1,1X,F5.2,1X,F5.2,1X,A1,A5,A1,1X,F5.2,
     +  1X,F5.2,1X,F5.3,1X,F6.3,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,71
        read(1,'(A82)')ar__
        read(ar__,1)
     +  Seq,n_Seq,FLMN,Jmag,n_Jmag,Hmag,Kmag,l_SpType,SpType,n_SpType,
     +  AV,rK,logTeff,log_L,Mass
        if(ar__(27:31) .EQ. '') Jmag = rNULL__
        if(ar__(54:58) .EQ. '') AV = rNULL__
        if(ar__(60:64) .EQ. '') rK = rNULL__
        if(ar__(66:70) .EQ. '') logTeff = rNULL__
        if(ar__(72:77) .EQ. '') log_L = rNULL__
        if(ar__(79:82) .EQ. '') Mass = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq,n_Seq,FLMN,Jmag,n_Jmag,Hmag,Kmag,l_SpType,SpType,n_SpType,
     +  AV,rK,logTeff,log_L,Mass
c    .......End.of.Just test output...........
      end do
      close(1)

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