Conversion of standardized ReadMe file for
file /./ftp/cats/I/257B 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. I/257B Proper Motions in Praesepe (Wang+, 1995) *================================================================================ *J2000.0 positions and proper motions of 257 stars in the central part of the *Praesepe astrometric standard region * Wang J.J., Jiang P.F. * <Acta Astron. Sinica. 32, 176 (1991)> * =1991AcASn..32..176W *High-precision study of proper motions and membership of 924 stars in *the central region of Praesepe. * Wang J.J., Chen L., Zhao J.H., Jiang P.F. * <Astron. Astrophys. Suppl. Ser. 113, 419 (1995)> * =1995A&AS..113..419W C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'catalog.dat' ! Data for 924 stars and their membership. (table 8 of paper in 1995A&AS..113..419W) integer*4 nr__ parameter (nr__=924) ! Number of records character*100 ar__ ! Full-size record C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs (Epoch=1986.17) real*8 RAdeg ! (deg) Right Ascension J2000.0, Epoch=1986.17 real*8 DEdeg ! (deg) Declination J2000.0, Epoch=1986.17 C ---------------------------------- ! (position vector(s) in degrees) integer*4 Seq ! *[1,924]+ Sequential number integer*4 Russel ! ? Russell's (1976, Ph.D. Thesis) number character*4 KW ! ? Klein-Wassink's (1927, Groningen Publ. 41) integer*4 NArt ! ? Artyukhina's (1971, Soob. Sternberg 172, 3) integer*4 NJC ! ? Jones & Cudworth's (1983AJ.....88..215J) character*1 AC ! [*] AC star is indicated with '*' real*4 Mag ! (mag) V magnitude or B magnitude when there is * a 'B' in the next column character*1 f_Mag ! [B] When 'B' given magnitude is B magnitude real*4 B_V ! (mag) ? B-V colour index character*1 f_B_V ! [PG] Photoelectric or photoGraphic color character*1 r_B_V ! *[CWGJRH] Origin of the photometry character*1 q_B_V ! *[BGFP] Quality of the photometry integer*4 RAh ! (h) Right ascension Equinox=J2000.0, Epoch=1986.17 integer*4 RAm ! (min) Right ascension Equinox=J2000.0, Epoch=1986.17 real*4 RAs ! (s) Right ascension Equinox=J2000.0, Epoch=1986.17 character*1 DE_ ! Declination sign integer*4 DEd ! (deg) Declination for Equinox=J2000.0, Epoch=1986.17 integer*4 DEm ! (arcmin) Declination for Equinox=J2000.0, Epoch=1986.17 real*4 DEs ! (arcsec) Declination for Equinox=J2000.0, Epoch=1986.17 integer*4 pmRA ! (0.1mas/yr) Proper motion component in right ascension * reduced into the great circle integer*4 e_pmRA ! (0.1mas/yr) Standard error of proper motion in RA integer*4 pmDE ! (0.1mas/yr) Proper motion component in declination integer*4 e_pmDE ! (0.1mas/yr) Standard error of proper motion in DE real*4 Prob ! Membership probability integer*4 Member ! [0,1] Membership judgement: * '1' cluster star (Prob>=0.36) * '0' field star (Prob<0.36) character*6 n_Member ! *Notes about previous membership judgements *Note on Seq: Numbers 1 to 257 were published also in Wang and Jiang, * Acta Astronomica Sinica (1991AcASn..32..176W), see file "cat1991.dat" *Note on r_B-V: the origin of the photometry is coded as follows: * C - combined from Johnson (1952ApJ...116..640J), * Upgren et al. (1979AJ.....84.1586U), * W - combined from Weis (1981PASP...93..437W), * and Stauffer (1982PASP...94..678S) * G - Goetz's (1984AN....305...17G) * J - Jones & Cudworth's (1983AJ.....88..215J) * R - Russell's (1976, Pd.D. Thesis, Pittsburgh University) * H was never explained. *Note on q_B-V: the quality letters correspond to an estimated standard error: * B - s.e. less than 0.01 * G - s.e. from 0.01 to 0.04 * F - s.e. from 0.04 to 0.08 * P - s.e. greater than 0.08 *Note on n_Member: the symbols are: * K - member by Klein-Wassink (1927, Groningen Publ. 41) * A - member by Artyukhina (1971, Soobshch. Astron. Inst. Sternberg 172, 3) * 1..9 - non-zero membership probability by Jones & Cudworth * (1983AJ.....88..215J) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'cat1991.dat' ! J2000.0 positions and proper motions of 257 stars in the central part of the Praesepe astrometric standard region integer*4 nr__1 parameter (nr__1=257) ! Number of records character*73 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 Seq_1 ! [1,257]+ Sequential number integer*4 Russel_1 ! Russel number character*1 n_Russel ! [*] Note on Russel number (See text in * the original publication) integer*4 RAh_1 ! (h) Right ascension J2000.0 integer*4 RAm_1 ! (min) Right ascension J2000.0 real*8 RAs_1 ! (s) Right ascension J2000.0 integer*4 e_RAs ! (10-4s) rms uncertainty on right ascension character*1 DE__1 ! Declination sign integer*4 DEd_1 ! (deg) Declination J2000.0 integer*4 DEm_1 ! (arcmin) Declination J2000.0 real*4 DEs_1 ! (arcsec) Declination J2000.0 integer*4 e_DEs ! (10-3arcsec) rms uncertainty on declination real*8 pmRA_1 ! (s/yr) Proper motion in right ascension integer*4 e_pmRA_1 ! (10-6s/yr) rms uncertainty on pmRA real*8 pmDE_1 ! (arcsec/yr) Proper motion in declination integer*4 e_pmDE_1 ! (10-5arcsec/yr) rms uncertainty on pmDE C============================================================================= C Loading file 'catalog.dat' ! Data for 924 stars and their membership. * (table 8 of paper in 1995A&AS..113..419W) C Format for file interpretation 1 format( + 1X,I3,1X,I3,1X,A4,1X,I3,1X,I3,2X,A1,2X,F5.2,A1,F5.2,1X,A1,A1, + A1,1X,I1,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,2X,I4,1X,I3,1X, + I5,1X,I3,1X,F4.2,1X,I1,1X,A6) C Effective file loading open(unit=1,status='old',file= +'catalog.dat') write(6,*) '....Loading file: catalog.dat' do i__=1,924 read(1,'(A100)')ar__ read(ar__,1) + Seq,Russel,KW,NArt,NJC,AC,Mag,f_Mag,B_V,f_B_V,r_B_V,q_B_V,RAh, + RAm,RAs,DE_,DEd,DEm,DEs,pmRA,e_pmRA,pmDE,e_pmDE,Prob,Member, + n_Member if(ar__(6:8) .EQ. '') Russel = iNULL__ if(ar__(15:17) .EQ. '') NArt = iNULL__ if(ar__(19:21) .EQ. '') NJC = iNULL__ if(ar__(33:37) .EQ. '') B_V = rNULL__ 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) + Seq,Russel,KW,NArt,NJC,AC,Mag,f_Mag,B_V,f_B_V,r_B_V,q_B_V,RAh, + RAm,RAs,DE_,DEd,DEm,DEs,pmRA,e_pmRA,pmDE,e_pmDE,Prob,Member, + n_Member write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'cat1991.dat' ! J2000.0 positions and proper motions of 257 * stars in the central part of the Praesepe * astrometric standard region C Format for file interpretation 2 format( + I3,2X,I3,A1,1X,I1,1X,I2,1X,F7.4,2X,I3,A1,I2,1X,I2,1X,F6.3,1X, + I3,1X,F9.6,1X,I4,1X,F8.5,1X,I4) C Effective file loading open(unit=1,status='old',file= +'cat1991.dat') write(6,*) '....Loading file: cat1991.dat' do i__=1,257 read(1,'(A73)')ar__1 read(ar__1,2) + Seq_1,Russel_1,n_Russel,RAh_1,RAm_1,RAs_1,e_RAs,DE__1,DEd_1, + DEm_1,DEs_1,e_DEs,pmRA_1,e_pmRA_1,pmDE_1,e_pmDE_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) + Seq_1,Russel_1,n_Russel,RAh_1,RAm_1,RAs_1,e_RAs,DE__1,DEd_1, + DEm_1,DEs_1,e_DEs,pmRA_1,e_pmRA_1,pmDE_1,e_pmDE_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end