Conversion of standardized ReadMe file for
file /./ftp/cats/J/PASP/108/772 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-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/PASP/108/772 uvby-{beta} photometry of A and F southern stars (Perry+, 1996) *================================================================================ *Interstellar reddening in the southern hemisphere. *II. Analysis of the uvby-{beta} observations. * Perry C.L., Christodoulou D.M. * <Publ. Astron. Soc. Pac. 108, 772 (1996)> * =1996PASP..108..772P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Catalog of dereddened uvby colors and computational data for southern A and F stars integer*4 nr__ parameter (nr__=3762) ! Number of records character*66 ar__ ! Full-size record integer*4 HD ! HD (Cat. <III/135>) number real*4 E_b_y ! (mag) (b-y) colour excess real*4 V0mag ! (mag) Dereddened V magnitude real*4 v_b_y_0 ! (mag) Dereddened Stroemgren (b-y) colour index real*4 m0 ! (mag) Dereddened Stroemgren m_0_ magnitude real*4 c0 ! (mag) Dereddened Stroemgren c_0_ colour index real*4 v_Fe_H_ ! ([Sun]) ? Metallicity real*4 VMAG ! (mag) Absolute V magnitude integer*4 r ! (pc) Distance from the Sun integer*4 x ! (pc) x coordinate (toward galactic rotation) integer*4 y ! (pc) y coordinate (toward galactic anticenter) integer*4 z ! (pc) z coordinate (toward North galactic pole) C============================================================================= C Loading file 'table1.dat' ! Catalog of dereddened uvby colors and computational * data for southern A and F stars C Format for file interpretation 1 format( + I6,1X,F6.3,F5.2,F6.3,1X,F5.3,F6.3,1X,F5.2,F5.2,1X,I3,1X,I4,1X, + I4,I5) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,3762 read(1,'(A66)')ar__ read(ar__,1)HD,E_b_y,V0mag,v_b_y_0,m0,c0,v_Fe_H_,VMAG,r,x,y,z if(ar__(38:42) .EQ. '') v_Fe_H_ = rNULL__ c ..............Just test output........... write(6,1)HD,E_b_y,V0mag,v_b_y_0,m0,c0,v_Fe_H_,VMAG,r,x,y,z c .......End.of.Just test output........... end do close(1) C============================================================================= stop end