Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/620/A180 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-Jun-10
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/620/A180 Stellar properties of M dwarfs (Rajpurohit+, 2018)
*================================================================================
*Exploring the stellar properties of M dwarfs with high-resolution spectroscopy
*from the optical to the near-infrared.
* Rajpurohit A.S., Allard F., Rajpurohit S., Sharma R., Teixeira G.D.C.,
* Mousis O., Kamlesh R.
* <Astron. Astrophys. 620, A180 (2018)>
* =2018A&A...620A.180R (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! M dwarfs parameters
integer*4 nr__
parameter (nr__=292) ! Number of records
character*92 ar__ ! Full-size record
character*21 Name ! Name
character*4 SpType ! Spectral type
real*4 Vmag ! (mag) ? V magnitude
real*4 Jmag ! (mag) ? 2MASS J magnitude
real*4 Hmag ! (mag) ? 2MASS H magnitude
real*4 Kmag ! (mag) ? 2MASS K magnitude
integer*4 Teff ! (K) Effective temperature, this study
real*4 logg ! ([cm/s2]) Surface gravity, this study
real*4 v_M_H_ ! ([-]) Metallicity [M/H], this study
real*4 chi2 ! chi^2^, this study
integer*4 TeffP ! (K) ? Effective temperature, Passegger et al.
* (2018, Cat. J/A+A/615/A6)
real*4 loggP ! ([cm/s2]) ? Surface gravity, Passegger et al.
* (2018, Cat. J/A+A/615/A6)
real*4 v_M_H_P ! ([-]) ? Metallicity [M/H], Passegger et al.
* (2018, Cat. J/A+A/615/A6)
C=============================================================================
C Loading file 'table2.dat' ! M dwarfs parameters
C Format for file interpretation
1 format(
+ A21,1X,A4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,I4,1X,F4.2,1X,
+ F5.2,1X,F4.2,1X,I4,1X,F4.2,1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,292
read(1,'(A92)')ar__
read(ar__,1)
+ Name,SpType,Vmag,Jmag,Hmag,Kmag,Teff,logg,v_M_H_,chi2,TeffP,
+ loggP,v_M_H_P
if(ar__(28:33) .EQ. '') Vmag = rNULL__
if(ar__(35:40) .EQ. '') Jmag = rNULL__
if(ar__(42:47) .EQ. '') Hmag = rNULL__
if(ar__(49:54) .EQ. '') Kmag = rNULL__
if(ar__(77:80) .EQ. '') TeffP = iNULL__
if(ar__(82:85) .EQ. '') loggP = rNULL__
if(ar__(87:92) .EQ. '') v_M_H_P = rNULL__
c ..............Just test output...........
write(6,1)
+ Name,SpType,Vmag,Jmag,Hmag,Kmag,Teff,logg,v_M_H_,chi2,TeffP,
+ loggP,v_M_H_P
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end