FORTRAN Generation
(/./ftp/cats/J/AJ/132/1202)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/132/1202 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. J/AJ/132/1202   RR Lyrae in Northern Sky Variability Survey   (Kinemuchi+, 2006)
*================================================================================
*Analysis of RR Lyrae stars in the Northern Sky Variability Survey.
*    Kinemuchi K., Smith H.A., Wozniak P.R., McKay T.A.
*   <Astron. J., 132, 1202-1220 (2006)>
*   =2006AJ....132.1202K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Photometric Metallicity of NSVS RRab Stars

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

      integer*4     NSVS       (nr__) ! Northern Sky Variability Survey ID number
      real*4        v_Fe_H_AP  (nr__) ! ([-]) The Sandage (2004AJ....128..858S) [Fe/H] value
      real*4        e__Fe_H_AP (nr__) ! ([-]) The 1{sigma} uncertainty in [Fe/H]AP
      real*4        v_Fe_H_JK  (nr__) ! ([-]) ? The Jurcsik & Kovacs (1996, Cat.
*                                     <J/A+A/312/111>) [Fe/H] value
      real*4        e__Fe_H_JK (nr__) ! ([-]) ? The 1{sigma} uncertainty in [Fe/H]JK
      real*4        v_Fe_H_    (nr__) ! ([-]) The best estimate of [Fe/H]
      real*4        e__Fe_H_   (nr__) ! ([-]) The 1{sigma} uncertainty in [Fe/H]

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

C  Declarations for 'table4.dat'	! NSVS RRab Properties

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     NSVS_1     (nr__1) ! Northern Sky Variability Survey ID number
      real*8        RAdeg      (nr__1) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__1) ! (deg) Declination in decimal degrees (J2000)
      real*8        Per        (nr__1) ! (d) Period
      real*4        Vamp       (nr__1) ! (mag) ROTSE amplitude, scaled to Johnson V band
      real*4        Vmag       (nr__1) ! (mag) Mean intensity-weighted V band magnitude

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

C  Loading file 'table3.dat'	! Photometric Metallicity of NSVS RRab Stars

C  Format for file interpretation

    1 format(I8,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,589
        read(1,'(A41)')ar__
        read(ar__,1)
     +  NSVS(i__),v_Fe_H_AP(i__),e__Fe_H_AP(i__),v_Fe_H_JK(i__),
     +  e__Fe_H_JK(i__),v_Fe_H_(i__),e__Fe_H_(i__)
        if(ar__(21:25) .EQ. '') v_Fe_H_JK(i__) = rNULL__
        if(ar__(27:30) .EQ. '') e__Fe_H_JK(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  NSVS(i__),v_Fe_H_AP(i__),e__Fe_H_AP(i__),v_Fe_H_JK(i__),
     +  e__Fe_H_JK(i__),v_Fe_H_(i__),e__Fe_H_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! NSVS RRab Properties

C  Format for file interpretation

    2 format(I8,1X,F10.6,1X,F10.6,1X,F7.5,1X,F4.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,1188
        read(1,'(A49)')ar__1
        read(ar__1,2)
     +  NSVS_1(i__),RAdeg(i__),DEdeg(i__),Per(i__),Vamp(i__),Vmag(i__)
c    ..............Just test output...........
        write(6,2)
     +  NSVS_1(i__),RAdeg(i__),DEdeg(i__),Per(i__),Vamp(i__),Vmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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