Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/406/995 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 2026-Oct-14
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/406/995 8500-8750{AA} high resolution spectroscopy. IV. (Marrese+, 2003)
*================================================================================
*High resolution spectroscopy over {lambda}{lambda} 8500-8750{AA} for GAIA.
*IV. Extending the cool MK stars sample.
* Marrese P.M., Boschi F., Munari U.
* <Astron. Astrophys. 406, 995 (2003)>
* =2003A&A...406..995M
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Target stars
integer*4 nr__
parameter (nr__=92) ! Number of records
character*135 ar__ ! Full-size record
character*10 Name (nr__) ! Star name
real*4 VTmag (nr__) ! (mag) Tycho V magnitude
real*4 v_B_V_T (nr__) ! (mag) Tycho B-V colour index
character*12 SpType (nr__) ! MK Spectral type
character*1 n__Fe_H_ (nr__) ! [P] P: Per OB1 metallicity
real*4 v_Fe_H_ (nr__) ! ([Sun]) ? Metallicity
real*4 v_Fe_H_2 (nr__) ! ([Sun]) ? Second value of metallicity
real*4 e__Fe_H_ (nr__) ! ([Sun]) ? rms uncertainty on [Fe/H]
character*9 VName (nr__) ! Variable name
character*1 Phi (nr__) ! [SCML] Variability index (1)
character*1 Eta (nr__) ! [HML] Chromospheric activity index (2)
character*2 l_vsini (nr__) ! [<= ~] Limit flag on vsini
real*4 vsini (nr__) ! (km/s) ? Rotational velocity
real*4 e_vsini (nr__) ! (km/s) ? rms uncertainty on vsini
character*2 r_SpType (nr__) ! Spectral type reference, in refs.dat file
character*2 r__Fe_H_ (nr__) ! Metallicity reference, in refs.dat file
character*2 r_Phi (nr__) ! Variability index reference, in refs.dat file
character*2 r_Eta (nr__) ! Chromospheric activity index reference,
* in refs.dat file
character*2 r_vrsini (nr__) ! Rotational velocity reference,
* in refs.dat file
real*8 HJD (nr__) ! (d) Heliocentric Julian Date of observation
real*4 HRV (nr__) ! (km/s) Heliocentric velocity
real*4 e_HRV (nr__) ! (km/s) rms uncertainty on HRV
integer*4 S_N (nr__) ! Signal-to-noise ratio
character*12 spFile (nr__) ! Name of file, in "spectra" subdirectory
*Note (1): The variability index takes the following values:
* C = constant (Dm<=0.01mag
* S = small amplitude (0.01mag<Dm<=0.2mag)
* M = medium amplitude (0.2mag<Dm<=0.4mag)
* L = large amplitude (Dm>0.4mag)
*Note (2): The chromospheric activity index is based on the CaII K
* core emission line intensity measured on the Wilson scale,
* (1976ApJ...205..823W) or on the S photometric index defined by
* Baliunas (1995ApJ...438..269B). The indices are:
* L = no activity (0.0<=S<0.2)
* M = medium activity (0.2<=S<0.4)
* H = high activity (S>=0.4)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'refs.dat' ! References (table2 of paper)
integer*4 nr__1
parameter (nr__1=27) ! Number of records
character*120 ar__1 ! Full-size record
character*2 Ref (nr__1) ! Reference code
character*19 BibCode (nr__1) ! BibCode
character*24 aut (nr__1) ! Author's name
character*70 Com (nr__1) ! Comments
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'spectra/*' ! Individual spectra
integer*4 nr__2
parameter (nr__2=92) ! Number of records
character*28 ar__2 ! Full-size record
real*8 lambda (nr__2) ! (0.1nm) Wavelength in Angstroems
real*8 Flux (nr__2) ! Normalized intensity
C=============================================================================
C Loading file 'table1.dat' ! Target stars
C Format for file interpretation
1 format(
+ A10,2X,F6.3,1X,F5.2,1X,A12,A1,F6.3,1X,F5.2,1X,F5.3,2X,A9,1X,
+ A1,1X,A1,A2,F4.1,1X,F4.2,1X,A2,1X,A2,1X,A2,1X,A2,1X,A2,1X,
+ F9.1,1X,F6.1,1X,F3.1,1X,I3,1X,A12)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,92
read(1,'(A135)')ar__
read(ar__,1)
+ Name(i__),VTmag(i__),v_B_V_T(i__),SpType(i__),n__Fe_H_(i__),
+ v_Fe_H_(i__),v_Fe_H_2(i__),e__Fe_H_(i__),VName(i__),Phi(i__),
+ Eta(i__),l_vsini(i__),vsini(i__),e_vsini(i__),r_SpType(i__),
+ r__Fe_H_(i__),r_Phi(i__),r_Eta(i__),r_vrsini(i__),HJD(i__),
+ HRV(i__),e_HRV(i__),S_N(i__),spFile(i__)
if(ar__(39:44) .EQ. '') v_Fe_H_(i__) = rNULL__
if(ar__(46:50) .EQ. '') v_Fe_H_2(i__) = rNULL__
if(ar__(52:56) .EQ. '') e__Fe_H_(i__) = rNULL__
if(ar__(74:77) .EQ. '') vsini(i__) = rNULL__
if(ar__(79:82) .EQ. '') e_vsini(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ Name(i__),VTmag(i__),v_B_V_T(i__),SpType(i__),n__Fe_H_(i__),
+ v_Fe_H_(i__),v_Fe_H_2(i__),e__Fe_H_(i__),VName(i__),Phi(i__),
+ Eta(i__),l_vsini(i__),vsini(i__),e_vsini(i__),r_SpType(i__),
+ r__Fe_H_(i__),r_Phi(i__),r_Eta(i__),r_vrsini(i__),HJD(i__),
+ HRV(i__),e_HRV(i__),S_N(i__),spFile(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'refs.dat' ! References (table2 of paper)
C Format for file interpretation
2 format(A2,1X,A19,1X,A24,3X,A70)
C Effective file loading
open(unit=1,status='old',file=
+'refs.dat')
write(6,*) '....Loading file: refs.dat'
do i__=1,27
read(1,'(A120)')ar__1
read(ar__1,2)Ref(i__),BibCode(i__),aut(i__),Com(i__)
c ..............Just test output...........
write(6,2)Ref(i__),BibCode(i__),aut(i__),Com(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'spectra/*' ! Individual spectra
C Format for file interpretation
3 format(F16.11,2X,F10.8)
C Effective file loading
open(unit=1,status='old',file=
+'spectra/*')
write(6,*) '....Loading file: spectra/*'
do i__=1,92
read(1,'(A28)')ar__2
read(ar__2,3)lambda(i__),Flux(i__)
c ..............Just test output...........
write(6,3)lambda(i__),Flux(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end