Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/134/1162 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/AJ/134/1162 11 new T dwarfs in 2MASS (Looper+, 2007) *================================================================================ *Discovery of 11 new T dwarfs in the Two Micron All Sky Survey, including *a possible L/T transition binary. * Looper D.L., Kirkpatrick J.D., Burgasser A.J. * <Astron. J., 134, 1162-1182 (2007)> * =2007AJ....134.1162L C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Transients integer*4 nr__ parameter (nr__=50) ! Number of records character*73 ar__ ! Full-size record character*17 v2MASS ! 2MASS name (JHHMMSSss+DDMMSSs) real*4 Jmag ! (mag) 2MASS J magnitude real*4 e_Jmag ! (mag) rms uncertainty on Jmag real*4 Hmag ! (mag) 2MASS H magnitude real*4 e_Hmag ! (mag) rms uncertainty on Hmag real*4 Ksmag ! (mag) 2MASS Ks magnitude real*4 e_Ksmag ! (mag) ? rms uncertainty on Ksmag character*10 Obs_Date ! ("YYYY/MM/DD") UT date of 2MASS observation real*4 beta ! (deg) Eliptic latitude c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Spectrophotometric properties of new and confirmed T dwarfs integer*4 nr__1 parameter (nr__1=16) ! Number of records character*113 ar__1 ! Full-size record character*1 f_Name ! [NR] N=New T Dwarfs, R=Recovered T Dwarfs character*25 Name ! 2MASS or SDSS name character*1 r_Name ! [d] Reference of recovered T dwarf (1) real*4 Jmag_1 ! (mag) 2MASS J magnitude real*4 e_Jmag_1 ! (mag) rms uncertainty on Jmag real*4 J_H ! (mag) 2MASS J-H colour index real*4 e_J_H ! (mag) rms uncertainty on J-H character*1 l_H_Ks ! Limit flag on H-Ks real*4 H_Ks ! (mag) 2MASS H-Ks colour index real*4 e_H_Ks ! (mag) ? rms uncertainty o n H-Ks character*1 l_J_Ks ! Limit flag on J-Ks real*4 J_Ks ! (mag) 2MASS J-Ks colour index real*4 e_J_Ks ! (mag) ? rms uncertainty on J-Ks real*4 imag ! (mag) ? SDSS i magnitude real*4 e_imag ! (mag) ? rms uncertainty on imag real*4 zmag ! (mag) ? SDSS z magnitude real*4 e_zmag ! (mag) ? rms uncertainty on zmag character*6 SpT ! Spectral type character*1 n_SpT ! [e] Note on SpT (2) real*4 Dist ! (pc) Spectrophotometric distance estimate real*4 e_Dist ! (pc) rms uncertainty on Dist *Note (1): References for recovered T Dwarfs: * * 2MASS 0939-24 (Tinney et al., 2005AJ....130.2326T) * * SDSS 1346-00 (Tsvetanov et al., 2000ApJ...531L..61T) * * SDSS 1630+08 (Chiu et al., 2006AJ....131.2722C) * * SDSS 1758+46 (Knapp et al., 2004, Cat. <J/AJ/127/3553>) * * SDSS 2124+01 (Knapp et al., 2004, Cat. <J/AJ/127/3553>) *Note (2): From Burgasser et al. (2006, Cat. <J/ApJ/637/1067>) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table9.dat' ! T Dwarfs in the Solar Neighborhood (within 25pc) integer*4 nr__2 parameter (nr__2=72) ! Number of records character*120 ar__2 ! Full-size record integer*4 d ! [1/2] Distance flag (1=d<=10pc, 2=10<d<25pc) character*27 Name_1 ! Name character*1 n_Name ! [*] * for new additions reported in this paper character*16 OName ! Other name integer*4 Seq ! Discovery reference character*9 SpT_1 ! NIR spectral type real*4 Jmag_2 ! (mag) 2MASS J magnitude real*4 Ksmag_1 ! (mag) ? 2MASS Ks magnitude integer*4 r_Ksmag ! ? Origin of Ksmag (refs. 2 or 22) real*4 DistJ ! (pc) ?=- Distance from J magnitude real*4 DistPi ! (pc) ?=- Distance from parallax character*1 l_Dist ! Limit flag on Dist real*4 Dist_1 ! (pc) Adopted heliocentric distance (2) character*3 Hres ! [Yes No] High-resolution imaging? character*5 Ref ! Reference, in refs.dat file character*16 Rem ! Remarks *Note (2): Distance adopted from trigonometric parallax if measured. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__3 parameter (nr__3=33) ! Number of records character*62 ar__3 ! Full-size record integer*4 Ref_1 ! Reference number character*19 BibCode ! BibCode character*18 Aut ! Author's name character*20 Com ! Comments C============================================================================= C Loading file 'table2.dat' ! Transients C Format for file interpretation 1 format( + 6X,A17,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,A10, + 1X,F5.1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,50 read(1,'(A73)')ar__ read(ar__,1) + v2MASS,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,Obs_Date,beta if(ar__(53:56) .EQ. '') e_Ksmag = rNULL__ c ..............Just test output........... write(6,1) + v2MASS,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,Obs_Date,beta c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! Spectrophotometric properties of new and * confirmed T dwarfs C Format for file interpretation 2 format( + A1,1X,A25,A1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,A1,F5.2,1X, + F4.2,1X,A1,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,A6, + A1,1X,F4.1,1X,F3.1) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,16 read(1,'(A113)')ar__1 read(ar__1,2) + f_Name,Name,r_Name,Jmag_1,e_Jmag_1,J_H,e_J_H,l_H_Ks,H_Ks, + e_H_Ks,l_J_Ks,J_Ks,e_J_Ks,imag,e_imag,zmag,e_zmag,SpT,n_SpT, + Dist,e_Dist if(ar__1(59:62) .EQ. '') e_H_Ks = rNULL__ if(ar__1(71:74) .EQ. '') e_J_Ks = rNULL__ if(ar__1(76:80) .EQ. '') imag = rNULL__ if(ar__1(82:85) .EQ. '') e_imag = rNULL__ if(ar__1(87:91) .EQ. '') zmag = rNULL__ if(ar__1(93:96) .EQ. '') e_zmag = rNULL__ c ..............Just test output........... write(6,2) + f_Name,Name,r_Name,Jmag_1,e_Jmag_1,J_H,e_J_H,l_H_Ks,H_Ks, + e_H_Ks,l_J_Ks,J_Ks,e_J_Ks,imag,e_imag,zmag,e_zmag,SpT,n_SpT, + Dist,e_Dist c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table9.dat' ! T Dwarfs in the Solar Neighborhood (within 25pc) C Format for file interpretation 3 format( + I1,1X,A27,1X,A1,A16,1X,I2,1X,A9,1X,F6.3,1X,F5.2,I2,1X,F5.2,1X, + F5.2,1X,A1,F4.1,1X,A3,1X,A5,1X,A16) C Effective file loading open(unit=1,status='old',file= +'table9.dat') write(6,*) '....Loading file: table9.dat' do i__=1,72 read(1,'(A120)')ar__2 read(ar__2,3) + d,Name_1,n_Name,OName,Seq,SpT_1,Jmag_2,Ksmag_1,r_Ksmag,DistJ, + DistPi,l_Dist,Dist_1,Hres,Ref,Rem if(ar__2(69:73) .EQ. '') Ksmag_1 = rNULL__ if(ar__2(74:75) .EQ. '') r_Ksmag = iNULL__ if (idig(ar__2(77:81)).EQ.0) DistJ = rNULL__ if (idig(ar__2(83:87)).EQ.0) DistPi = rNULL__ c ..............Just test output........... write(6,3) + d,Name_1,n_Name,OName,Seq,SpT_1,Jmag_2,Ksmag_1,r_Ksmag,DistJ, + DistPi,l_Dist,Dist_1,Hres,Ref,Rem c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 4 format(I2,1X,A19,1X,A18,1X,A20) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,33 read(1,'(A62)')ar__3 read(ar__3,4)Ref_1,BibCode,Aut,Com c ..............Just test output........... write(6,4)Ref_1,BibCode,Aut,Com c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end