FORTRAN Generation
(/./ftp/cats/J/PASJ/61/97)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASJ/61/97 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/PASJ/61/97        Proper motions with Subaru SDF           (Richmond+, 2009)
*================================================================================
*Proper motions with Subaru.
*I. Methods and a first sample in the Subaru Deep Field.
*    Richmond M.W., Morokuma T., Doi M., Komiyama Y., Yasuda N., Okamura S.,
*    Gal-Yam A.
*   <Publ. Astron. Soc. Jap., 61, 97-107 (2009)>
*   =2009PASJ...61...97R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Observations of the SDF in i'-band

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

      character*10  Obs_Date    ! ("YYYY/MM/DD") Observation date
      character*1   m_Obs_Date  ! Multiplicity index on  Obs.Date
      real*8        JD          ! (d) Julian date
      integer*4     ExpTime     ! (s) Exposure time

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

C  Declarations for 'table4.dat'	! First sample of proper motion candidates in the SDF

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

C  J2000 position composed of: RAdeg DEdeg (Epoch=2007.13)
      character*16  SDFPM       ! SDFPM designation (JHHMMSS.s+DDMMSS)
      real*8        RAdeg       ! (deg) Right ascension in decimal degrees
*                                     (Eq=J2000, Ep=2007.13)
      real*8        DEdeg       ! (deg) Declination in decimal degrees
*                                     (Eq=J2000, Ep=2007.13)
      real*4        Vmag        ! (mag) V magnitude (1)
      real*4        Rcmag       ! (mag) Rc magnitude (1)
      real*4        i_mag       ! (mag) i' magnitude (1)
      real*4        z_mag       ! (mag) z' magnitude (1)
      real*4        pmRA        ! (arcsec/yr) Proper motion along RA
      real*4        e_pmRA      ! (arcsec/yr) rms uncertainty in pmRA
      real*4        pmDE        ! (arcsec/yr) Proper motion along DE
      real*4        e_pmDE      ! (arcsec/yr) rms uncertainty in pmDE
*Note (1): Corrected isophotal magnitudes from catalogs of Kashikawa et al.
*           (2004PASJ...56.1011K).

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

C  Loading file 'table2.dat'	! Observations of the SDF in i'-band

C  Format for file interpretation

    1 format(A10,A1,1X,F10.2,1X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,20
        read(1,'(A28)')ar__
        read(ar__,1)Obs_Date,m_Obs_Date,JD,ExpTime
c    ..............Just test output...........
        write(6,1)Obs_Date,m_Obs_Date,JD,ExpTime
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! First sample of proper motion candidates in the SDF

C  Format for file interpretation

    2 format(
     +  6X,A16,1X,F9.5,1X,F9.5,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,
     +  F6.3,1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,105
        read(1,'(A96)')ar__1
        read(ar__1,2)
     +  SDFPM,RAdeg,DEdeg,Vmag,Rcmag,i_mag,z_mag,pmRA,e_pmRA,pmDE,
     +  e_pmDE
c    ..............Just test output...........
        write(6,2)
     +  SDFPM,RAdeg,DEdeg,Vmag,Rcmag,i_mag,z_mag,pmRA,e_pmRA,pmDE,
     +  e_pmDE
c    .......End.of.Just test output...........
      end do
      close(1)

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