Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/614/A149 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 2024-Apr-19 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/614/A149 417 Galactic bulge red giant O & Zn abund. (da Silveira+, 2018) *================================================================================ *Oxygen and zinc abundances in 417 Galactic bulge red giant. * da Silveira C.R., Barbuy B., Friaca A.C.S., Hill V., Zoccali M., * Rafelski M., Gonzalez O.A., Minniti D., Renzini A., Ortolani S. * <Astron. Astrophys. 614, A149 (2018)> * =2018A&A...614A.149D (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tableb1.dat' ! OGLE and GIRAFFE names, stellar parameters, resulting [N/Fe], [O/Fe], [Zn/Fe], and alpha-element abundances integer*4 nr__ parameter (nr__=440) ! Number of records character*82 ar__ ! Full-size record character*9 OGLE (nr__) ! OGLE name (Udalski et al., * 2002AcA....52..217U, Cat. J/AcA/52/217) character*1 n_OGLE (nr__) ! [*] * for UVES data character*6 GIRAFFE (nr__) ! GIRAFFE name (Zoccali et al., * 2008A&A...486..177Z, Cat. J/A+A/486/177) character*1 n_GIRAFFE (nr__) ! [*] * for UVES data integer*4 Teff (nr__) ! (K) Effective Temperature real*4 logg (nr__) ! ([cm/s2]) Surface gravity real*4 v_Fe_H_ (nr__) ! ([-]) Metallicity real*4 vt (nr__) ! (km/s) Microturbulence velocity real*4 v_N_Fe_ (nr__) ! ([-]) ?=- [N/Fe] abundance character*1 l__O_Fe_ (nr__) ! Limit flag on [O/Fe] real*4 v_O_Fe_ (nr__) ! ([-]) ?=- [O/Fe] abundance character*1 u__O_Fe_ (nr__) ! [:] Uncertainty flag on [O/Fe] real*4 v_Zn_Fe_ (nr__) ! ([-]) ?=- [Zn/Fe] abundance real*4 v_Mg_Fe_ (nr__) ! ([-]) ?=- [Mg/Fe] abundance from Gonzalez et al. * (2011A&A...530A..54G, Cat. J/A+A/530/A54) real*4 v_Si_Fe_ (nr__) ! ([-]) ?=- [Sq/Fe] abundance from Gonzalez et al. * (2011A&A...530A..54G, Cat. J/A+A/530/A54) real*4 v_Ce_Fe_ (nr__) ! ([-]) ?=- [Ca/Fe] abundance from Gonzalez et al. * (2011A&A...530A..54G, Cat. J/A+A/530/A54) real*4 v_Ti_Fe_ (nr__) ! ([-]) ?=- [Ti/Fe] abundance from Gonzalez et al. * (2011A&A...530A..54G, Cat. J/A+A/530/A54) C============================================================================= C Loading file 'tableb1.dat' ! OGLE and GIRAFFE names, stellar parameters, * resulting [N/Fe], [O/Fe], [Zn/Fe], and * alpha-element abundances C Format for file interpretation 1 format( + A9,A1,1X,A6,A1,1X,I4,1X,F4.2,1X,F5.2,1X,F3.1,1X,F5.2,1X,A1, + F5.2,A1,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'tableb1.dat') write(6,*) '....Loading file: tableb1.dat' do i__=1,440 read(1,'(A82)')ar__ read(ar__,1) + OGLE(i__),n_OGLE(i__),GIRAFFE(i__),n_GIRAFFE(i__),Teff(i__), + logg(i__),v_Fe_H_(i__),vt(i__),v_N_Fe_(i__),l__O_Fe_(i__), + v_O_Fe_(i__),u__O_Fe_(i__),v_Zn_Fe_(i__),v_Mg_Fe_(i__), + v_Si_Fe_(i__),v_Ce_Fe_(i__),v_Ti_Fe_(i__) if (idig(ar__(40:44)).EQ.0) v_N_Fe_(i__) = rNULL__ if (idig(ar__(47:51)).EQ.0) v_O_Fe_(i__) = rNULL__ if (idig(ar__(54:58)).EQ.0) v_Zn_Fe_(i__) = rNULL__ if (idig(ar__(60:64)).EQ.0) v_Mg_Fe_(i__) = rNULL__ if (idig(ar__(66:70)).EQ.0) v_Si_Fe_(i__) = rNULL__ if (idig(ar__(72:76)).EQ.0) v_Ce_Fe_(i__) = rNULL__ if (idig(ar__(78:82)).EQ.0) v_Ti_Fe_(i__) = rNULL__ c ..............Just test output........... write(6,1) + OGLE(i__),n_OGLE(i__),GIRAFFE(i__),n_GIRAFFE(i__),Teff(i__), + logg(i__),v_Fe_H_(i__),vt(i__),v_N_Fe_(i__),l__O_Fe_(i__), + v_O_Fe_(i__),u__O_Fe_(i__),v_Zn_Fe_(i__),v_Mg_Fe_(i__), + v_Si_Fe_(i__),v_Ce_Fe_(i__),v_Ti_Fe_(i__) 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