Conversion of standardized ReadMe file for
file /./ftp/cats/III/221A 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-18 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. III/221A Catalogue of [Fe/H] of F, G, K stars (Cayrel de Strobel+, 2001) *================================================================================ *A Catalogue of [Fe/H] determinations of F, G, K stars : 2001 Edition * Cayrel de Strobel G., Soubiran C., Ralite N. * <Astron. Astrophys. 373, 159 (2001)> * =2001A&A...373..159C C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Spectroscopic [Fe/H] for 2447 field stars integer*4 nr__ parameter (nr__=4918) ! Number of records character*151 ar__ ! Full-size record C Position composed of: RAh RAm RAs DE- DEd DEm DEs character*20 ID (nr__) ! Designation integer*4 HIP (nr__) ! ? Hipparcos number character*12 Name (nr__) ! Alternate identifier integer*4 RAh (nr__) ! (h) ? Right ascension ICRS 2000.0 integer*4 RAm (nr__) ! (min) ? Right ascension ICRS 2000.0 real*8 RAs (nr__) ! (s) ? Right ascension ICRS 2000.0 character*1 DE_ (nr__) ! Declination sign ICRS 2000.0 integer*4 DEd (nr__) ! (deg) ? Declination ICRS 2000.0 integer*4 DEm (nr__) ! (arcmin) ? Declination ICRS 2000.0 real*4 DEs (nr__) ! (arcsec) ? Declination ICRS 2000.0 real*4 Vmag (nr__) ! (mag) ? Johnson V visual magnitude (G2) character*1 f_Vmag (nr__) ! [B] B when B magnitude in Vmag character*15 SpType (nr__) ! Spectral type integer*4 Teff (nr__) ! (K) ? Effective temperature integer*4 e_Teff (nr__) ! (K) ? Standard error on effective temperature real*4 logg (nr__) ! ([cm/s2]) ? Logarithm of gravity real*4 e_logg (nr__) ! ([cm/s2]) ? Standard error on the logarithm of gravity real*4 v_Fe_H_ (nr__) ! ([Sun]) Iron abundance relative to the Sun character*1 f__Fe_H_ (nr__) ! [M,N] Note on [Fe/H] (G3) real*4 e__Fe_H_ (nr__) ! ([Sun]) ? Standard error on iron abundance character*6 Author (nr__) ! Author of the [Fe/H] determination in * abbreviated form character*19 bibcode (nr__) ! Bibcode of publication c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2a.dat' ! Name of the 79 stellar systems integer*4 nr__1 parameter (nr__1=79) ! Number of records character*75 ar__1 ! Full-size record C Position composed of: RAh RAm RAs DE- DEd DEm DEs character*24 Group (nr__1) ! Stellar system name integer*4 RAh_1 (nr__1) ! (h) Right ascension ICRS 2000.0 integer*4 RAm_1 (nr__1) ! (min) Right ascension ICRS 2000.0 real*4 RAs_1 (nr__1) ! (s) Right ascension ICRS 2000.0 character*1 DE__1 (nr__1) ! Declination sign ICRS 2000.0 integer*4 DEd_1 (nr__1) ! (deg) Declination ICRS 2000.0 integer*4 DEm_1 (nr__1) ! (arcmin) Declination ICRS 2000.0 real*4 DEs_1 (nr__1) ! (arcsec) ? Declination ICRS 2000.0 character*6 Com (nr__1) ! Comment character*15 Names (nr__1) ! Other names c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Spectroscopic [Fe/H] for 899 stars in 79 stellar systems integer*4 nr__2 parameter (nr__2=1436) ! Number of records character*164 ar__2 ! Full-size record C Position composed of: RAh RAm RAs DE- DEd DEm DEs character*24 Group_1 (nr__2) ! Stellar system name character*28 ID_1 (nr__2) ! Designation (G1) integer*4 RAh_2 (nr__2) ! (h) ? Right ascension ICRS 2000.0 integer*4 RAm_2 (nr__2) ! (min) ? Right ascension ICRS 2000.0 real*8 RAs_2 (nr__2) ! (s) ? Right ascension ICRS 2000.0 character*1 DE__2 (nr__2) ! Declination sign ICRS 2000.0 integer*4 DEd_2 (nr__2) ! (deg) ? Declination ICRS 2000.0 integer*4 DEm_2 (nr__2) ! (arcmin) ? Declination ICRS 2000.0 real*4 DEs_2 (nr__2) ! (arcsec) ? Declination ICRS 2000.0 real*4 Vmag_1 (nr__2) ! (mag) ? Johnson V visual magnitude (G2) character*1 f_Vmag_1 (nr__2) ! [B] B when B magnitude in Vmag character*15 SpType_1 (nr__2) ! Spectral type integer*4 Teff_1 (nr__2) ! (K) ? Effective temperature integer*4 e_Teff_1 (nr__2) ! (K) ? Standard error on effective temperature real*4 logg_1 (nr__2) ! ([cm/s2]) ? Logarithm of gravity real*4 e_logg_1 (nr__2) ! ([cm/s2]) ? Standard error on the logarithm of gravity real*4 v_Fe_H__1 (nr__2) ! ([Sun]) ? Iron abundance relative to the Sun character*1 f__Fe_H__1 (nr__2) ! [M,N] Note on [Fe/H] (G3) real*4 e__Fe_H__1 (nr__2) ! ([Sun]) ? Standard error on iron abundance character*6 Author_1 (nr__2) ! Author of the [Fe/H] determination in * abbreviated form character*19 bibcode_1 (nr__2) ! Bibcode of publication C============================================================================= C Loading file 'table1.dat' ! Spectroscopic [Fe/H] for 2447 field stars C Format for file interpretation 1 format( + A20,1X,I6,1X,A12,1X,I2,1X,I2,1X,F7.4,1X,A1,I2,1X,I2,1X,F6.3, + 1X,F6.3,A1,1X,A15,1X,I4,1X,I3,1X,F5.2,1X,F4.2,1X,F5.2,A1,F4.2, + 1X,A6,1X,A19) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,4918 read(1,'(A151)')ar__ read(ar__,1) + ID(i__),HIP(i__),Name(i__),RAh(i__),RAm(i__),RAs(i__), + DE_(i__),DEd(i__),DEm(i__),DEs(i__),Vmag(i__),f_Vmag(i__), + SpType(i__),Teff(i__),e_Teff(i__),logg(i__),e_logg(i__), + v_Fe_H_(i__),f__Fe_H_(i__),e__Fe_H_(i__),Author(i__), + bibcode(i__) if(ar__(22:27) .EQ. '') HIP(i__) = iNULL__ if(ar__(42:43) .EQ. '') RAh(i__) = iNULL__ if(ar__(45:46) .EQ. '') RAm(i__) = iNULL__ if(ar__(48:54) .EQ. '') RAs(i__) = rNULL__ if(ar__(57:58) .EQ. '') DEd(i__) = iNULL__ if(ar__(60:61) .EQ. '') DEm(i__) = iNULL__ if(ar__(63:68) .EQ. '') DEs(i__) = rNULL__ if(ar__(70:75) .EQ. '') Vmag(i__) = rNULL__ if(ar__(94:97) .EQ. '') Teff(i__) = iNULL__ if(ar__(99:101) .EQ. '') e_Teff(i__) = iNULL__ if(ar__(103:107) .EQ. '') logg(i__) = rNULL__ if(ar__(109:112) .EQ. '') e_logg(i__) = rNULL__ if(ar__(120:123) .EQ. '') e__Fe_H_(i__) = rNULL__ c ..............Just test output........... write(6,1) + ID(i__),HIP(i__),Name(i__),RAh(i__),RAm(i__),RAs(i__), + DE_(i__),DEd(i__),DEm(i__),DEs(i__),Vmag(i__),f_Vmag(i__), + SpType(i__),Teff(i__),e_Teff(i__),logg(i__),e_logg(i__), + v_Fe_H_(i__),f__Fe_H_(i__),e__Fe_H_(i__),Author(i__), + bibcode(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2a.dat' ! Name of the 79 stellar systems C Format for file interpretation 2 format( + A24,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,2X,A6,1X,A15) C Effective file loading open(unit=1,status='old',file= +'table2a.dat') write(6,*) '....Loading file: table2a.dat' do i__=1,79 read(1,'(A75)')ar__1 read(ar__1,2) + Group(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__), + DEd_1(i__),DEm_1(i__),DEs_1(i__),Com(i__),Names(i__) if(ar__1(45:48) .EQ. '') DEs_1(i__) = rNULL__ c ..............Just test output........... write(6,2) + Group(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__), + DEd_1(i__),DEm_1(i__),DEs_1(i__),Com(i__),Names(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Spectroscopic [Fe/H] for 899 stars in 79 stellar * systems C Format for file interpretation 3 format( + A24,1X,A28,1X,I2,1X,I2,1X,F7.4,1X,A1,I2,1X,I2,1X,F6.3,1X,F6.3, + A1,1X,A15,1X,I4,1X,I3,1X,F5.2,1X,F4.2,1X,F5.2,A1,F4.2,2X,A6, + 1X,A19) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,1436 read(1,'(A164)')ar__2 read(ar__2,3) + Group_1(i__),ID_1(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__), + DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),Vmag_1(i__), + f_Vmag_1(i__),SpType_1(i__),Teff_1(i__),e_Teff_1(i__), + logg_1(i__),e_logg_1(i__),v_Fe_H__1(i__),f__Fe_H__1(i__), + e__Fe_H__1(i__),Author_1(i__),bibcode_1(i__) if(ar__2(55:56) .EQ. '') RAh_2(i__) = iNULL__ if(ar__2(58:59) .EQ. '') RAm_2(i__) = iNULL__ if(ar__2(61:67) .EQ. '') RAs_2(i__) = rNULL__ if(ar__2(70:71) .EQ. '') DEd_2(i__) = iNULL__ if(ar__2(73:74) .EQ. '') DEm_2(i__) = iNULL__ if(ar__2(76:81) .EQ. '') DEs_2(i__) = rNULL__ if(ar__2(83:88) .EQ. '') Vmag_1(i__) = rNULL__ if(ar__2(107:110) .EQ. '') Teff_1(i__) = iNULL__ if(ar__2(112:114) .EQ. '') e_Teff_1(i__) = iNULL__ if(ar__2(116:120) .EQ. '') logg_1(i__) = rNULL__ if(ar__2(122:125) .EQ. '') e_logg_1(i__) = rNULL__ if(ar__2(127:131) .EQ. '') v_Fe_H__1(i__) = rNULL__ if(ar__2(133:136) .EQ. '') e__Fe_H__1(i__) = rNULL__ c ..............Just test output........... write(6,3) + Group_1(i__),ID_1(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__), + DE__2(i__),DEd_2(i__),DEm_2(i__),DEs_2(i__),Vmag_1(i__), + f_Vmag_1(i__),SpType_1(i__),Teff_1(i__),e_Teff_1(i__), + logg_1(i__),e_logg_1(i__),v_Fe_H__1(i__),f__Fe_H__1(i__), + e__Fe_H__1(i__),Author_1(i__),bibcode_1(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end