FORTRAN Generation
(/./ftp/cats/J/AJ/126/2487)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/126/2487 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-16
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/AJ/126/2487       T dwarfs in the southern hemisphere      (Burgasser+, 2003)
*================================================================================
*The 2MASS wide-field T dwarf search.
*II. Discovery of three T dwarfs in the southern hemisphere.
*    Burgasser A.J., Mcelwain M.W., Kirkpatrick J.D.
*   <Astron. J., 126, 2487-2494 (2003)>
*   =2003AJ....126.2487B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! T dwarf candidates absent in follow-up
                             OSIRIS images

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

      character*17  v2MASS     (nr__) ! 2MASS designation
      integer*4     beta       (nr__) ! (deg) Ecliptic latitude
      character*10  Date       (nr__) ! ("YYYY/MM/DD") 2MASS observation date
      real*4        Jmag       (nr__) ! (mag) 2MASS J magnitude (G1)
      real*4        e_Jmag     (nr__) ! (mag) rms uncertainty on Jmag
      real*4        J_H        (nr__) ! (mag) 2MASS J-H colour index (G1)
      real*4        e_J_H      (nr__) ! (mag) rms uncertainty on J-H
      character*1   l_H_Ks     (nr__) ! Limit flag on H-Ks
      real*4        H_Ks       (nr__) ! (mag) 2MASS H-Ks colour index (G1)
      real*4        e_H_Ks     (nr__) ! (mag) ? rms uncertainty on H-Ks
      character*10  Ident      (nr__) ! Identification (1)
      character*14  Com        (nr__) ! Comment
*Note (1): Asteroid identifications are from the Small-Body Search tool
*          maintained by the Jet Propulsion Laboratory Solar System Dynamics
*          Group (http://ssd.jpl.nasa.gov/cgi-bin/sb_search)

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

C  Declarations for 'table2.dat'	! Results of OSIRIS spectroscopic observations

      integer*4 nr__1
      parameter (nr__1=35)	! Number of records
      character*108 ar__1  	! Full-size record

      character*25  Name       (nr__1) ! Designation (2MASS or SDSS)
      real*4        Jmag_1     (nr__1) ! (mag) ? 2MASS J magnitude (G1)
      real*4        e_Jmag_1   (nr__1) ! (mag) ? rms uncertainty on Jmag
      real*4        J_Ks       (nr__1) ! (mag) ? 2MASS J-Ks colour index (G1)
      real*4        e_J_Ks     (nr__1) ! (mag) ? rms uncertainty on J-Ks
      character*10  Date_1     (nr__1) ! ("YYYY/MM/DD") UT date
      integer*4     Texp       (nr__1) ! (s) Exposition time
      real*4        AirMass    (nr__1) ! Air mass
      character*9   Comp       (nr__1) ! HD number of the calibrator
      character*6   SpType     (nr__1) ! Spectral type of the calibrator
      character*20  Type       (nr__1) ! Type of the star
      character*1   n_Type     (nr__1) ! [bc] Individual notes (1)
*Note (1): Individual notes as follows:
*      b = Candidate young brown dwarf in the Orion A complex (Strom et al.,
*          1993ApJ...412..233S; Carpenter, 2000AJ....120.3139C).
*      c = This object appeared much fainter at J band when imaged with
*          OSIRIS than as observed by 2MASS. It is possible that the 2MASS
*          source is a chance alignment with an uncataloged minor planet,
*          or that this source is intrinsically variable.

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

C  Loading file 'table1.dat'	! T dwarf candidates absent in follow-up
*                             OSIRIS images

C  Format for file interpretation

    1 format(
     +  6X,A17,1X,I3,1X,A10,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,A1,
     +  F5.2,1X,F4.2,1X,A10,1X,A14)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,50
        read(1,'(A98)')ar__
        read(ar__,1)
     +  v2MASS(i__),beta(i__),Date(i__),Jmag(i__),e_Jmag(i__),
     +  J_H(i__),e_J_H(i__),l_H_Ks(i__),H_Ks(i__),e_H_Ks(i__),
     +  Ident(i__),Com(i__)
        if(ar__(69:72) .EQ. '') e_H_Ks(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v2MASS(i__),beta(i__),Date(i__),Jmag(i__),e_Jmag(i__),
     +  J_H(i__),e_J_H(i__),l_H_Ks(i__),H_Ks(i__),e_H_Ks(i__),
     +  Ident(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Results of OSIRIS spectroscopic observations

C  Format for file interpretation

    2 format(
     +  A25,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,A10,1X,I4,1X,F4.2,1X,
     +  A9,1X,A6,2X,A20,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,35
        read(1,'(A108)')ar__1
        read(ar__1,2)
     +  Name(i__),Jmag_1(i__),e_Jmag_1(i__),J_Ks(i__),e_J_Ks(i__),
     +  Date_1(i__),Texp(i__),AirMass(i__),Comp(i__),SpType(i__),
     +  Type(i__),n_Type(i__)
        if(ar__1(27:31) .EQ. '') Jmag_1(i__) = rNULL__
        if(ar__1(33:36) .EQ. '') e_Jmag_1(i__) = rNULL__
        if(ar__1(38:42) .EQ. '') J_Ks(i__) = rNULL__
        if(ar__1(44:47) .EQ. '') e_J_Ks(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name(i__),Jmag_1(i__),e_Jmag_1(i__),J_Ks(i__),e_J_Ks(i__),
     +  Date_1(i__),Texp(i__),AirMass(i__),Comp(i__),SpType(i__),
     +  Type(i__),n_Type(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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