Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/116/1922 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-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. J/AJ/116/1922 CaII H and K filter photometry III. (Anthony-Twarog+, 1998) *================================================================================ *Ca II H and K photometry on the uvby system. *III. The metallicity calibration for the red giants. * Anthony-Twarog B.J., Twarog B.A. * <Astron. J. 116, 1922 (1998)> * =1998AJ....116.1922A (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! New CTIO 1 meter photometry integer*4 nr__ parameter (nr__=302) ! Number of records character*93 ar__ ! Full-size record character*12 Star ! HD or BD name real*4 Vmag ! (mag) V magnitude real*4 b_y ! (mag) b-y colour index real*4 m1 ! (mag) ? m_1_ colour index real*4 c1 ! (mag) ? c_1_ colour index real*4 hk ! (mag) hk [(Ca-b) - (b-y)] colour index real*4 e_Vmag ! (mag) rms uncertainty on Vmag real*4 e_b_y ! (mag) rms uncertainty on b-y real*4 e_m1 ! (mag) ? rms uncertainty on m1 real*4 e_c1 ! (mag) ? rms uncertainty on c1 real*4 e_hk ! (mag) rms uncertainty on hk integer*4 o_Vmag ! Number of nights on which V, b-y and hk * were observed integer*4 o_m1 ! Number of nights on which m1 and c1 were * observed character*12 Names ! Other names C============================================================================= C Loading file 'table1.dat' ! New CTIO 1 meter photometry C Format for file interpretation 1 format( + A12,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3, + 1X,F5.3,1X,F5.3,1X,F5.3,1X,I2,1X,I2,1X,A12) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,302 read(1,'(A93)')ar__ read(ar__,1) + Star,Vmag,b_y,m1,c1,hk,e_Vmag,e_b_y,e_m1,e_c1,e_hk,o_Vmag, + o_m1,Names if(ar__(27:32) .EQ. '') m1 = rNULL__ if(ar__(34:38) .EQ. '') c1 = rNULL__ if(ar__(58:62) .EQ. '') e_m1 = rNULL__ if(ar__(64:68) .EQ. '') e_c1 = rNULL__ c ..............Just test output........... write(6,1) + Star,Vmag,b_y,m1,c1,hk,e_Vmag,e_b_y,e_m1,e_c1,e_hk,o_Vmag, + o_m1,Names c .......End.of.Just test output........... end do close(1) C============================================================================= stop end