Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/382/899 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-20 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/A+A/382/899 BVI photometry in M67 (Stassun+, 2002) *================================================================================ *Photometric variability in the old open cluster M 67. II. General survey. * Stassun K.G., van den Berg M., Mathieu R.D., Verbunt F. * <Astron. Astrophys. 382, 899 (2002)> * =2002A&A...382..899S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! List of sources cross-identified with Fan et al. (1996, Cat. <J/AJ/112/628>) integer*4 nr__ parameter (nr__=976) ! Number of records character*61 ar__ ! Full-size record integer*4 FBC ! Fan et al., 1996, Cat. <J/AJ/112/628> number, * number, Cl* NGC 2682 FBC NNNN in Simbad integer*4 Sand ! ? Sanders, 1977A&AS...27...89S number, * Cl* NGC 2682 Sand NNNN in Simbad character*1 m_Sand ! [ab] Multiplicity index on Sand real*4 PmuSand ! ? Proper-motion membership probability from * Sanders (1977A&AS...27...89S) character*4 Gir ! Girard et al., 1989AJ.....98..227G number character*1 m_Gir ! [ab] Multiplicity index on Gir real*4 Pmu ! ? Proper-motion membership probability from * Girard et al. (1989AJ.....98..227G) (1) real*4 Pmu_r ! ? Proper-motion membership probability from * Girard et al. (1989AJ.....98..227G) (2) integer*4 Prv ! ? Radial-velocity membership probability from * Girard et al. (1989AJ.....98..227G) character*2 n_Prv ! Note on Prv (3) integer*4 ZTP ! ? Zhao et al., 1993, Cat. <J/A+AS/100/243> * number, CL* NGC 2682 ZTP NNNN in Simbad real*4 PmuZTP ! ? Proper-motion membership probability from * Zhao et al., 1993, Cat. <J/A+AS/100/243> character*5 ES ! Eggen & Sandage, 1964ApJ...140..130E number, * Cl* NGC 2682 ES R-NNN in Simbad integer*4 FID ! ? Fagerholm 1906, PhD thesis, Uppsala number integer*4 MMJ ! ? Montgomery et al., 1993, Cat. <J/AJ/106/181> * number, CL* NGC 2682 MMJ NNNN in Simbad *Note (1): Proper-motion membership probability based on solely star's * proper motion *Note (2): Proper-motion membership probability taking into account * the star's distance from the cluster center. *Note (3): Codes: * sb: spectroscopic binary * hi: high radial velocity dispersion >1km/s * si: only a single radial velocity measurement c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! List of other sources integer*4 nr__1 parameter (nr__1=13) ! Number of records character*58 ar__1 ! 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*1 IDT2 ! [A-M] Star identification 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) real*4 DEs ! (arcsec) Declination (J2000.0) integer*4 Sand_1 ! ? Sanders, 1977A&AS...27...89S number, * Cl* NGC 2682 Sand NNNN in Simbad character*1 m_Sand_1 ! [b] Multiplicity index on Sand integer*4 Gir_1 ! ? Girard et al., 1989AJ.....98..227G number character*1 m_Gir_1 ! [b] Multiplicity index on Gir real*4 Pmu_1 ! ? Proper-motion membership probability based * on solely star's proper motion (1) real*4 Pmu_r_1 ! ? Proper-motion membership probability based on * star's proper motion and distance from the * cluster center (1) character*5 ES_1 ! Eggen & Sandage, 1964ApJ...140..130E number, * Cl* NGC 2682 ES R-NNN in Simbad integer*4 MMJ_1 ! ? Montgomery et al., 1993, Cat. <J/AJ/106/181> * number, CL* NGC 2682 MMJ NNNN in Simbad *Note (1): From Girard et al., 1989AJ.....98..227G. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! BVI photometry for all sources included in study integer*4 nr__2 parameter (nr__2=989) ! Number of records character*28 ar__2 ! Full-size record integer*4 FBC_1 ! ? Star identification number as in table 1 (1) character*1 IDT2_1 ! Star identification as in table2 (1) real*4 Bmag ! (mag) ? Johnson B magnitude real*4 Vmag ! (mag) ? Johnson V magnitude real*4 Imag ! (mag) ? Cousins I or Gunn i magnitude (2) integer*4 n_Imag ! [1]? 1: Cousins I magnitude, else Gunn i *Note (1): Includes the 977 sources from Table 1, which are numbered by * the numbering scheme of Fan et al. (1996, Cat. <J/AJ/112/628>). Also * includes the 13 sources from Table 2, which are identified with * letters A-M. *Note (2): Values reported are in either the Cousins I or Gunn i passbands. * If n_Imag = 1, then the value is Gunn i. C============================================================================= C Loading file 'table1.dat' ! List of sources cross-identified with * Fan et al. (1996, Cat. <J/AJ/112/628>) C Format for file interpretation 1 format( + I4,1X,I4,A1,1X,F4.2,1X,A4,A1,1X,F4.2,1X,F4.2,1X,I2,A2,1X,I4, + 1X,F4.2,1X,A5,1X,I3,1X,I4) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,976 read(1,'(A61)')ar__ read(ar__,1) + FBC,Sand,m_Sand,PmuSand,Gir,m_Gir,Pmu,Pmu_r,Prv,n_Prv,ZTP, + PmuZTP,ES,FID,MMJ if(ar__(6:9) .EQ. '') Sand = iNULL__ if(ar__(12:15) .EQ. '') PmuSand = rNULL__ if(ar__(23:26) .EQ. '') Pmu = rNULL__ if(ar__(28:31) .EQ. '') Pmu_r = rNULL__ if(ar__(33:34) .EQ. '') Prv = iNULL__ if(ar__(38:41) .EQ. '') ZTP = iNULL__ if(ar__(43:46) .EQ. '') PmuZTP = rNULL__ if(ar__(54:56) .EQ. '') FID = iNULL__ if(ar__(58:61) .EQ. '') MMJ = iNULL__ c ..............Just test output........... write(6,1) + FBC,Sand,m_Sand,PmuSand,Gir,m_Gir,Pmu,Pmu_r,Prv,n_Prv,ZTP, + PmuZTP,ES,FID,MMJ c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! List of other sources C Format for file interpretation 2 format( + A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,I4,A1,1X,I4, + A1,1X,F4.2,1X,F4.2,1X,A5,1X,I4) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,13 read(1,'(A58)')ar__1 read(ar__1,2) + IDT2,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Sand_1,m_Sand_1,Gir_1, + m_Gir_1,Pmu_1,Pmu_r_1,ES_1,MMJ_1 if(ar__1(27:30) .EQ. '') Sand_1 = iNULL__ if(ar__1(33:36) .EQ. '') Gir_1 = iNULL__ if(ar__1(39:42) .EQ. '') Pmu_1 = rNULL__ if(ar__1(44:47) .EQ. '') Pmu_r_1 = rNULL__ if(ar__1(55:58) .EQ. '') MMJ_1 = 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,2) + IDT2,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Sand_1,m_Sand_1,Gir_1, + m_Gir_1,Pmu_1,Pmu_r_1,ES_1,MMJ_1 write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! BVI photometry for all sources included in study C Format for file interpretation 3 format(I4,A1,1X,F5.2,2X,F5.2,2X,F5.2,2X,I1) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,989 read(1,'(A28)')ar__2 read(ar__2,3)FBC_1,IDT2_1,Bmag,Vmag,Imag,n_Imag if(ar__2(1:4) .EQ. '') FBC_1 = iNULL__ if(ar__2(7:11) .EQ. '') Bmag = rNULL__ if(ar__2(14:18) .EQ. '') Vmag = rNULL__ if(ar__2(21:25) .EQ. '') Imag = rNULL__ if(ar__2(28:28) .EQ. '') n_Imag = iNULL__ c ..............Just test output........... write(6,3)FBC_1,IDT2_1,Bmag,Vmag,Imag,n_Imag c .......End.of.Just test output........... end do close(1) C============================================================================= stop end