Conversion of standardized ReadMe file for
file /./ftp/cats/III/204/ 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. III/204 Stellar radial velocities bibliographic catalog (Malaroda+, 2000) *================================================================================ *Bibliographic catalogue of stellar radial velocities (1991-1994) * Malaroda S., Levato,H., Morrell, N., Garcia B., Grosso, M., Bolzicco, G.J. * <Astron. Astrophys. Suppl. Ser. 144, 1 (2000)> * =2000A&AS..144....1M C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'catalog.dat' ! Stellar radial velocities bibliographic catalogue integer*4 nr__ parameter (nr__=13352) ! Number of records character*148 ar__ ! Full-size record C J2000.0 position composed of: RAh RAm DE- DEd DEm real*8 RAdeg (nr__) ! (deg) Right Ascension J2000.0 real*8 DEdeg (nr__) ! (deg) Declination J2000.0 C ---------------------------------- ! (position vector(s) in degrees) character*29 Ident (nr__) ! Identification (1) integer*4 RAh (nr__) ! (h) ? Right ascension J2000.0 (2) real*4 RAm (nr__) ! (min) ? Right ascension J2000.0 character*1 DE_ (nr__) ! Declination sign J2000.0 integer*4 DEd (nr__) ! (deg) ? Declination J2000.0 real*4 DEm (nr__) ! (arcmin) ? Declination J2000.0 real*4 Vmag (nr__) ! (mag) ? Visual magnitude (From Simbad) character*15 SpType (nr__) ! Spectral type and luminosity class (3) real*8 RV (nr__) ! (km/s) ? Radial velocity (4) character*1 u_RV (nr__) ! Uncertainty flag on RV integer*4 o_RV (nr__) ! ? Number of individual observations for a * particular object character*7 Type (nr__) ! Nature of the star (5) character*6 R_RP_D (nr__) ! Dispersion, resolving power or resolution (6) character*19 r_RV (nr__) ! RV bibliographic reference (bibcode) character*28 Note (nr__) ! Complete reference when no bibcode available *Note (1): We have preferred for identification the HD, CD or CPD numbers, * in that order. Stars in clusters are indicated with the cluster's name * and the number of the stars according to the primary identification * paper for that particular cluster, found either at SIMBAD or * Mermilliod's database (which was accessed through the web of the * Geneva Observatory). *Note (2): Right ascension is given to the tenth of a minute and has been * retrieved from SIMBAD. Declination is given to the minute and has been * retrieved from SIMBAD. *Note (3): Spectra have been retrieved from the SIMBAD database. * In some cases, when the number of symbols is large, the spectral type * has been truncated. *Note (4): For each object we have included the average radial velocity * provided by the author. If the number of radial velocity measurements * is more than 1, and an average has not been calculated by the author, * we have not included any radial velocity at all. If the star is a * spectroscopic binary, for which an orbit has been computed, then the * systemic radial velocity is quoted in this column. *Note (5): We have included in this column an acronym to indicate * the nature of the star, when mentioned by the author. * Acronyms are as follows: * CEPH: Cepheids * ORB: An orbit has been computed. The systemic radial velocity is listed * SB1: Single lined binary * SB2: Double lined binary * EM: Emission lines. The radial velocity is derived from emission lines * SB: Spectroscopic binary * CV: Cataclysmic variable * VAR: Star with variable radial velocity, according to the author * LMC: Star belonging to the Large Magellanic Cloud * STND: Radial velocity standard * CONST: Star with constant radial velocity, according to the author * SYMB: Symbiotic star * BMP: Blue metal poor star * VB: Visual binary *Note (6): We have included in this column one of the above parameters. * It is not possible to confuse the resolving power with any of the * other two parameters because, in general, resolving power is a * relatively large number compared with dispersion or resolution. * As in the case of the dispersion or resolution, an ambiguity may * arise, we have added an R to the number when it refers to the * resolution. * COR: radial velocity was derived through cross correlation techniques * (like Coravel, for example) * REL: relative velocity * SEV: more than one resolving power or resolution have been used * OP: objective prism observations * IUE: radial velocities were derived from observations obtained with * the International Ultraviolet Explorer (See cat. <VI/99>) C============================================================================= C Loading file 'catalog.dat' ! Stellar radial velocities bibliographic catalogue C Format for file interpretation 1 format( + A29,1X,I2,1X,F4.1,1X,A1,I2,1X,F4.1,1X,F6.3,A15,1X,F8.3,A1,1X, + I3,2X,A7,1X,A6,2X,A19,1X,A28) C Effective file loading open(unit=1,status='old',file= +'catalog.dat') write(6,*) '....Loading file: catalog.dat' do i__=1,13352 read(1,'(A148)')ar__ read(ar__,1) + Ident(i__),RAh(i__),RAm(i__),DE_(i__),DEd(i__),DEm(i__), + Vmag(i__),SpType(i__),RV(i__),u_RV(i__),o_RV(i__),Type(i__), + R_RP_D(i__),r_RV(i__),Note(i__) if(ar__(31:32) .EQ. '') RAh(i__) = iNULL__ if(ar__(34:37) .EQ. '') RAm(i__) = rNULL__ if(ar__(40:41) .EQ. '') DEd(i__) = iNULL__ if(ar__(43:46) .EQ. '') DEm(i__) = rNULL__ if(ar__(48:53) .EQ. '') Vmag(i__) = rNULL__ if(ar__(70:77) .EQ. '') RV(i__) = rNULL__ if(ar__(80:82) .EQ. '') o_RV(i__) = iNULL__ RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + Ident(i__),RAh(i__),RAm(i__),DE_(i__),DEd(i__),DEm(i__), + Vmag(i__),SpType(i__),RV(i__),u_RV(i__),o_RV(i__),Type(i__), + R_RP_D(i__),r_RV(i__),Note(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end