FORTRAN Generation
(/./ftp/cats/J/AJ/129/413)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/129/413 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-Mar-28
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/AJ/129/413    New high proper motion stars (-90<DE< -47)   (Subasavage+, 2005)
*================================================================================
*The solar neighborhood.
*XII. Discovery of new high proper motion stars with {mu}>=0.4/yr between
*declinations -90{deg} and  -47{deg}.
*    Subasavage J.P., Henry T.J., Hambly N.C., Brown M.A., Jao W.-C.
*   <Astron. J., 129, 413-432 (2005)>
*   =2005AJ....129..413S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Proper Motions, Photographic and Infrared
                             Photometry, and Distance Estimates for the
                             SuperCOSMOS-RECONS Sample with {mu}>=0.4"/yr
                             and south of DE=-47{deg}

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

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

      character*1   n_pm        ! [AB] Proper motion interval (1)
      character*10  SCR         ! SCR designation (JHHMM-DDMM)
      character*2   n_SCR       ! [AB ] Multiplicity index on SCR
      integer*4     RAh         ! (h) Right ascension (J2000.0)
      integer*4     RAm         ! (min) Right ascension (J2000.0)
      real*4        RAs         ! (s) Right ascension (J2000.0)
      character*1   DE_         ! Declination sign (J2000.0)
      integer*4     DEd         ! (deg) Declination (J2000.0)
      integer*4     DEm         ! (arcmin) Declination (J2000.0)
      real*4        DEs         ! (arcsec) Declination (J2000.0)
      real*4        pm          ! (arcsec/yr) Total proper motion
      real*4        e_pm        ! (arcsec/yr) rms uncertainty on pm
      real*4        pmPA        ! (deg) Position angle of proper motion
      real*4        Bjmag       ! (mag) ? SuperCOSMOS photographic Bj magnitude
      real*4        R1mag       ! (mag) ? SuperCOSMOS photographic R_59_F magnitude
      real*4        Imag        ! (mag) ? SuperCOSMOS photographic I_IVN_ magnitude
      real*4        Jmag        ! (mag) ? 2MASS J magnitude
      real*4        Hmag        ! (mag) ? 2MASS H magnitude
      real*4        Ksmag       ! (mag) ? 2MASS Ks magnitude
      real*4        R1_J        ! (mag) ? R_59_F-J colour index
      real*4        Dist        ! (pc) ? Estimated distance (photometric)
      character*40  Notes       ! Notes
*Note (1): Proper motion intervals:
*       A: SuperCOSMOS-RECONS Sample with {mu}>=0.5"/yr
*       B: SuperCOSMOS-RECONS Sample with {mu} between 0.4"/yr and 0.5"/yr

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

C  Loading file 'table2.dat'	! Proper Motions, Photographic and Infrared
*                             Photometry, and Distance Estimates for the
*                             SuperCOSMOS-RECONS Sample with {mu}>=0.4"/yr
*                             and south of DE=-47{deg}

C  Format for file interpretation

    1 format(
     +  A1,5X,A10,A2,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,
     +  F5.3,1X,F5.3,1X,F5.1,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2,1X,F5.2,1X,F5.1,1X,A40)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,151
        read(1,'(A149)')ar__
        read(ar__,1)
     +  n_pm,SCR,n_SCR,RAh,RAm,RAs,DE_,DEd,DEm,DEs,pm,e_pm,pmPA,Bjmag,
     +  R1mag,Imag,Jmag,Hmag,Ksmag,R1_J,Dist,Notes
        if(ar__(62:66) .EQ. '') Bjmag = rNULL__
        if(ar__(68:72) .EQ. '') R1mag = rNULL__
        if(ar__(74:78) .EQ. '') Imag = rNULL__
        if(ar__(80:84) .EQ. '') Jmag = rNULL__
        if(ar__(86:90) .EQ. '') Hmag = rNULL__
        if(ar__(92:96) .EQ. '') Ksmag = rNULL__
        if(ar__(98:102) .EQ. '') R1_J = rNULL__
        if(ar__(104:108) .EQ. '') Dist = rNULL__
        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)
     +  n_pm,SCR,n_SCR,RAh,RAm,RAs,DE_,DEd,DEm,DEs,pm,e_pm,pmPA,Bjmag,
     +  R1mag,Imag,Jmag,Hmag,Ksmag,R1_J,Dist,Notes
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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