FORTRAN Generation
(/./ftp/cats/J/ApJ/325/798)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/325/798 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-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/ApJ/325/798  Einstein survey of stars in the Hyades       (Micela+, 1988)
*================================================================================
*The Einstein Observatory survey of stars in the Hyades cluster region.
*       Micela G., Sciortino S., Vaiana G.S., Schmitt J.H.M.M., Stern R.A.,
*       Harnden F.R.Jr, Rosner R.
*      <Astrophys. J. 325, 798 (1988)>
*      =1988ApJ...325..798M      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'hyades_1.dat'	! EO Survey of Hyades Region: Observation Parameters

      integer*4 nr__
      parameter (nr__=63)	! Number of records
      character*61 ar__   	! Full-size record

C  B1950 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension B1950
      real*8        DEdeg       ! (deg)     Declination B1950
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Seqno       ! Sequence number (1)
      character*1   f_Seqno     ! [ a] "a" indicates data is merged (1)
      integer*4     RAh         ! (h) Right Ascension (B1950) (hour)
      integer*4     RAm         ! (min) Right Ascension (B1950) (min)
      real*4        RAs         ! (s) Right Ascension (B1950) (sec)
      character*1   DE_         ! Declination sign (B1950)
      integer*4     DEd         ! (deg) Declination (B1950) (deg)
      integer*4     DEm         ! (arcmin) Declination (B1950) (arcmin)
      real*4        DEs         ! (arcsec) Declination (B1950) (arcsec)
      character*11  StartDate   ! ("MMM:DD:YYYY") Start of observation (2)
      character*11  StopDate    ! ("MMM:DD:YYYY") End of observation (2)
      real*4        livetime    ! (ks) Live time of observation (3)
*Note (1): The first column gives the IPC sequence number, a two to five
*          digit number which uniquely identifies the observation. The
*          numbers were assigned sequentially at the time of proposal
*          submission. The 'f_Seqno' is flagged with an "a" if the data has
*          been merged from data acquired at epochs spanning months. It is
*          blank otherwise.
*Note (2): The start and stop date of the observation are given in these
*          columns in the form: month-day-year.
*Note (3): This column gives the observation livetime, in kiloseconds. The
*          livetime is the effective exposure time, a measure of the total
*          time the detectors were able to gather data. It excludes
*          intervals lost because of Earth occultation, because of passage
*          through the South Atlantic Anomaly, or because of unacceptable
*          aspect solution. The livetime has been corrected for detector
*          dead time, a fractional correction for the time during which the
*          detector is unable to record events because it is "processing" a
*          prior event.

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'hyades_2.dat'	! EO Survey of Hyades Stars: Optical Properties
                                and X-ray Luminosities

      integer*4 nr__1
      parameter (nr__1=131)	! Number of records
      character*241 ar__1  	! Full-size record

C  B1950 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg_1     ! (deg) Right Ascension B1950
      real*8        DEdeg_1     ! (deg)     Declination B1950
C  ---------------------------------- ! (position vector(s) in degrees)

      character*88  Name        ! Star name  (1)
      integer*4     RAh_1       ! (h) Right Ascension (B1950) (hour)
      integer*4     RAm_1       ! (min) Right Ascension (B1950) (min)
      integer*4     RAs_1       ! (s) Right Ascension (B1950) (sec)
      character*1   DE__1       ! Declination sign (B1950)
      integer*4     DEd_1       ! (deg) Declination (B1950) (deg)
      integer*4     DEm_1       ! (arcmin) Declination (B1950) (arcmin)
      integer*4     DEs_1       ! (arcsec) Declination (B1950) (arcsec)
      real*4        Vmag        ! (mag) Apparent visual magnitude (2)
      real*4        B_V         ! (mag) B-V color index (2)
      integer*4     r_B_V       ! ? Reference for mv and/or B-V (2)
      character*12  Sp          ! Spectral type (3)
      character*6   r_Sp        ! Reference for spectral type, comma
*                                   separated (3)
      character*11  Vsini       ! (km/s) Equatorial (rotational) velocities along line
*                                   of sight (more than one value) (4)
      character*14  r_Vsini     ! Reference for vsini. comma separated list (4)
      character*36  Notes       ! Notes
      character*1   status      ! [AB] "A" if Certainty about Hyades membership;
*                                      "B" if "Potential" (9)
      character*9   VName       ! Star name (first name found in Name) (1)
      character*1   f_Lx        ! [01] Flagged "1" if Lx is an upper limit (5)
      real*4        Lx          ! (10-7W) X-ray luminosity from 0.16-4.0 keV (6)
      real*4        e_Lx        ! (10-7W) Error for luminosity (6)
      character*2   flux_flg    ! Flag indicating how flux was evaluated (7)
      character*1   reco        ! Ribs and Edge Code flag (8)
*Note (1):  This column lists the star name. We use the following naming
*          conventions.
*
*     EG  -- Eggen and Greenstein (1965ApJ...141...83E, 1965ApJ...142..925E)
*     GH  -- Gichas, et al. (1962)
*     GY  -- Gyllenberg (1931)
*     H   -- Hanson (1975AJ.....80..379H)
*     Ho  -- Holmberg (1944)
*     Hz  -- Hertzsprung (1947)
*     HTK -- Luyten as quoted by Herbig (1962)
*     HZ  -- Humason and Zwicky (1947ApJ...105...85H)
*     J   -- Johnson, et al. (1962ApJ...136...75J)
*     KA  -- Kapteyn and de Sitter (1904)
*     L   -- Pels, et al. (1975A&A....43..423P)
*     LP  -- Luyten, et al. (1981)
*     MLC -- Murray, et al. (1966)
*     O   -- Osvald (1954)
*     Ra  -- Ramberg (1941)
*     VA  -- van Altena (1969AJ.....74....2V)
*     VB  -- van Bueren (1952)
*     VR  -- van Rhijn and Raymond (1934)
*     VYS -- Vyssotsky (1956AJ.....61..201V)
*     WOR -- Worley (1962AJ.....67..396W)
*Note (2): These columns give the apparent visual magnitude, the B-V color,
*          and the reference for mv and/or B-V.
*Note (3): These columns give the spectral type and the reference for the
*          spectral type. This is a comma separated list, an asterisk '*'
*          indicates that Spectral types computed from Color Index or
*          rotational velocity inferred from modulation of chromospheric
*          emission.
*Note (4): These columns give the equatorial rotational velocity, projected
*          along the line of sight, and the reference for the rotational
*          velocity.
*Note (5): This column is flagged with a "1" if the X-ray luminosity is
*          an upper limit. Upper limits given are 3-sigma upper bounds for
*          all members of the optical sample that fall within 2' of the
*          position of an object from the Einstein Observatory master
*          catalog (which includes ~60 different catalogs) and Herbig and
*          Rao (1972ApJ...174..401H).
*Note (6): The X-ray luminosity from 0.16-4.0 keV is presented in the "Lx"
*          column and the corresponding statistical uncertainties in the
*          "e_Lx" column (one sigma). If the luminosity is an upper limit,
*          the uncertainty is listed as 0.000. The conversion factor from
*          count rate to luminosity, assuming a common distance of 45
*          parsecs (Hanson 1975AJ.....80..379H) for all cluster members, is
*          4.860 *10^30^ ergs/count. The estimated overall error in the
*          X-ray luminosities is a factor of ~2 and consists of statistical
*          errors (less than 40% for the 2.5 sigma sources), systematic
*          errors in instrument calibrations (<~10%, Harnden, et al. 1984),
*          errors due to the individual cluster member distance (<100%), and
*          systematic errors in converting count to flux due to the assumed
*          source temperature (<~40%).
*Note (7): This column indicates how the flux was calculated. We use the
*          following abbreviations:
*
*          MB = from "Map" cell count rate, increased by 25%
*          LC = from "Local" count rate in a 3'-radius circle
*          LB = from "Local" cell count rate, increased by 25%
*          WM = weighted mean for source observed more than once
*
*          Count rates were increased by 25% before their conversion to flux
*          when they were partially obscured and detected with the "map"
*          method or when they were detected only with the "map" method.
*          They were also increased by 25% for upper limits. See the
*          appendices of the paper for complete details.
*Note (8): This column is flagged "Y" if the X-ray luminosity is derived in
*          the presence of potential source shadowing. Reco is a ribs and
*          edge code, indicating that the source fell on or near the
*          detector ribs or edges. The local detect algorithm uses a
*          detection cell subdivided into nine central subcells (3x3) with a
*          background frame (around the central cell) subdivided into 16
*          subcells. The 'reco' value provides an estimate of the number of
*          background and detection subcells potentially obscured and is
*          nonzero whenever a source could have any of its central or frame
*          subcells obscured. However, this approach necessarily employs
*          simplifying assumptions regarding the shape and dimensions of the
*          ribs, and it neglects spectral dependencies. Consequently,
*          although a quantitative attempt is made to correct for such
*          effects, the only completely reliable approach is to regard count
*          rates for sources with nonzero reco values (flagged "Y" here) as
*          indeterminate. See appendix A of the paper for more details.
*Note (9): The "status" column lists an "A" if the star is one of the 121
*          "Certain" Hyades members, or a "B" if the star is one of 10
*          "Potential" Hyades members whose Hyades membership has been
*          rejected by Hanson (1975AJ.....80..379H).

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'refs.dat'	! References

      integer*4 nr__2
      parameter (nr__2=40)	! Number of records
      character*80 ar__2  	! Full-size record

      integer*4     code        ! reference code
      character*76  reftxt      ! bibcode (if any) and reference text

C=============================================================================

C  Loading file 'hyades_1.dat'	! EO Survey of Hyades Region: Observation Parameters

C  Format for file interpretation

    1 format(
     +  1X,I5,1X,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A11,
     +  1X,A11,1X,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'hyades_1.dat')
      write(6,*) '....Loading file: hyades_1.dat'
      do i__=1,63
        read(1,'(A61)')ar__
        read(ar__,1)
     +  Seqno,f_Seqno,RAh,RAm,RAs,DE_,DEd,DEm,DEs,StartDate,StopDate,
     +  livetime
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Seqno,f_Seqno,RAh,RAm,RAs,DE_,DEd,DEm,DEs,StartDate,StopDate,
     +  livetime
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'hyades_2.dat'	! EO Survey of Hyades Stars: Optical Properties
*                                and X-ray Luminosities

C  Format for file interpretation

    2 format(
     +  1X,A88,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F5.2,1X,F5.2,
     +  1X,I1,1X,A12,1X,A6,1X,A11,1X,A14,1X,A36,1X,A1,1X,A9,1X,A1,1X,
     +  E7.2,1X,E7.2,1X,A2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'hyades_2.dat')
      write(6,*) '....Loading file: hyades_2.dat'
      do i__=1,131
        read(1,'(A241)')ar__1
        read(ar__1,2)
     +  Name,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag,B_V,r_B_V,
     +  Sp,r_Sp,Vsini,r_Vsini,Notes,status,VName,f_Lx,Lx,e_Lx,
     +  flux_flg,reco
        if(ar__1(122:122) .EQ. '') r_B_V = iNULL__
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  Name,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Vmag,B_V,r_B_V,
     +  Sp,r_Sp,Vsini,r_Vsini,Notes,status,VName,f_Lx,Lx,e_Lx,
     +  flux_flg,reco
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    3 format(I2,2X,A76)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,40
        read(1,'(A80)')ar__2
        read(ar__2,3)code,reftxt
c    ..............Just test output...........
        write(6,3)code,reftxt
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end