FORTRAN Generation
(/./ftp/cats/J/AJ/134/1432)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/134/1432 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-Mar-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/134/1432       Proper motions in Plaut's window         (Vieira+, 2007)
*================================================================================
*Proper motions in the Galactic Bulge: Plaut's window.
*    Vieira K., Casetti-dinescu D.I., Mendez R.A., Rich R.M., Girard T.M.,
*    Korchagin V.I., Van Altena W., Majewski S.R., Van Den Bergh S.
*   <Astron. J., 134, 1432-1446 (2007)>
*   =2007AJ....134.1432V
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Plaut's window catalog of proper motions

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     v_VCM2007_ (nr__) ! Plaut's identification number
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000) (1)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000) (1)
      real*4        Vmag       (nr__) ! (mag) The V band magnitude
      real*4        B_V        (nr__) ! (mag) The (B-V) color index
      integer*4     Npl        (nr__) ! Number of plates in which the star appears
      real*8        pmGlon     (nr__) ! (mas/yr) Proper motion in galactic longitude
      real*8        pmGlat     (nr__) ! (mas/yr) Proper motion in galactic latitude
      real*4        e_pmGlon   (nr__) ! (mas/yr) Error in pmGLON
      real*4        e_pmGlat   (nr__) ! (mas/yr) Error in pmGLAT
*Note (1): As obtained from a solution with UCAC2 (Cat. <I/289>).

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

C  Declarations for 'table4.dat'	! Plaut's window stars with 2MASS data

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

      integer*4     v_VCM2007__1(nr__1) ! Plaut's identification number
      character*17  v2MASS     (nr__1) ! The 2MASS identification (1)
      real*4        Jmag       (nr__1) ! (mag) The 2MASS J band magnitude
      real*4        e_Jmag     (nr__1) ! (mag) The error in Jmag
      real*4        Hmag       (nr__1) ! (mag) The 2MASS H band magnitude
      real*4        e_Hmag     (nr__1) ! (mag) The error in Hmag
      real*4        Kmag       (nr__1) ! (mag) The 2MASS K band magnitude
      real*4        e_Kmag     (nr__1) ! (mag) The error in Kmag
      integer*4     Pop        (nr__1) ! Population index (2)
      character*5   Dupl       (nr__1) ! Duplicate match identification (3)
*Note (1): Where the 2MASS identification is based on the sexagesimal sky
*           coordinates of the star.
*Note (2): Population index code as follows:
*      0 = Undetermined (no population was explicitly assigned to the star)
*      1 = Bulge RGB
*      2 = Disk MS
*Note (3): Identification of another Plaut's star that was cross-referenced
*     to the same 2MASS star. Our frames have better resolution than 2MASS.

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

C  Loading file 'table3.dat'	! Plaut's window catalog of proper motions

C  Format for file interpretation

    1 format(
     +  I5,1X,F10.6,1X,F10.6,1X,F5.2,1X,F5.2,1X,I2,1X,F7.2,1X,F7.2,1X,
     +  F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,21660
        read(1,'(A70)')ar__
        read(ar__,1)
     +  v_VCM2007_(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),B_V(i__),
     +  Npl(i__),pmGlon(i__),pmGlat(i__),e_pmGlon(i__),e_pmGlat(i__)
c    ..............Just test output...........
        write(6,1)
     +  v_VCM2007_(i__),RAdeg(i__),DEdeg(i__),Vmag(i__),B_V(i__),
     +  Npl(i__),pmGlon(i__),pmGlat(i__),e_pmGlon(i__),e_pmGlat(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Plaut's window stars with 2MASS data

C  Format for file interpretation

    2 format(
     +  I5,1X,A17,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,
     +  I1,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,8721
        read(1,'(A70)')ar__1
        read(ar__1,2)
     +  v_VCM2007__1(i__),v2MASS(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),
     +  e_Hmag(i__),Kmag(i__),e_Kmag(i__),Pop(i__),Dupl(i__)
c    ..............Just test output...........
        write(6,2)
     +  v_VCM2007__1(i__),v2MASS(i__),Jmag(i__),e_Jmag(i__),Hmag(i__),
     +  e_Hmag(i__),Kmag(i__),e_Kmag(i__),Pop(i__),Dupl(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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