Conversion of standardized ReadMe file for
file /./ftp/cats/J/PASP/106/281 into FORTRAN code for loading all data files into arrays.
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-29 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/PASP/106/281 Photometry and radial velocities in NGC752 (Daniel+, 1994) *================================================================================ *A photometric and radial-velocity analysis of the intermediate-age *open cluster NGC 752. * Daniel S.A., Latham D.W., Mathieu R.D., Twarog B.A. * <Publ. Astron. Soc. Pac. 106, 281 (1994)> * =1994PASP..106..281D C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tables.dat' ! Data for NGC 752 (tables 1 and 2 of the paper) integer*4 nr__ parameter (nr__=255) ! Number of records character*138 ar__ ! Full-size record C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__) ! (deg) Right Ascension J2000.0 real*8 DEdeg (nr__) ! (deg) Declination J2000.0 C ---------------------------------- ! (position vector(s) in degrees) character*4 ID (nr__) ! Designation of the star integer*4 RAh (nr__) ! (h) Right ascension (J2000.0) integer*4 RAm (nr__) ! (min) Right ascension (J2000.0) real*4 RAs (nr__) ! (s) Right ascension (J2000.0) character*1 DE_ (nr__) ! Declination sign integer*4 DEd (nr__) ! (deg) Declination (J2000.0) integer*4 DEm (nr__) ! (arcmin) Declination (J2000.0) real*4 DEs (nr__) ! (arcsec) Declination (J2000.0) real*4 Vmag (nr__) ! (mag) ? V magnitude real*4 e_Vmag (nr__) ! (mag) ? rms uncertainty on Vmag integer*4 o_Vmag (nr__) ! ? Number of observations in Vmag real*4 B_V (nr__) ! (mag) ? B-V colour index real*4 e_B_V (nr__) ! (mag) ? rms uncertainty on B-V integer*4 o_B_V (nr__) ! ? Number of observations in B-V integer*4 Plat (nr__) ! ? Platais (1991) identification number (1) integer*4 PlatPR (nr__) ! (%) ? Membership probability character*3 Ebbi (nr__) ! Ebbighausen (1939) identification number (1) character*1 m_Ebbi (nr__) ! Multiplicity index on Ebbi integer*4 EbbiMC (nr__) ! [1/4]? Membership class (2) integer*4 Cann (nr__) ! ? Cannon (1968) identification number (1) character*1 CannMC (nr__) ! [-+] Membership code (3) integer*4 Fran (nr__) ! ? Francic (1989a,b) identification number (1) real*4 FranPR (nr__) ! ? Membership probability real*4 RVPsh (nr__) ! (km/s) ? Pilachowski et al. (1988) radial velocity (1) character*1 n_RVPsh (nr__) ! [v] v: variable integer*4 o_RVPsh (nr__) ! ? Number of observations for RVPsh real*4 RV (nr__) ! (km/s) ? New radial velocity character*1 u_RV (nr__) ! Uncertainty flag on RV real*4 e_RV (nr__) ! (km/s) ? rms uncertainty on RV integer*4 o_RV (nr__) ! ? Number of observations for RV integer*4 RuID (nr__) ! ? Rufener (1981) identification number (1) integer*4 RvID (nr__) ! ? Rohlfs & Vanysek (1961) identification * number (1) character*1 MC (nr__) ! [0+-] Final estimate of membership (4) character*15 Note (nr__) ! Note (5) *Note (1): Plat: Platais, 1991A&AS...87...69P, Cl* NGC 752 PLA NNN * Ebbi: Ebbighausen, 1939ApJ....89..431E, * nnn when NGC 752 NNN * Ann when Cl* NGC 752 Ebbi ANN * Cann: Cannon, 1968, Ph. D. thesis, University of Cambridge * Fran: Francic, 1989AJ.....98..888F, CL* NGC 752 FRAN NNN * Psh: Pilachowski et al., 1988PASP..100..471P * Rv: Rohlfs & Vanysek, 1961AAHam...5..343R, Cl* NGC 752 RV NNN * Ru: Rufener 1981 , Geneva photometric catalog, See Cat. <II/169> *Note (2): 1: definite membership * 2: probable membership * 3: probable nonmembership * 4: definite nonmembership *Note (3): +: membership * -: nonmembership *Note (4): +: probable membership * 0: possible membership * -: probable nonmembership *Note (5): SB1: single-lined system * SB2: double-lines system * ORB: Orbital elements derived by other * ROT: stars whose velocities were derived using computed templates * with rotation velocities grater than 30km/s C============================================================================= C Loading file 'tables.dat' ! Data for NGC 752 (tables 1 and 2 of the paper) C Format for file interpretation 1 format( + A4,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.3,1X,F5.3, + 1X,I2,1X,F5.3,1X,F5.3,1X,I2,1X,I4,1X,I2,1X,A3,A1,I1,1X,I3,1X, + A1,1X,I3,1X,F4.2,1X,F5.1,A1,1X,I1,F5.1,A1,1X,F5.1,1X,I2,1X,I3, + 1X,I3,1X,A1,1X,A15) C Effective file loading open(unit=1,status='old',file= +'tables.dat') write(6,*) '....Loading file: tables.dat' do i__=1,255 read(1,'(A138)')ar__ read(ar__,1) + ID(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__), + DEs(i__),Vmag(i__),e_Vmag(i__),o_Vmag(i__),B_V(i__), + e_B_V(i__),o_B_V(i__),Plat(i__),PlatPR(i__),Ebbi(i__), + m_Ebbi(i__),EbbiMC(i__),Cann(i__),CannMC(i__),Fran(i__), + FranPR(i__),RVPsh(i__),n_RVPsh(i__),o_RVPsh(i__),RV(i__), + u_RV(i__),e_RV(i__),o_RV(i__),RuID(i__),RvID(i__),MC(i__), + Note(i__) if(ar__(30:35) .EQ. '') Vmag(i__) = rNULL__ if(ar__(37:41) .EQ. '') e_Vmag(i__) = rNULL__ if(ar__(43:44) .EQ. '') o_Vmag(i__) = iNULL__ if(ar__(46:50) .EQ. '') B_V(i__) = rNULL__ if(ar__(52:56) .EQ. '') e_B_V(i__) = rNULL__ if(ar__(58:59) .EQ. '') o_B_V(i__) = iNULL__ if(ar__(61:64) .EQ. '') Plat(i__) = iNULL__ if(ar__(66:67) .EQ. '') PlatPR(i__) = iNULL__ if(ar__(73:73) .EQ. '') EbbiMC(i__) = iNULL__ if(ar__(75:77) .EQ. '') Cann(i__) = iNULL__ if(ar__(81:83) .EQ. '') Fran(i__) = iNULL__ if(ar__(85:88) .EQ. '') FranPR(i__) = rNULL__ if(ar__(90:94) .EQ. '') RVPsh(i__) = rNULL__ if(ar__(97:97) .EQ. '') o_RVPsh(i__) = iNULL__ if(ar__(98:102) .EQ. '') RV(i__) = rNULL__ if(ar__(105:109) .EQ. '') e_RV(i__) = rNULL__ if(ar__(111:112) .EQ. '') o_RV(i__) = iNULL__ if(ar__(114:116) .EQ. '') RuID(i__) = iNULL__ if(ar__(118:120) .EQ. '') RvID(i__) = iNULL__ RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + ID(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__), + DEs(i__),Vmag(i__),e_Vmag(i__),o_Vmag(i__),B_V(i__), + e_B_V(i__),o_B_V(i__),Plat(i__),PlatPR(i__),Ebbi(i__), + m_Ebbi(i__),EbbiMC(i__),Cann(i__),CannMC(i__),Fran(i__), + FranPR(i__),RVPsh(i__),n_RVPsh(i__),o_RVPsh(i__),RV(i__), + u_RV(i__),e_RV(i__),o_RV(i__),RuID(i__),RvID(i__),MC(i__), + Note(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end