Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/126/3007 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-28 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/3007 Spectroscopy of faint red NLTT dwarfs (Reid+, 2003) *================================================================================ *Meeting the cool neighbors. VII. Spectroscopy of faint red NLTT dwarfs. * Reid I.N., Cruz K.L., Allen P., Mungall F., Kilkenny D., Liebert J., * Hawley S.L., Fraser O.J., Covey K.R., Lowrance P. * <Astron. J., 126, 3007-3016 (2003)> * =2003AJ....126.3007R C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Ultracool NLTT1 dwarfs in Paper V (J/AJ/126/2124) integer*4 nr__ parameter (nr__=13) ! Number of records character*82 ar__ ! Full-size record C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension J2000.0 real*8 DEdeg ! (deg) Declination J2000.0 C ---------------------------------- ! (position vector(s) in degrees) character*11 Name ! Star Name integer*4 RAh ! (h) Right ascension (J2000.0) integer*4 RAm ! (min) Right ascension (J2000.0) real*4 RAs ! (s) Right ascension (J2000.0) character*1 DE_ ! Declination sign (J2000.0) integer*4 DEd ! (deg) Declination (J2000.0) integer*4 DEm ! (arcmin) Declination (J2000.0) integer*4 DEs ! (arcsec) Declination (J2000.0) real*4 rmag ! (mag) NLTT red magnitude real*4 Jmag ! (mag) 2MASS J magnitude real*4 Hmag ! (mag) 2MASS H magnitude real*4 Ksmag ! (mag) 2MASS Ks magnitude real*4 Dist ! (pc) Heliocentric Distance real*4 e_Dist ! (pc) rms uncertainty on Dist real*4 JMAG_1 ! (mag) Absolute J magnitude character*4 SpType ! Spectral type integer*4 n_Name ! Note, detailed in notes.dat file c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Astrometry and photometry of spectroscopic targets integer*4 nr__1 parameter (nr__1=357) ! Number of records character*121 ar__1 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_1 ! (deg) Right Ascension J2000 real*8 DEdeg_1 ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*12 Name_1 ! The NLTT object name character*2 f_Name ! Flag on Name (1) integer*4 RAh_1 ! (h) Hour of Right Ascension (J2000) integer*4 RAm_1 ! (min) Minute of Right Ascension (J2000) real*4 RAs_1 ! (s) Second of Right Ascension (J2000) character*1 DE__1 ! Sign of the Declination (J2000) integer*4 DEd_1 ! (deg) Degree of Declination (J2000) integer*4 DEm_1 ! (arcmin) Arcminute of Declination (J2000) integer*4 DEs_1 ! (arcsec) Arcsecond of Declination (J2000) real*4 rmag_1 ! (mag) The NLTT r band magnitude real*4 Jmag_2 ! (mag) The 2MASS J band magnitude real*4 Hmag_1 ! (mag) The 2MASS H band magnitude real*4 Ksmag_1 ! (mag) The 2MASS Ks band magnitude real*4 JMAG_3 ! (mag) The absolute 2MASS J band magnitude real*4 Dist_1 ! (pc) Heliocentric Distance real*4 e_Dist_1 ! (pc) Error in Dist character*22 Com ! Comments character*5 n_Name_1 ! Additional notes, in notes.dat file *Note (1): Flag on Name: * **: stellar system with formal distance estimate Dist<20pc. * *: stellar system with formal distance estimate within 1{sigma} of * our 20pc limit. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'notes.dat' ! Notes integer*4 nr__2 parameter (nr__2=50) ! Number of records character*80 ar__2 ! Full-size record integer*4 Note ! Note number character*78 Text ! Text of the note c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Narrowband indices for NLTT dwarfs integer*4 nr__3 parameter (nr__3=357) ! Number of records character*59 ar__3 ! Full-size record character*12 Name_2 ! The NLTT object name real*4 TiO5 ! The TiO 5 spectral index (1) real*4 CaOH ! ? The CaOH spectral index (2) real*4 CaH1 ! ? The CaH 1 spectral index (3) real*4 CaH2 ! The CaH 2 spectral index (4) real*4 CaH3 ! The CaH 3 spectral index (5) real*4 TiO_a ! The TiO-a spectral index (6) real*4 VO_a ! The VO-a spectral index (7) real*4 Ha ! The H{alpha} spectral index (8) character*4 SpType_1 ! Spectral type *Note (1): Defined as the 7126-7135{AA} flux divided by the 7042-7046{AA} flux. *Note (2): Defined as the 6230-6240{AA} flux divided by the 6345-6354{AA} flux. *Note (3): Defined as the 6380-6390{AA} flux divided by the average of the * 6345-6355{AA} & 6410-6430{AA} flux. *Note (4): Defined as the 6814-6846{AA} flux divided by the 7042-7046{AA} flux. *Note (5): Defined as the 6960-6990{AA} flux divided by the 7042-7046{AA} flux. *Note (6): Defined as the 7033-7048{AA} flux divided by the 7058-7073{AA} flux. *Note (7): Defined as the sum of the 7350-7370{AA} & 7550-7570{AA} flux * divided by the 7430-7470{AA} flux. *Note (8): Defined as the 6560-6566{AA} flux divided by the 6545-6555{AA} flux. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Photometry of NLTT dwarfs integer*4 nr__4 parameter (nr__4=96) ! Number of records character*117 ar__4 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_2 ! (deg) Right Ascension J2000 real*8 DEdeg_2 ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*11 Name_3 ! The NLTT object name integer*4 n_Name_2 ! ? Note on Name, in notes.dat file integer*4 RAh_2 ! (h) Hour of Right Ascension (J2000) integer*4 RAm_2 ! (min) Minute of Right Ascension (J2000) real*4 RAs_2 ! (s) Second of Right Ascension (J2000) character*1 DE__2 ! Sign of the Declination (J2000) integer*4 DEd_2 ! (deg) Degree of Declination (J2000) integer*4 DEm_2 ! (arcmin) Arcminute of Declination (J2000) integer*4 DEs_2 ! (arcsec) Arcsecond of Declination (J2000) real*4 Vmag ! (mag) The V band magnitude character*1 u_Vmag ! Uncertainty flag in Vmag real*4 B_V ! (mag) ? The (B-V) color character*1 u_B_V ! Uncertainty flag in B-V real*4 V_R ! (mag) The (V-R) color character*1 u_V_R ! Uncertainty flag in V-R real*4 V_I ! (mag) The (V-I) color character*1 u_V_I ! Uncertainty flag in V-I integer*4 Nobs ! Number of observations integer*4 e_Vmag ! (mmag) ? Formal residual about the mean in Vmag integer*4 e_B_V ! (mmag) ? Formal residual about the mean in B-V integer*4 e_V_R ! (mmag) ? Formal residual about the mean in V-R integer*4 e_V_I ! (mmag) ? Formal residual about the mean in V-I real*4 Jmag_4 ! (mag) The 2MASS J band magnitude character*1 u_Jmag ! Uncertainty flag in Jmag real*4 Hmag_2 ! (mag) The 2MASS H band magnitude character*1 u_Hmag ! Uncertainty flag in Hmag real*4 Ksmag_2 ! (mag) The 2MASS Ks band magnitude character*1 u_Ksmag ! Uncertainty flag in Ksmag real*4 JMAG_5 ! (mag) Derived absolute 2MASS J band magnitude real*4 e_JMAG ! (mag) Error in JMAG real*4 Dist_2 ! (pc) Heliocentric Distance C============================================================================= C Loading file 'table1.dat' ! Ultracool NLTT1 dwarfs in Paper V (J/AJ/126/2124) C Format for file interpretation 1 format( + A11,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F4.1,1X,F6.3, + 1X,F6.3,1X,F6.3,1X,F4.1,1X,F3.1,1X,F5.2,1X,A4,1X,I2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,13 read(1,'(A82)')ar__ read(ar__,1) + Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,rmag,Jmag,Hmag,Ksmag,Dist, + e_Dist,JMAG_1,SpType,n_Name 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,1) + Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,rmag,Jmag,Hmag,Ksmag,Dist, + e_Dist,JMAG_1,SpType,n_Name write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Astrometry and photometry of spectroscopic targets C Format for file interpretation 2 format( + A12,1X,A2,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F4.1,1X, + F6.3,1X,F6.3,1X,F6.3,1X,F5.2,1X,F5.1,1X,F4.1,1X,A22,1X,A5) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,357 read(1,'(A121)')ar__1 read(ar__1,2) + Name_1,f_Name,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + rmag_1,Jmag_2,Hmag_1,Ksmag_1,JMAG_3,Dist_1,e_Dist_1,Com, + n_Name_1 RAdeg_1 = rNULL__ DEdeg_1 = rNULL__ c Derive coordinates RAdeg_1 and DEdeg_1 from input data c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown) if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15. if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4. if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240. if(DEd_1 .GE. 0) DEdeg_1=DEd_1 if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60. if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600. if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1 c ..............Just test output........... write(6,2) + Name_1,f_Name,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1, + rmag_1,Jmag_2,Hmag_1,Ksmag_1,JMAG_3,Dist_1,e_Dist_1,Com, + n_Name_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'notes.dat' ! Notes C Format for file interpretation 3 format(I2,A78) C Effective file loading open(unit=1,status='old',file= +'notes.dat') write(6,*) '....Loading file: notes.dat' do i__=1,50 read(1,'(A80)')ar__2 read(ar__2,3)Note,Text c ..............Just test output........... write(6,3)Note,Text c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Narrowband indices for NLTT dwarfs C Format for file interpretation 4 format( + A12,1X,F4.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2, + 1X,F4.2,1X,A4) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,357 read(1,'(A59)')ar__3 read(ar__3,4) + Name_2,TiO5,CaOH,CaH1,CaH2,CaH3,TiO_a,VO_a,Ha,SpType_1 if(ar__3(19:23) .EQ. '') CaOH = rNULL__ if(ar__3(25:28) .EQ. '') CaH1 = rNULL__ c ..............Just test output........... write(6,4) + Name_2,TiO5,CaOH,CaH1,CaH2,CaH3,TiO_a,VO_a,Ha,SpType_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! Photometry of NLTT dwarfs C Format for file interpretation 5 format( + A11,1X,I2,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F6.3,A1, + 1X,F5.3,A1,1X,F5.3,A1,1X,F5.3,A1,1X,I1,1X,I2,1X,I2,1X,I2,1X, + I2,1X,F6.3,A1,1X,F6.3,A1,1X,F5.3,A1,1X,F4.2,1X,F4.2,1X,F4.1) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,96 read(1,'(A117)')ar__4 read(ar__4,5) + Name_3,n_Name_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2, + Vmag,u_Vmag,B_V,u_B_V,V_R,u_V_R,V_I,u_V_I,Nobs,e_Vmag,e_B_V, + e_V_R,e_V_I,Jmag_4,u_Jmag,Hmag_2,u_Hmag,Ksmag_2,u_Ksmag, + JMAG_5,e_JMAG,Dist_2 if(ar__4(13:14) .EQ. '') n_Name_2 = iNULL__ if(ar__4(45:49) .EQ. '') B_V = rNULL__ if(ar__4(68:69) .EQ. '') e_Vmag = iNULL__ if(ar__4(71:72) .EQ. '') e_B_V = iNULL__ if(ar__4(74:75) .EQ. '') e_V_R = iNULL__ if(ar__4(77:78) .EQ. '') e_V_I = iNULL__ RAdeg_2 = rNULL__ DEdeg_2 = rNULL__ c Derive coordinates RAdeg_2 and DEdeg_2 from input data c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown) if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15. if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4. if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240. if(DEd_2 .GE. 0) DEdeg_2=DEd_2 if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60. if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600. if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2 c ..............Just test output........... write(6,5) + Name_3,n_Name_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2, + Vmag,u_Vmag,B_V,u_B_V,V_R,u_V_R,V_I,u_V_I,Nobs,e_Vmag,e_B_V, + e_V_R,e_V_I,Jmag_4,u_Jmag,Hmag_2,u_Hmag,Ksmag_2,u_Ksmag, + JMAG_5,e_JMAG,Dist_2 write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end