Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/651/502 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/ApJ/651/502 Spitzer IRAC photometry of M, L, and T dwarfs (Patten+, 2006) *================================================================================ *Spitzer IRAC photometry of M, L, and T dwarfs. * Patten B.M., Stauffer J.R., Burrows A., Marengo M., Hora J.L., Luhman K.L., * Sonnett S.M., Henry T.J., Raghavan D., Megeath S.T., Liebert J., Fazio G.G. * <Astrophys. J., 651, 502-516 (2006)> * =2006ApJ...651..502P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Sample of late-type M, L, and T dwarfs: basic data integer*4 nr__ parameter (nr__=86) ! Number of records character*110 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) character*15 Name ! Star name character*1 n_Name ! [b] b: known binary integer*4 RAh ! (h) Right ascension (J2000) integer*4 RAm ! (min) Right ascension (J2000) real*4 RAs ! (s) Right ascension (J2000) character*1 DE_ ! Declination sign (J2000) integer*4 DEd ! (deg) Declination (J2000) integer*4 DEm ! (arcmin) Declination (J2000) integer*4 DEs ! (arcsec) Declination (J2000) character*9 SpT ! MK spectral type (1) integer*4 r_SpT ! Spectral type reference, in refs.dat file real*8 plx ! (arcsec) ? Parallax real*8 e_plx ! (arcsec) ? rms uncertainty on plx integer*4 r_plx ! ? Parallax reference, in refs.dat file real*4 Jmag ! (mag) J magnitude real*4 e_Jmag ! (mag) rms uncertainty on Jmag real*4 Hmag ! (mag) H magnitude real*4 e_Hmag ! (mag) rms uncertainty on Hmag real*4 Ksmag ! (mag) Ks magnitude real*4 e_Ksmag ! (mag) rms uncertainty on Ksmag integer*4 r_Jmag ! JHK reference, in refs.dat file character*3 Syst ! Photometry system (2) *Note (1): Unless otherwise noted, optical spectral types are used for M and * L dwarfs, and infrared spectral types are used for the T dwarfs. *Note (2): Photometry system as follows: * 2MA = 2MASS (Cat. II/246) * MKO = MKO, Tokunaga et al., 2002PASP..114..180T c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! IRAC photometry and colors of late-type M, L, and T dwarfs integer*4 nr__1 parameter (nr__1=86) ! Number of records character*108 ar__1 ! Full-size record character*15 Name_1 ! Star name character*1 n_Name_1 ! [b] b: known binary character*9 SpT_1 ! MK spectral type real*4 v_3_6_ ! (mag) IRAC 3.6um magnitude real*4 e__3_6_ ! (mag) rms uncertainty on [3.6] integer*4 o__3_6_ ! Number of observations in 3.6um real*4 v_4_5_ ! (mag) IRAC 4.5um magnitude real*4 e__4_5_ ! (mag) rms uncertainty on [4.5] integer*4 o__4_5_ ! Number of observations in 4.5um real*4 v_5_8_ ! (mag) IRAC 5.8um magnitude real*4 e__5_8_ ! (mag) rms uncertainty on [5.8] integer*4 o__5_8_ ! Number of observations in 5.8um real*4 v_8_0_ ! (mag) IRAC 8.0um magnitude real*4 e__8_0_ ! (mag) rms uncertainty on [8.0] integer*4 o__8_0_ ! Number of observations in 8.0um real*4 v_3_6___4_5_ ! (mag) IRAC [3.6]-[4.5] colour index real*4 v_4_5___5_8_ ! (mag) IRAC [4.5]-[5.8] colour index real*4 v_5_8___8_0_ ! (mag) IRAC [5.8]-[8.0] colour index character*7 Notes ! Notes (1) *Note (1): Notes as follows: * 1 = Source saturated in all four IRAC channels in 30s FRAMETIME data; * 2s FRAMETIME data used instead * 2 = GTO program PID 33 target; 2s FRAMETIME data * 3 = GTO program PID 33 target; 0.6s FRAMETIME data * 4 = Channel 1 saturated for 30s FRAMETIME data; used 2s FRAMETIME * data for this channel * 5 = Channel 2 saturated for 30s FRAMETIME data; used 2s FRAMETIME * data for this channel * 6 = GTO program PID 33 target * 7 = Target source aperture possibly contaminated by flux from * another nearby source * 8 = Target in crowded field; some contamination of source aperture by * other nearby sources possible * 9 = Spitzer AOR target name incorrectly reads 2MA 1410+1804 * 10 = Wings of GJ 1001 PSF may contaminate source aperture for target; * however, 2s FRAMETIME data for channels 1 and 2 agree well with * the 30s FRAMETIME data * 11 = Strong nebulosity in background, especially in channel 4 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__2 parameter (nr__2=41) ! Number of records character*76 ar__2 ! Full-size record integer*4 Ref ! Reference code character*19 BibCode ! BibCode character*20 Aut ! Authot's name character*30 Com ! Comments C============================================================================= C Loading file 'table1.dat' ! Sample of late-type M, L, and T dwarfs: basic data C Format for file interpretation 1 format( + A15,1X,A1,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,A9,1X, + I2,1X,F7.5,1X,F7.5,1X,I2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X, + F5.2,1X,F4.2,1X,I2,1X,A3) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,86 read(1,'(A110)')ar__ read(ar__,1) + Name,n_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SpT,r_SpT,plx,e_plx, + r_plx,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,r_Jmag,Syst if(ar__(53:59) .EQ. '') plx = rNULL__ if(ar__(61:67) .EQ. '') e_plx = rNULL__ if(ar__(69:70) .EQ. '') r_plx = iNULL__ 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,n_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SpT,r_SpT,plx,e_plx, + r_plx,Jmag,e_Jmag,Hmag,e_Hmag,Ksmag,e_Ksmag,r_Jmag,Syst write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! IRAC photometry and colors of late-type M, L, and * T dwarfs C Format for file interpretation 2 format( + A15,1X,A1,1X,A9,1X,F5.2,1X,F4.2,1X,I2,1X,F5.2,1X,F4.2,1X,I2, + 1X,F5.2,1X,F4.2,1X,I2,1X,F5.2,1X,F4.2,1X,I2,1X,F5.2,1X,F5.2, + 1X,F4.2,1X,A7) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,86 read(1,'(A108)')ar__1 read(ar__1,2) + Name_1,n_Name_1,SpT_1,v_3_6_,e__3_6_,o__3_6_,v_4_5_,e__4_5_, + o__4_5_,v_5_8_,e__5_8_,o__5_8_,v_8_0_,e__8_0_,o__8_0_, + v_3_6___4_5_,v_4_5___5_8_,v_5_8___8_0_,Notes c ..............Just test output........... write(6,2) + Name_1,n_Name_1,SpT_1,v_3_6_,e__3_6_,o__3_6_,v_4_5_,e__4_5_, + o__4_5_,v_5_8_,e__5_8_,o__5_8_,v_8_0_,e__8_0_,o__8_0_, + v_3_6___4_5_,v_4_5___5_8_,v_5_8___8_0_,Notes c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 3 format(I2,1X,A19,1X,A20,3X,A30) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,41 read(1,'(A76)')ar__2 read(ar__2,3)Ref,BibCode,Aut,Com c ..............Just test output........... write(6,3)Ref,BibCode,Aut,Com c .......End.of.Just test output........... end do close(1) C============================================================================= stop end