Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/126/2449 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-18 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/2449 Nearby ultracool dwarfs in galactic plane (Reid+, 2003) *================================================================================ *Meeting the cool neighbors. *VI. A search for nearby ultracool dwarfs in the galactic plane. * Reid I.N. * <Astron. J., 126, 2449-2461 (2003)> * =2003AJ....126.2449R C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Ultracool dwarf candidates with |b|<10{deg} integer*4 nr__ parameter (nr__=101) ! Number of records character*91 ar__ ! 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) 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*4 Jmag ! (mag) The 2MASS J band magnitude real*4 e_Jmag ! (mag) Error in Jmag real*4 Hmag ! (mag) The 2MASS H band magnitude real*4 e_Hmag ! (mag) Error in Hmag real*4 Ksmag ! (mag) The 2MASS Ks band magnitude real*4 e_Ksmag ! (mag) Error in Kmag character*27 Comm ! Additional comments c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Ultracool candidates from Luyten's surveys integer*4 nr__1 parameter (nr__1=31) ! Number of records character*99 ar__1 ! Full-size record C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_1 ! (deg) Right Ascension J2000.0 real*8 DEdeg_1 ! (deg) Declination J2000.0 C ---------------------------------- ! (position vector(s) in degrees) integer*4 NLTT ! NLTT (Cat. <I/98>) number character*11 Name ! Other name integer*4 RAh_1 ! (h) Right ascension (J2000.0) integer*4 RAm_1 ! (min) Right ascension (J2000.0) real*4 RAs_1 ! (s) Right ascension (J2000.0) character*1 DE__1 ! Declination sign (J2000.0) integer*4 DEd_1 ! (deg) Declination (J2000.0) integer*4 DEm_1 ! (arcmin) Declination (J2000.0) integer*4 DEs_1 ! (arcsec) Declination (J2000.0) integer*4 GLAT ! (deg) Galactic latitude real*4 rmag ! (mag) ? Red magnitude from NLTT (<I/98>) or * LHS (<I/87>) real*4 Jmag_1 ! (mag) 2MASS J magnitude real*4 J_H ! (mag) 2MASS J-H colour index real*4 H_Ks ! (mag) 2MASS H-Ks colour index character*4 SpType ! Spectral type character*3 Sel ! [Yes No] Indicates whether the (J-H, H-Ks) * colors meet our criteria character*26 Com ! Comments (1) *Note (1): Notes on individual stars: * 1: Cataloged by Gizis, Reid, & Hawley, 2002, Cat. <J/AJ/123/3356> * 2: Included in Paper III of the present series (Cruz & Reid, 2002, * Cat. <J/AJ/123/2828>) * 3: Identified as a nearby star in Paper III, Cruz et al., 2002, * Cat. <J/AJ/123/2828> and by McCaughrean, Scholz, & Lodieu, * 2002A&A...390L..27M * 4: Binary star with separation 5; 2MASS photometry unreliable. * 5: Binary companion of LP 375-27 (mr=12.0), {Delta}=3"; * 2MASS photometry unreliable. * 6: Binary companion of G148-8 (mr=14.9), {Delta}=4.5"; * 2MASS photometry unreliable. * 7: Binary companion of BD+25 2621 (mr=11.0), {Delta}=4"; * 2MASS photometry unreliable. * 8: Misidentification; no evidence of motion, probably a background giant. * 9: LP 862-26 is not an M dwarf. * 10: Inconsistent optical and infrared photometry; both stars are * merged with red field stars in the 2MASS scans. * 11: Not identified as a binary by Luyten, but clearly elongated on * both UKST/SERC and 2MASS images; 2MASS photometry unreliable. * 12: Merged with a field star in the 2MASS scans, and photometry * correspondingly unreliable. UBV photometry by Ryan * (1992AJ....104.1144R) indicates G-type colors. Note that SIMBAD * has separate listings for this star under the LP and Lowell names. * 13: Binary companion of LP 878-90 (mr=14.2), {Delta}=4"; * 2MASS photometry unreliable. * 14: Binary companion of BD-10 6203A (mr=7.8), {Delta}=3"; * 2MASS photometry unreliable. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! 2MASS data for LSR proper motion stars integer*4 nr__2 parameter (nr__2=61) ! Number of records character*94 ar__2 ! Full-size record character*10 LSR ! Name in LSR (Cat. J/AJ/124/1190) real*4 Rmag_1 ! (mag) The R band magnitude real*4 R_J ! (mag) ? The (R-J) color character*1 l_Jmag ! Limit flag on Jmag real*4 Jmag_2 ! (mag) The 2MASS J band magnitude real*4 e_Jmag_1 ! (mag) ? Error in Jmag character*1 l_Hmag ! Limit flag on Hmag real*4 Hmag_1 ! (mag) The 2MASS H band magnitude real*4 e_Hmag_1 ! (mag) ? Error in Hmag character*1 l_Ksmag ! Limit flag on Ksmag real*4 Ksmag_1 ! (mag) The 2MASS Ks band magnitude real*4 e_Ksmag_1 ! (mag) ? Error in Ksmag real*4 HR ! The R-band reduced proper motion * H = Rmag + 5 + 5log{mu} character*8 Class ! Classification character*12 Com_1 ! Additional comments (1) *Note (1): Spectral types are taken from Lepine, Rich & Shara (2003, Cat. * <J/AJ/125/1598>), except for LSR0510, LSR0539, LSR0602 (this paper) * and LSR1835 (Reid et al., 2003AJ....125..354R) * 1 = These white dwarfs lie within the area covered by the 2MASS Second * Incremental Data Release, but are not detected * 2 = For further details, see Hambly et al. (1997ApJ...489L.157H) * 3 = LSR0510+2713 - correct position is RA = 5:10:20.1, DE = +27:14:4) * 4 = This M8.5 dwarf lies only 5.67 parsecs from the Sun (Reid et al., * 2003AJ....125..354R) * 5 = LSR1928-0200B - correct position is RA = 19:28:13.3, DE = -2:0:25) * 6 = Further details are given in Lowrance et al. (2003ApJ...584L..95L). C============================================================================= C Loading file 'table1.dat' ! Ultracool dwarf candidates with |b|<10{deg} C Format for file interpretation 1 format( + I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,F5.3,1X, + F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,A27) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,101 read(1,'(A91)')ar__ read(ar__,1) + RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag, + e_Ksmag,Comm 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) + RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag, + e_Ksmag,Comm write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Ultracool candidates from Luyten's surveys C Format for file interpretation 2 format( + I5,1X,A11,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,I3,1X, + F4.1,1X,F5.2,1X,F4.2,1X,F4.2,1X,A4,1X,A3,1X,A26) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,31 read(1,'(A99)')ar__1 read(ar__1,2) + NLTT,Name,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,GLAT,rmag, + Jmag_1,J_H,H_Ks,SpType,Sel,Com if(ar__1(44:47) .EQ. '') rmag = rNULL__ 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) + NLTT,Name,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,GLAT,rmag, + Jmag_1,J_H,H_Ks,SpType,Sel,Com write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! 2MASS data for LSR proper motion stars C Format for file interpretation 3 format( + 3X,A10,1X,F4.1,1X,F4.2,1X,A1,F6.3,1X,F5.3,1X,A1,F6.3,1X,F5.3, + 1X,A1,F6.3,1X,F5.3,1X,F5.2,1X,A8,1X,A12) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,61 read(1,'(A94)')ar__2 read(ar__2,3) + LSR,Rmag_1,R_J,l_Jmag,Jmag_2,e_Jmag_1,l_Hmag,Hmag_1,e_Hmag_1, + l_Ksmag,Ksmag_1,e_Ksmag_1,HR,Class,Com_1 if(ar__2(20:23) .EQ. '') R_J = rNULL__ if(ar__2(33:37) .EQ. '') e_Jmag_1 = rNULL__ if(ar__2(47:51) .EQ. '') e_Hmag_1 = rNULL__ if(ar__2(61:65) .EQ. '') e_Ksmag_1 = rNULL__ c ..............Just test output........... write(6,3) + LSR,Rmag_1,R_J,l_Jmag,Jmag_2,e_Jmag_1,l_Hmag,Hmag_1,e_Hmag_1, + l_Ksmag,Ksmag_1,e_Ksmag_1,HR,Class,Com_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end