Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/637/1067 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 2026-Jun-10
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 (nr__) ! Truncated name
character*26 Name (nr__) ! Object name
character*4 SpType (nr__) ! New spectral type
character*1 u_SpType (nr__) ! [:p] Uncertainty flag on SpType (1)
character*4 SpType2 (nr__) ! Spectral type from Burgasser et al.
* (2000ApJ...531L..57B)
character*1 u_SpType2 (nr__) ! [:p] Uncertainty flag on SpType2 (1)
character*4 SpType3 (nr__) ! Spectral type from Geballe et al.
* (2002ApJ...564..466G)
real*4 e_SpType3 (nr__) ! ? 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 (nr__1) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__1) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*26 Name_1 (nr__1) ! Object Name (1)
character*1 r_pos (nr__1) ! Reference for the position
integer*4 RAh (nr__1) ! (h) Hour of Right Ascension (J2000)
integer*4 RAm (nr__1) ! (min) Minute of Right Ascension (J2000)
real*4 RAs (nr__1) ! (s) Second of Right Ascension (J2000)
character*1 DE_ (nr__1) ! Sign of the Declination (J2000)
integer*4 DEd (nr__1) ! (deg) Degree of Declination (J2000)
integer*4 DEm (nr__1) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs (nr__1) ! (arcsec) Arcsecond of Declination (J2000)
real*8 Epoch (nr__1) ! (yr) Epoch of position measurement
character*1 u_SpType_1 (nr__1) ! Uncertainty flag on SpType
character*5 SpType_1 (nr__1) ! Spectral type from Burgasser et al. (2005)
character*1 r_zmag (nr__1) ! Reference for zmag (2)
real*4 zmag (nr__1) ! (mag) ? The SDSS z (AB) magnitude
real*4 e_zmag (nr__1) ! (mag) ? Uncertainty in zmag
character*1 r_Jmag (nr__1) ! Flag on Jmag
real*4 Jmag (nr__1) ! (mag) The 2MASS J magnitude
real*4 e_Jmag (nr__1) ! (mag) ? Uncertainty in Jmag
character*1 r_Hmag (nr__1) ! Flag on Hmag
real*4 Hmag (nr__1) ! (mag) ? The 2MASS H magnitude
real*4 e_Hmag (nr__1) ! (mag) ? Uncertainty in Hmag
character*1 r_Ksmag (nr__1) ! Flag on Ksmag
character*1 l_Ksmag (nr__1) ! [>] Upper limit flag on Ksmag
real*4 Ksmag (nr__1) ! (mag) ? The 2MASS K_s_ magnitude
real*4 e_Ksmag (nr__1) ! (mag) ? Uncertainty in Ksmag
character*1 r_plx (nr__1) ! Reference for plx
real*4 plx (nr__1) ! (arcsec) ? Parallax
real*4 e_plx (nr__1) ! (arcsec) ? Uncertainty in plx
character*1 r_pm (nr__1) ! Reference for pm
real*4 pm (nr__1) ! (arcsec/yr) ? Proper motion
real*4 e_pm (nr__1) ! (arcsec/yr) ? Uncertainty in pm
integer*4 pmPA (nr__1) ! (deg) ? Proper motion angle E from N
character*16 Refs (nr__1) ! 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 (nr__2) ! Reference code
character*19 Bibcode (nr__2) ! Bibcode
character*33 Aut (nr__2) ! Author's name
character*54 Com (nr__2) ! 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(i__),Name(i__),SpType(i__),u_SpType(i__),SpType2(i__),
+ u_SpType2(i__),SpType3(i__),e_SpType3(i__)
if(ar__(63:65) .EQ. '') e_SpType3(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ OName(i__),Name(i__),SpType(i__),u_SpType(i__),SpType2(i__),
+ u_SpType2(i__),SpType3(i__),e_SpType3(i__)
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(i__),r_pos(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),Epoch(i__),u_SpType_1(i__),
+ SpType_1(i__),r_zmag(i__),zmag(i__),e_zmag(i__),r_Jmag(i__),
+ Jmag(i__),e_Jmag(i__),r_Hmag(i__),Hmag(i__),e_Hmag(i__),
+ r_Ksmag(i__),l_Ksmag(i__),Ksmag(i__),e_Ksmag(i__),r_plx(i__),
+ plx(i__),e_plx(i__),r_pm(i__),pm(i__),e_pm(i__),pmPA(i__),
+ Refs(i__)
if(ar__1(72:76) .EQ. '') zmag(i__) = rNULL__
if(ar__1(78:81) .EQ. '') e_zmag(i__) = rNULL__
if(ar__1(91:94) .EQ. '') e_Jmag(i__) = rNULL__
if(ar__1(98:102) .EQ. '') Hmag(i__) = rNULL__
if(ar__1(104:107) .EQ. '') e_Hmag(i__) = rNULL__
if(ar__1(111:115) .EQ. '') Ksmag(i__) = rNULL__
if(ar__1(117:120) .EQ. '') e_Ksmag(i__) = rNULL__
if(ar__1(124:129) .EQ. '') plx(i__) = rNULL__
if(ar__1(131:136) .EQ. '') e_plx(i__) = rNULL__
if(ar__1(140:145) .EQ. '') pm(i__) = rNULL__
if(ar__1(147:152) .EQ. '') e_pm(i__) = rNULL__
if(ar__1(154:156) .EQ. '') pmPA(i__) = iNULL__
RAdeg(i__) = rNULL__
DEdeg(i__) = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c ..............Just test output...........
write(6,2)
+ Name_1(i__),r_pos(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),Epoch(i__),u_SpType_1(i__),
+ SpType_1(i__),r_zmag(i__),zmag(i__),e_zmag(i__),r_Jmag(i__),
+ Jmag(i__),e_Jmag(i__),r_Hmag(i__),Hmag(i__),e_Hmag(i__),
+ r_Ksmag(i__),l_Ksmag(i__),Ksmag(i__),e_Ksmag(i__),r_plx(i__),
+ plx(i__),e_plx(i__),r_pm(i__),pm(i__),e_pm(i__),pmPA(i__),
+ Refs(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),Bibcode(i__),Aut(i__),Com(i__)
c ..............Just test output...........
write(6,3)Ref(i__),Bibcode(i__),Aut(i__),Com(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end