Conversion of standardized ReadMe file for
file /./ftp/cats/V/132 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-Apr-19 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/132 SAI Open Clusters Catalog (Glushkova+, 2009) *================================================================================ *Automated search for star clusters in large multiband surveys. II. *Discovery and investigation of open clusters in the Galactic plane * Glushkova E.V., Koposov S.E., Zolotukhin I.Yu., Beletsky Y.V., Vlasov A.D., * Leonova S.I. * <Pis'ma Astron. Zh. 36, 83 (2010)) * =2010PAZh...36...83G * =2010AstL...36...75G C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'clusters.dat' ! SAI Open Clusters Catalog integer*4 nr__ parameter (nr__=194) ! Number of records character*102 ar__ ! Full-size record C J2000 position composed of: RAdeg DEdeg character*15 Name (nr__) ! ! Cluster name character*15 OtherName (nr__) ! Other name known for the cluster real*8 RAdeg (nr__) ! (deg) += Right ascension (J2000) real*8 DEdeg (nr__) ! (deg) Declination (J2000) real*4 Diam (nr__) ! (arcmin) Cluster diameter real*4 E_B_V (nr__) ! (mag) ? Color excess E(B-V) real*4 e_E_B_V (nr__) ! (mag) ? Color excess error real*4 Eratio (nr__) ! ? E(J-H)/E(J-K) ratio real*4 Dm (nr__) ! (mag) ? Distance modulus (m - M) real*4 e_Dm (nr__) ! (mag) ? Distance modulus error integer*4 Dist (nr__) ! (pc) ? Heliocentric distance integer*4 e_Dist (nr__) ! (pc) ? Distance error real*4 Age (nr__) ! ([yr]) ? Age, or age upper limit if AgeError is empty real*4 e_Age (nr__) ! ([yr]) ? Age error C============================================================================= C Loading file 'clusters.dat' ! SAI Open Clusters Catalog C Format for file interpretation 1 format( + A15,1X,A15,1X,F8.4,1X,F8.4,1X,F4.1,1X,F4.2,1X,F4.2,1X,F4.2,1X, + F5.2,1X,F4.2,1X,I5,1X,I4,1X,F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'clusters.dat') write(6,*) '....Loading file: clusters.dat' do i__=1,194 read(1,'(A102)')ar__ read(ar__,1) + Name(i__),OtherName(i__),RAdeg(i__),DEdeg(i__),Diam(i__), + E_B_V(i__),e_E_B_V(i__),Eratio(i__),Dm(i__),e_Dm(i__), + Dist(i__),e_Dist(i__),Age(i__),e_Age(i__) if(ar__(56:59) .EQ. '') E_B_V(i__) = rNULL__ if(ar__(61:64) .EQ. '') e_E_B_V(i__) = rNULL__ if(ar__(66:69) .EQ. '') Eratio(i__) = rNULL__ if(ar__(71:75) .EQ. '') Dm(i__) = rNULL__ if(ar__(77:80) .EQ. '') e_Dm(i__) = rNULL__ if(ar__(82:86) .EQ. '') Dist(i__) = iNULL__ if(ar__(88:91) .EQ. '') e_Dist(i__) = iNULL__ if(ar__(93:97) .EQ. '') Age(i__) = rNULL__ if(ar__(99:102) .EQ. '') e_Age(i__) = rNULL__ c ..............Just test output........... write(6,1) + Name(i__),OtherName(i__),RAdeg(i__),DEdeg(i__),Diam(i__), + E_B_V(i__),e_E_B_V(i__),Eratio(i__),Dm(i__),e_Dm(i__), + Dist(i__),e_Dist(i__),Age(i__),e_Age(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end