Conversion of standardized ReadMe file for
file /./ftp/cats/J/BaltA/13/1 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-20 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/BaltA/13/1 M67 CCD Vilnius photometry (Laugalys+, 2004) *================================================================================ *CCD photometry of the M 67 cluster in the Vilnius system. *II. New photometry of high accuracy. * Laugalys V., Kazlauskas A., Boyle R.P., Vrba F.J., Philip A.G.D., * Straizys V. * <Baltic Astronomy, 13, 1-33 (2004)> * =2004BaltA..13....1L C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Photoelectric standards in M 67 integer*4 nr__ parameter (nr__=54) ! Number of records character*105 ar__ ! Full-size record integer*4 LKB (nr__) ! ?=- Sequential number, * Cl* NGC 2682 LKB NNN in Simbad integer*4 Fag (nr__) ! ?=- Fagerholm (1906ArMAF...2s...1F) number integer*4 MMJ (nr__) ! ?=- Montgomery et al. (1993AJ....106..181M) * number, CL* NGC 2682 MMJ NNNN in Simbad integer*4 Sand (nr__) ! Sanders (1977A&AS...27...89S) number, * Cl* NGC 2682 Sand NNNN in Simbad real*4 Vmag (nr__) ! (mag) Vilnius V magnitude real*4 U_V (nr__) ! (mag) Vilnius U-V colour index real*4 P_V (nr__) ! (mag) Vilnius P-V colour index real*4 X_V (nr__) ! (mag) Vilnius X-V colour index character*1 n_X_V (nr__) ! [*] Note on X-V (1) real*4 Y_V (nr__) ! (mag) Vilnius Y-V colour index real*4 Z_V (nr__) ! (mag) Vilnius Z-V colour index real*4 V_S (nr__) ! (mag) Vilnius V-S colour index integer*4 Nobs (nr__) ! Number of independent measurements real*4 e_Vmag (nr__) ! (mag) rms uncertainty on Vmag (2) real*4 e_U_V (nr__) ! (mag) rms uncertainty on U-V (2) real*4 e_P_V (nr__) ! (mag) rms uncertainty on P-V (2) real*4 e_X_V (nr__) ! (mag) rms uncertainty on X-V (2) real*4 e_Y_V (nr__) ! (mag) rms uncertainty on Y-V (2) real*4 e_Z_V (nr__) ! (mag) rms uncertainty on Z-V (2) real*4 e_V_S (nr__) ! (mag) rms uncertainty on V-Z (2) *Note (1): *: data been obtained only for the 2000 run; * these values were not used in CCD reductions. *Note (2): Transformation accuracy as: * Vmag = 0.013 * U-V = 0.013 * P-V = 0.010 * X-V = 0.010 * X-V = 0.004 * Z-V = 0.005 * V-Z = 0.006 c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! The results of CCD photometry of M 67 integer*4 nr__1 parameter (nr__1=412) ! Number of records character*84 ar__1 ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__1) ! (deg) Right Ascension J2000 real*8 DEdeg (nr__1) ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) integer*4 LKB_1 (nr__1) ! Sequential number as given in Figures 4 and 5, * Cl* NGC 2682 LKB NNN integer*4 RAh (nr__1) ! (h) Right ascension (J2000) integer*4 RAm (nr__1) ! (min) Right ascension (J2000) real*4 RAs (nr__1) ! (s) Right ascension (J2000) character*1 DE_ (nr__1) ! Declination sign (J2000) integer*4 DEd (nr__1) ! (deg) Declination (J2000) integer*4 DEm (nr__1) ! (arcmin) Declination (J2000) integer*4 DEs (nr__1) ! (arcsec) Declination (J2000) real*4 Vmag_1 (nr__1) ! (mag) Vilnius V magnitude real*4 U_V_1 (nr__1) ! (mag) ?=- Vilnius U-V colour index real*4 P_V_1 (nr__1) ! (mag) Vilnius P-V colour index real*4 X_V_1 (nr__1) ! (mag) ?=- Vilnius X-V colour index real*4 Y_V_1 (nr__1) ! (mag) Vilnius Y-V colour index real*4 Z_V_1 (nr__1) ! (mag) Vilnius Z-V colour index real*4 V_S_1 (nr__1) ! (mag) Vilnius V-S colour index real*4 V_Ic (nr__1) ! (mag) Vilnius-Cousins V-Ic colour index character*10 SpType (nr__1) ! Photometric spectral type C============================================================================= C Loading file 'table2.dat' ! Photoelectric standards in M 67 C Format for file interpretation 1 format( + I3,1X,I3,1X,I4,1X,I4,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,A1,1X, + F5.3,1X,F5.3,1X,F5.3,1X,I1,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X, + F5.3,1X,F5.3,1X,F5.3) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,54 read(1,'(A105)')ar__ read(ar__,1) + LKB(i__),Fag(i__),MMJ(i__),Sand(i__),Vmag(i__),U_V(i__), + P_V(i__),X_V(i__),n_X_V(i__),Y_V(i__),Z_V(i__),V_S(i__), + Nobs(i__),e_Vmag(i__),e_U_V(i__),e_P_V(i__),e_X_V(i__), + e_Y_V(i__),e_Z_V(i__),e_V_S(i__) if (LKB(i__) .EQ. 45) LKB(i__) = iNULL__ if (Fag(i__) .EQ. 45) Fag(i__) = iNULL__ if (MMJ(i__) .EQ. 45) MMJ(i__) = iNULL__ c ..............Just test output........... write(6,1) + LKB(i__),Fag(i__),MMJ(i__),Sand(i__),Vmag(i__),U_V(i__), + P_V(i__),X_V(i__),n_X_V(i__),Y_V(i__),Z_V(i__),V_S(i__), + Nobs(i__),e_Vmag(i__),e_U_V(i__),e_P_V(i__),e_X_V(i__), + e_Y_V(i__),e_Z_V(i__),e_V_S(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! The results of CCD photometry of M 67 C Format for file interpretation 2 format( + I3,1X,I1,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F6.3,1X,F5.3, + 1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,A10) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,412 read(1,'(A84)')ar__1 read(ar__1,2) + LKB_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),Vmag_1(i__),U_V_1(i__),P_V_1(i__), + X_V_1(i__),Y_V_1(i__),Z_V_1(i__),V_S_1(i__),V_Ic(i__), + SpType(i__) if (idig(ar__1(32:36)).EQ.0) U_V_1(i__) = rNULL__ if (idig(ar__1(44:48)).EQ.0) X_V_1(i__) = rNULL__ 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,2) + LKB_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__), + DEm(i__),DEs(i__),Vmag_1(i__),U_V_1(i__),P_V_1(i__), + X_V_1(i__),Y_V_1(i__),Z_V_1(i__),V_S_1(i__),V_Ic(i__), + SpType(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end