Conversion of standardized ReadMe file for
file /./ftp/cats/J/PASP/114/1382 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-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/114/1382 BVRI photometry of Stock 1 stars (Osborn+, 2002) *================================================================================ *The neglected open cluster Stock 1. * Osborn W., Sano Y., Spalding R. * <Publ. Astron. Soc. Pac. 114, 1382 (2002) + Erratum 115, 761 (2003)> * =2002PASP..114.1382O C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Positions and photometry integer*4 nr__ parameter (nr__=161) ! Number of records character*69 ar__ ! 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*4 Seq ! Sequential number, Cl* Stock 1 S NNNA in Simbad 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) integer*4 DEs ! (arcsec) Declination (J2000.0) real*4 Vmag ! (mag) ? V magnitude real*4 B_V ! (mag) ? B-V colour index real*4 V_R ! (mag) ? V-R colour index real*4 V_I ! (mag) ? V-I colour index integer*4 o_Vmag ! ? Number of nights of observation character*1 n_Vmag ! [T] T: transformed photographic data, * only V and B-V are given real*4 e_Vmag ! (mag) ? rms uncertainty on Vmag real*4 e_B_V ! (mag) ? rms uncertainty on B-V real*4 e_V_R ! (mag) ? rms uncertainty on V-R real*4 e_V_I ! (mag) ? rms uncertainty on V-I c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Spalding (1979, M.S. thesis, Central Michigan Univ) photoelectric photometry integer*4 nr__1 parameter (nr__1=17) ! Number of records character*17 ar__1 ! Full-size record character*4 Seq_1 ! Sequential number real*4 Vmag_1 ! (mag) V magnitude (average error of +/-0.03) real*4 B_V_1 ! (mag) B-V colour index (average error of +/-0.04) integer*4 o_Vmag_1 ! Number of nights of observations c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Cluster membership integer*4 nr__2 parameter (nr__2=40) ! Number of records character*27 ar__2 ! Full-size record character*4 Seq_2 ! Sequential number character*3 MCMD ! Membership class from each of the five criteria * of color magnitude diagram position (1) character*3 ME_B_V ! Membership class from reddening(1) character*3 MV0_MV ! Membership class from distance modulus (1) character*3 Mpm ! Membership class from proper motion (1) character*2 Mplx ! Membership from parallax (1) character*3 Memb ! Adopted membership classification (1) *Note (1): Membership codes as follows: * M = Member (M?: possible member) * NM = non-member (NM?: possible non-member) * F = Foreground (F?: Possible foreground) * B = Background (B?: Possible background) C============================================================================= C Loading file 'table1.dat' ! Positions and photometry C Format for file interpretation 1 format( + A4,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F5.2,1X,F4.2, + 1X,F4.2,1X,F4.2,1X,I1,A1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,161 read(1,'(A69)')ar__ read(ar__,1) + Seq,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,B_V,V_R,V_I,o_Vmag, + n_Vmag,e_Vmag,e_B_V,e_V_R,e_V_I if(ar__(27:31) .EQ. '') Vmag = rNULL__ if(ar__(33:36) .EQ. '') B_V = rNULL__ if(ar__(38:41) .EQ. '') V_R = rNULL__ if(ar__(43:46) .EQ. '') V_I = rNULL__ if(ar__(48:48) .EQ. '') o_Vmag = iNULL__ if(ar__(51:54) .EQ. '') e_Vmag = rNULL__ if(ar__(56:59) .EQ. '') e_B_V = rNULL__ if(ar__(61:64) .EQ. '') e_V_R = rNULL__ if(ar__(66:69) .EQ. '') e_V_I = 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,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,B_V,V_R,V_I,o_Vmag, + n_Vmag,e_Vmag,e_B_V,e_V_R,e_V_I write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Spalding (1979, M.S. thesis, Central Michigan Univ) * photoelectric photometry C Format for file interpretation 2 format(A4,1X,F5.2,1X,F4.2,1X,I1) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,17 read(1,'(A17)')ar__1 read(ar__1,2)Seq_1,Vmag_1,B_V_1,o_Vmag_1 c ..............Just test output........... write(6,2)Seq_1,Vmag_1,B_V_1,o_Vmag_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Cluster membership C Format for file interpretation 3 format(A4,1X,A3,1X,A3,1X,A3,1X,A3,1X,A2,1X,A3) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,40 read(1,'(A27)')ar__2 read(ar__2,3)Seq_2,MCMD,ME_B_V,MV0_MV,Mpm,Mplx,Memb c ..............Just test output........... write(6,3)Seq_2,MCMD,ME_B_V,MV0_MV,Mpm,Mplx,Memb c .......End.of.Just test output........... end do close(1) C============================================================================= stop end