Conversion of standardized ReadMe file for
file /./ftp/cats/V/96 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. V/96 Catalogue of open cluster parameters from UBV-data. (Loktin+, 1994) *================================================================================ *Catalogue of open cluster parameters from UBV-data. * Loktin A.V., Matkin N.V., Gerasimenko T.P. * <Astron. Astrophys. Trans. 4, 153 (1994)> * =1994A&AT....4..153L C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'catalog.dat' ! Weighted mean parameters of open clusters integer*4 nr__ parameter (nr__=340) ! Number of records character*72 ar__ ! Full-size record C 1950 position composed of: RAh RAm DE- DEd DEm real*8 RAdeg ! (deg) Right Ascension 1950 real*8 DEdeg ! (deg) Declination 1950 C ---------------------------------- ! (position vector(s) in degrees) character*12 Cl ! Name of cluster real*4 GLON ! (deg) Galactic longitude real*4 GLAT ! (deg) Galactic latitude integer*4 RAh ! (h) Right Ascension 1950 (hours) real*4 RAm ! (min) Right Ascension 1950 (minutes) character*1 DE_ ! Declination (sign) integer*4 DEd ! (deg) Declination 1950 (degrees) integer*4 DEm ! (arcmin) Declination 1950 (minutes) real*4 E_B_V ! (mag) Mean value of reddening integer*4 Distm ! (pc) Mean estimate of cluster distance real*4 log_age ! ([yr]) Mean Log(age), years real*4 W ! Weight (1) integer*4 o_Cl ! Number of individual determinations * (in table1.dat) *Note (1): * Weight is defined by quality classes of both photometrical diagrams, * number of stars used and number of rejected stars. * These weights are arbitrary to some extent, but we state, that * clusters with weight>1 may be regarded as having good quality of * estimated parameters. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Individual determinations of cluster parameters integer*4 nr__1 parameter (nr__1=566) ! Number of records character*83 ar__1 ! Full-size record character*12 Cl_1 ! Name of cluster real*8 m_M ! (mag) Distance modulus integer*4 Dist ! (pc) Distance real*4 log_age_1 ! ([yr]) Log(age), years real*4 E_B_V_1 ! (mag) Reddening real*4 v_Fe_H_ ! ([Sun]) ? Metallicity index character*2 qHR ! Quality estimation of HR-diagram (1) character*2 qCD ! Quality estimation of two-color diagram (1) integer*4 Ns ! Original number of stars in cluster integer*4 Na ! Accepted number of stars in cluster integer*4 r_Cl ! [1,321] Reference number code (see refs.dat) *Note (1): the Quality codes are A to D where * A - corresponds to the diagrams with the most clearly visible sequences, * D - corresponds to quite unshaped distribution of points. * Digit 5 after the letter denotes the intermediate cases. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__2 parameter (nr__2=321) ! Number of records character*87 ar__2 ! Full-size record integer*4 RefC ! [1,321]+ Reference number code character*82 Text ! Text of reference C============================================================================= C Loading file 'catalog.dat' ! Weighted mean parameters of open clusters C Format for file interpretation 1 format( + A12,1X,F5.1,1X,F5.1,2X,I2,1X,F4.1,1X,A1,I2,1X,I2,2X,F4.2,2X, + I5,3X,F5.3,3X,F4.2,3X,I1) C Effective file loading open(unit=1,status='old',file= +'catalog.dat') write(6,*) '....Loading file: catalog.dat' do i__=1,340 read(1,'(A72)')ar__ read(ar__,1) + Cl,GLON,GLAT,RAh,RAm,DE_,DEd,DEm,E_B_V,Distm,log_age,W,o_Cl 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(DEd .GE. 0) DEdeg=DEd if(DEm .GE. 0) DEdeg=DEdeg+DEm/60. if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg c ..............Just test output........... write(6,1) + Cl,GLON,GLAT,RAh,RAm,DE_,DEd,DEm,E_B_V,Distm,log_age,W,o_Cl write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table1.dat' ! Individual determinations of cluster parameters C Format for file interpretation 2 format( + A12,2X,F7.3,2X,I5,4X,F6.3,4X,F5.3,3X,F6.3,4X,A2,2X,A2,3X,I3, + 1X,I3,4X,I3) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,566 read(1,'(A83)')ar__1 read(ar__1,2) + Cl_1,m_M,Dist,log_age_1,E_B_V_1,v_Fe_H_,qHR,qCD,Ns,Na,r_Cl if(ar__1(51:56) .EQ. '') v_Fe_H_ = rNULL__ c ..............Just test output........... write(6,2) + Cl_1,m_M,Dist,log_age_1,E_B_V_1,v_Fe_H_,qHR,qCD,Ns,Na,r_Cl c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 3 format(I3,2X,A82) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,321 read(1,'(A87)')ar__2 read(ar__2,3)RefC,Text c ..............Just test output........... write(6,3)RefC,Text c .......End.of.Just test output........... end do close(1) C============================================================================= stop end