FORTRAN Generation
(/./ftp/cats/J/A_A/353/958)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/353/958 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/A+A/353/958   New proper motions in 0<RA<7h, -63<DE<-32{deg}  (Scholz+, 2000)
*================================================================================
*New high-proper motion survey in the Southern sky
*       Scholz R.-D., Irwin M., Ibata R., Jahreiss H., Malkov O.Yu.
*      <Astron. Astrophys. 353, 958 (2000)>
*      =2000A&A...353..958S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! Catalogue of high-proper motion stars

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

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

      integer*4     Seq         ! [1/204] Running number
      integer*4     oNum        ! Original detection number (apm...)
      character*9   APMPM       ! APMPM Jxxxx-xxxx name corresponding to
*                                   the J2000 coordinates
      character*1   m_APMPM     ! Multiplicity index in APMPM for components of
*                                   common proper motion stars
      character*11  NLTT        ! Name as given in Luyten's NLTT (Cat. <I/98>)
*                                   catalogue or the Luyten ESO survey (Luyten &
*                                   Hughes (1985)) (1)
      integer*4     LHS         ! ? LHS (Cat. <I/87>) number
      integer*4     WT          ! ? Number in Wroblewski & Torres catalogues (1)
      integer*4     RAh         ! (h) Right ascension (J2000, epoch of UKST R plate)
      integer*4     RAm         ! (min) Right ascension (J2000, epoch of UKST R plate)
      real*4        RAs         ! (s) Right ascension (J2000, epoch of UKST R plate)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000, epoch of UKST R plate)
      integer*4     DEm         ! (arcmin) Declination (J2000, epoch of UKST R plate)
      real*4        DEs         ! (arcsec) Declination (J2000, epoch of UKST R plate)
      integer*4     UKST        ! UKST survey field number
      real*8        Epoch       ! (yr) Epoch of reference plate (= UKST R plate)
      real*4        Depoch      ! (yr) Epoch difference between UKST B_J and R plates
      real*4        pmX         ! (arcsec/yr) Proper motion component 
*                                   mu_{alpha}_*cos{delta}
      real*4        pmY         ! (arcsec/yr) Proper motion component mu_{delta}_
      real*4        Rmag        ! (mag) R magnitude
      real*4        B_R         ! (mag) B_J_-R colour index
      integer*4     Mult        ! [1/2]? Flag for multiple detections (2)
      integer*4     Qual        ! [1/2]? flag for poor photometric quality (3)
      character*20  SpClass     ! Rough and preliminary spectral classification
*                                   from SAAO spectra (4)
*Note (1): Luyten & Hughes, 1985, Proper motion survey with Schmidt telescopes.
*           LXVII Proper motions for 210 faint stars. University of Minnesota
*           Press, Minneapolis
*           Wroblewski & Torres, Cat. <J/A+AS/78/231>, <J/A+AS/91/129>,
*            <J/A+AS/105/179>, <J/A+AS/115/481>, <J/A+AS/122/447>
*Note (2):
*      1: Multiple detections of the same star in different UKST fields
*      2: for one probable binary star (DSS2 was not yet available for
*         a definitive confirmation) measured as a single object
*Note (3):
*       1: the star was located near the plate edge
*       2: the image of the star was disturbed by the diffraction spikes or
*          halo of a bright stellar image in its vicinity
*Note (4):
*          K/M star = K8..M1
*            M star = M2..M4
*       late M star = M5..M7
*  very late M star = M8..
*    For the cool WDs if DA then the less Balmer lines the cooler the type,
*    however, it is impossible to tell the difference between DC and DA WDs
*    for our faint WDs at the given signal-to-noise and resolution. Most of
*    the WDs should have 5000~K to 6000~K)

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

C  Loading file 'catalog.dat'	! Catalogue of high-proper motion stars

C  Format for file interpretation

    1 format(
     +  I3,1X,I3,1X,A9,A1,1X,A11,4X,I4,2X,I3,1X,I2,1X,I2,1X,F5.2,1X,
     +  A1,I2,1X,I2,1X,F4.1,1X,I3,1X,F7.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,I1,1X,I1,1X,A20)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,204
        read(1,'(A135)')ar__
        read(ar__,1)
     +  Seq,oNum,APMPM,m_APMPM,NLTT,LHS,WT,RAh,RAm,RAs,DE_,DEd,DEm,
     +  DEs,UKST,Epoch,Depoch,pmX,pmY,Rmag,B_R,Mult,Qual,SpClass
        if(ar__(35:38) .EQ. '') LHS = iNULL__
        if(ar__(41:43) .EQ. '') WT = iNULL__
        if(ar__(111:111) .EQ. '') Mult = iNULL__
        if(ar__(113:113) .EQ. '') Qual = iNULL__
        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)
     +  Seq,oNum,APMPM,m_APMPM,NLTT,LHS,WT,RAh,RAm,RAs,DE_,DEd,DEm,
     +  DEs,UKST,Epoch,Depoch,pmX,pmY,Rmag,B_R,Mult,Qual,SpClass
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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