FORTRAN Generation
(/./ftp/cats/J/ApJ/637/1067)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/637/1067 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-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/ApJ/637/1067  Near-IR spectral classification of T dwarfs   (Burgasser+, 2006)
*================================================================================
*A unified near-infrared spectral classification scheme for T dwarfs.
*    Burgasser A.J., Geballe T.R., Leggett S.K., Kirkpatrick J.D.,
*    Golimowski D.A.
*   <Astrophys. J., 637, 1067-1093 (2006)>
*   =2006ApJ...637.1067B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table13.dat'	! Comparison of T dwarf spectral types

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

      character*17  OName       ! Truncated name
      character*26  Name        ! Object name
      character*4   SpType      ! New spectral type
      character*1   u_SpType    ! [:p] Uncertainty flag on SpType (1)
      character*4   SpType2     ! Spectral type from Burgasser et al.
*                                   (2000ApJ...531L..57B)
      character*1   u_SpType2   ! [:p] Uncertainty flag on SpType2 (1)
      character*4   SpType3     ! Spectral type from Geballe et al.
*                                   (2002ApJ...564..466G)
      real*4        e_SpType3   ! ? Error in SpType3
*Note (1): Uncertainty flag defined as follows:
*    : = uncertain classification
*    p = peculiar source

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

C  Declarations for 'table14.dat'	! T Dwarf compendium

      integer*4 nr__1
      parameter (nr__1=69)	! Number of records
      character*173 ar__1  	! 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)

      character*26  Name_1      ! Object Name (1)
      character*1   r_pos       ! Reference for the position
      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 the 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*8        Epoch       ! (yr) Epoch of position measurement
      character*1   u_SpType_1  ! Uncertainty flag on SpType
      character*5   SpType_1    ! Spectral type from Burgasser et al. (2005)
      character*1   r_zmag      ! Reference for zmag (2)
      real*4        zmag        ! (mag) ? The SDSS z (AB) magnitude
      real*4        e_zmag      ! (mag) ? Uncertainty in zmag
      character*1   r_Jmag      ! Flag on Jmag
      real*4        Jmag        ! (mag) The 2MASS J magnitude
      real*4        e_Jmag      ! (mag) ? Uncertainty in Jmag
      character*1   r_Hmag      ! Flag on Hmag
      real*4        Hmag        ! (mag) ? The 2MASS H magnitude
      real*4        e_Hmag      ! (mag) ? Uncertainty in Hmag
      character*1   r_Ksmag     ! Flag on Ksmag
      character*1   l_Ksmag     ! [>] Upper limit flag on Ksmag
      real*4        Ksmag       ! (mag) ? The 2MASS K_s_ magnitude
      real*4        e_Ksmag     ! (mag) ? Uncertainty in Ksmag
      character*1   r_plx       ! Reference for plx
      real*4        plx         ! (arcsec) ? Parallax
      real*4        e_plx       ! (arcsec) ? Uncertainty in plx
      character*1   r_pm        ! Reference for pm
      real*4        pm          ! (arcsec/yr) ? Proper motion
      real*4        e_pm        ! (arcsec/yr) ? Uncertainty in pm
      integer*4     pmPA        ! (deg) ? Proper motion angle E from N
      character*16  Refs        ! Discovery and measurement references
*Note (1): Gliese 377CD is a misprint for Gliese 337CD.
*Note (2): A "4" indicates z photometry from SDSS DR 4 (Cat. <II/267>), otherwise
*          z photometry is as reported from the literature (Leggett et al.
*          2000ApJ...536L..35L; Geballe et al., 2002ApJ...564..466G ; Knapp et
*          al., 2004AJ....127.3553K).

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

C  Declarations for 'refs.dat'	! References

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

      character*4   Ref         ! Reference code
      character*19  Bibcode     ! Bibcode
      character*33  Aut         ! Author's name
      character*54  Com         ! Comment

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

C  Loading file 'table13.dat'	! Comparison of T dwarf spectral types

C  Format for file interpretation

    1 format(A17,1X,A26,1X,A4,A1,1X,A4,A1,1X,A4,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table13.dat')
      write(6,*) '....Loading file: table13.dat'
      do i__=1,61
        read(1,'(A65)')ar__
        read(ar__,1)
     +  OName,Name,SpType,u_SpType,SpType2,u_SpType2,SpType3,e_SpType3
        if(ar__(63:65) .EQ. '') e_SpType3 = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  OName,Name,SpType,u_SpType,SpType2,u_SpType2,SpType3,e_SpType3
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table14.dat'	! T Dwarf compendium

C  Format for file interpretation

    2 format(
     +  A26,1X,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F7.2,
     +  1X,A1,A5,2X,A1,1X,F5.2,1X,F4.2,1X,A1,1X,F5.2,1X,F4.2,1X,A1,1X,
     +  F5.2,1X,F4.2,1X,A1,A1,F5.2,1X,F4.2,1X,A1,1X,F6.4,1X,F6.4,1X,
     +  A1,1X,F6.4,1X,F6.4,1X,I3,1X,A16)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table14.dat')
      write(6,*) '....Loading file: table14.dat'
      do i__=1,69
        read(1,'(A173)')ar__1
        read(ar__1,2)
     +  Name_1,r_pos,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Epoch,u_SpType_1,
     +  SpType_1,r_zmag,zmag,e_zmag,r_Jmag,Jmag,e_Jmag,r_Hmag,Hmag,
     +  e_Hmag,r_Ksmag,l_Ksmag,Ksmag,e_Ksmag,r_plx,plx,e_plx,r_pm,pm,
     +  e_pm,pmPA,Refs
        if(ar__1(72:76) .EQ. '') zmag = rNULL__
        if(ar__1(78:81) .EQ. '') e_zmag = rNULL__
        if(ar__1(91:94) .EQ. '') e_Jmag = rNULL__
        if(ar__1(98:102) .EQ. '') Hmag = rNULL__
        if(ar__1(104:107) .EQ. '') e_Hmag = rNULL__
        if(ar__1(111:115) .EQ. '') Ksmag = rNULL__
        if(ar__1(117:120) .EQ. '') e_Ksmag = rNULL__
        if(ar__1(124:129) .EQ. '') plx = rNULL__
        if(ar__1(131:136) .EQ. '') e_plx = rNULL__
        if(ar__1(140:145) .EQ. '') pm = rNULL__
        if(ar__1(147:152) .EQ. '') e_pm = rNULL__
        if(ar__1(154:156) .EQ. '') pmPA = iNULL__
        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,2)
     +  Name_1,r_pos,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Epoch,u_SpType_1,
     +  SpType_1,r_zmag,zmag,e_zmag,r_Jmag,Jmag,e_Jmag,r_Hmag,Hmag,
     +  e_Hmag,r_Ksmag,l_Ksmag,Ksmag,e_Ksmag,r_plx,plx,e_plx,r_pm,pm,
     +  e_pm,pmPA,Refs
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    3 format(A4,1X,A19,1X,A33,A54)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,51
        read(1,'(A112)')ar__2
        read(ar__2,3)Ref,Bibcode,Aut,Com
c    ..............Just test output...........
        write(6,3)Ref,Bibcode,Aut,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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