Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/831/20 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-28 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/ApJ/831/20 C/O and Mg/Si for solar neighborhood's stars (Brewer+, 2016) *================================================================================ *C/O and Mg/Si ratios of stars in the solar neighborhood. * Brewer J.M., Fischer D.A. * <Astrophys. J., 831, 20-20 (2016)> * =2016ApJ...831...20B (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Stellar C/O and Mg/Si ratios (corrected version from the author) integer*4 nr__ parameter (nr__=847) ! Number of records character*64 ar__ ! Full-size record integer*4 SPOCS ! [2/3247] SPOCS ID character*12 Name ! Star name (1) real*4 Vmag ! (mag) [0/13.7]? V band magnitude from SIMBAD (1) real*4 v_C_H_ ! ([-]) [-1.2/0.7] Derived [C/H] abundance (1) real*4 v_O_H_ ! ([-]) [-0.4/0.7] Derived [O/H] abundance (1) real*4 v_Mg_H_ ! ([-]) [-0.8/0.6] Derived [Mg/H] abundance (1) real*4 v_Si_H_ ! ([-]) [-0.7/0.6] Derived [Si/H] abundance (1) real*4 C_O ! [0.04/0.7] Abundance number ratio, N_C_/N_O_ (2) real*4 Mg_Si ! [0.4/1.4] Abundance number ratio, N_Mg_/N_Si_ (2) integer*4 Np ! [1/5]? Number of known planets *Note (1): As listed or derived in Brewer+ (2016, J/ApJS/225/32). *Note (2): Based on the uncertainties provided in Brewer+ (2016, J/ApJS/225/32), * the uncertainties in the C/O values are +/-10% and the uncertainties * in the Mg/Si values are +/-3.3%. C============================================================================= C Loading file 'table1.dat' ! Stellar C/O and Mg/Si ratios (corrected version * from the author) C Format for file interpretation 1 format( + I4,1X,A12,1X,F6.2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F4.2,1X, + F4.2,1X,I1) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,847 read(1,'(A64)')ar__ read(ar__,1) + SPOCS,Name,Vmag,v_C_H_,v_O_H_,v_Mg_H_,v_Si_H_,C_O,Mg_Si,Np if(ar__(19:24) .EQ. '') Vmag = rNULL__ if(ar__(64:64) .EQ. '') Np = iNULL__ c ..............Just test output........... write(6,1) + SPOCS,Name,Vmag,v_C_H_,v_O_H_,v_Mg_H_,v_Si_H_,C_O,Mg_Si,Np c .......End.of.Just test output........... end do close(1) C============================================================================= stop end