Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/526/A127 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-Mar-29 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/A+A/526/A127 Velocities of M67 main-sequence and giant stars (Pasquini+, 2011) *================================================================================ *Gravitational redshifts in main-sequence and giant stars. * Pasquini L., Melo C., Chavero C., Dravins D., Ludwig H.-G., Bonifacio P., * De La Reza R. * <Astron. Astrophys. 526, A127 (2011)> * =2011A&A...526A.127P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Observed targets in M67 integer*4 nr__ parameter (nr__=163) ! Number of records character*42 ar__ ! Full-size record character*9 Name ! Object name (1) real*4 B_V ! (mag) ?=- B-V colour index real*4 Vmag ! (mag) ?=- V magnitude real*4 RV ! (km/s) Radial velocity (accuracy ~ 20m/s) character*1 l_vsini ! Limit flag on vsini real*4 vsini ! (km/s) Projected rotational velocity character*7 Source ! Source of the data (2) *Note (1): For object identifications: * * S NNNN are from Sanders (1977A&AS...27...89S), * <Cl* NGC 2682 Sand NNNN> in Simbad * * MMJNNNN from Montgomery et al. (1993, Cat. J/AJ/106/181), * <Cl* NGC 2682 MMJ NNNN> in Simbad *Note (2): Data source are either Paper I (Melo et al., 2001A&A...375..851M) * or the observing runs described in Section 3. C============================================================================= C Loading file 'table1.dat' ! Observed targets in M67 C Format for file interpretation 1 format(A9,1X,F5.3,1X,F5.2,1X,F6.2,1X,A1,F4.1,1X,A7) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,163 read(1,'(A42)')ar__ read(ar__,1)Name,B_V,Vmag,RV,l_vsini,vsini,Source if (idig(ar__(11:15)).EQ.0) B_V = rNULL__ if (idig(ar__(17:21)).EQ.0) Vmag = rNULL__ c ..............Just test output........... write(6,1)Name,B_V,Vmag,RV,l_vsini,vsini,Source 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