Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/493/1099 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 2026-Oct-07
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/493/1099 CaII HK emission in rapidly rotating stars (Schroeder+, 2009)
*================================================================================
*CaII HK emission in rapidly rotating stars. Evidence of an onset of the
*solar-type dynamo.
* Schroeder C., Reiners A., Schmitt J.H.M.M.
* <Astron. Astrophys. 493, 1099 (2009)>
* =2009A&A...493.1099S
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Basic data and the results of the activity
measurements of all 480 stars
integer*4 nr__
parameter (nr__=480) ! Number of records
character*58 ar__ ! Full-size record
integer*4 HD ! HD number (Cat. III/135)
real*4 B_V ! (mag) B-V color index
integer*4 T ! ?=- Id of the template star
real*4 vsini ! (km/s) Rotational velocity
integer*4 Teff ! (K) ?=- Effective temperature
real*4 logg ! ([cm/s2]) ?=- Surface gravity
character*2 Class ! Evolutionary state (main sequence or giant)
real*4 S_cl ! Classical Mount-Wilson S-index
real*4 logR_hk_cl ! ?=- Classical Mount-Wilson log R(hk)
real*4 S_t ! ?=- Template S-index
real*4 logR_hk_t ! ?=- Template log R(hk)
C=============================================================================
C Loading file 'table2.dat' ! Basic data and the results of the activity
* measurements of all 480 stars
C Format for file interpretation
1 format(
+ I6,1X,F4.2,1X,I1,1X,F5.1,1X,I4,1X,F4.2,1X,A2,1X,F5.3,1X,F6.3,
+ 1X,F5.3,1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,480
read(1,'(A58)')ar__
read(ar__,1)
+ HD,B_V,T,vsini,Teff,logg,Class,S_cl,logR_hk_cl,S_t,logR_hk_t
if (T .EQ. 45) T = iNULL__
if (Teff .EQ. 45) Teff = iNULL__
if (idig(ar__(26:29)).EQ.0) logg = rNULL__
if (idig(ar__(40:45)).EQ.0) logR_hk_cl = rNULL__
if (idig(ar__(47:51)).EQ.0) S_t = rNULL__
if (idig(ar__(53:58)).EQ.0) logR_hk_t = rNULL__
c ..............Just test output...........
write(6,1)
+ HD,B_V,T,vsini,Teff,logg,Class,S_cl,logR_hk_cl,S_t,logR_hk_t
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