FORTRAN Generation
(/./ftp/cats/J/A_A/357/548)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/357/548 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-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/A+A/357/548       ubvy Photometry of magnetic CP stars     (Adelman+, 2000)
*================================================================================
*uvby Photometry of the magnetic CP stars
*HD 36668, 36 Lyncis, HD 86952, and HR 8861
*       Adelman S.J.
*      <Astron. Astrophys. 357, 548 (2000)>
*      =2000A&A...357..548A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Photometry of HD 36668

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

      real*8        HJD        (nr__) ! (d) Heliocentric Julian Date
      real*4        u_v_c      (nr__) ! (mag) variable-comparison (v-c) u magnitude
      real*4        u_ch_c     (nr__) ! (mag) check-comparison (ch-c) u magnitude
      real*4        v_v_c      (nr__) ! (mag) variable-comparison (v-c) v magnitude
      real*4        v_ch_c     (nr__) ! (mag) check-comparison (ch-c) v magnitude
      real*4        b_v_c      (nr__) ! (mag) variable-comparison (v-c) b magnitude
      real*4        b_ch_c     (nr__) ! (mag) check-comparison (ch-c) b magnitude
      real*4        y_v_c      (nr__) ! (mag) variable-comparison (v-c) y magnitude
      real*4        y_ch_c     (nr__) ! (mag) check-comparison (ch-c) y magnitude

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

C  Declarations for 'table3.dat'	! Photometry of 36 Lyn

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

      real*8        HJD_1      (nr__1) ! (d) Heliocentric Julian Date
      real*4        u_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) u magnitude
      real*4        u_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) u magnitude
      real*4        v_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) v magnitude
      real*4        v_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) v magnitude
      real*4        b_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) b magnitude
      real*4        b_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) b magnitude
      real*4        y_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) y magnitude
      real*4        y_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) y magnitude

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

C  Declarations for 'table4.dat'	! Photometry of HD 86592

      integer*4 nr__2
      parameter (nr__2=122)	! Number of records
      character*68 ar__2  	! Full-size record

      real*8        HJD_2      (nr__2) ! (d) Heliocentric Julian Date
      real*4        u_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) u magnitude
      real*4        u_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) u magnitude
      real*4        v_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) v magnitude
      real*4        v_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) v magnitude
      real*4        b_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) b magnitude
      real*4        b_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) b magnitude
      real*4        y_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) y magnitude
      real*4        y_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) y magnitude

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

C  Declarations for 'table5.dat'	! Photometry of HR 8861

      integer*4 nr__3
      parameter (nr__3=58)	! Number of records
      character*68 ar__3  	! Full-size record

      real*8        HJD_3      (nr__3) ! (d) Heliocentric Julian Date
      real*4        u_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) u magnitude
      real*4        u_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) u magnitude
      real*4        v_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) v magnitude
      real*4        v_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) v magnitude
      real*4        b_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) b magnitude
      real*4        b_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) b magnitude
      real*4        y_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) y magnitude
      real*4        y_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) y magnitude

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

C  Declarations for 'tablea.dat'	! Average photometry

      integer*4 nr__4
      parameter (nr__4=15)	! Number of records
      character*122 ar__4  	! Full-size record

      integer*4     Table      (nr__4) ! [2,5] Table number with detailed photometry
      character*8   Name       (nr__4) ! Star name
      character*7   Years      (nr__4) ! Period of observation
      real*4        umag1      (nr__4) ! (mag) Variable-comparison (v-c) u magnitude
      real*4        e_umag1    (nr__4) ! (mag) rms uncertainty on umag1
      real*4        umag2      (nr__4) ! (mag) ? Check-comparison (ch-c) u magnitude
      real*4        e_umag2    (nr__4) ! (mag) ? rms uncertainty on umag2
      real*4        vmag1      (nr__4) ! (mag) Variable-comparison (v-c) v magnitude
      real*4        e_vmag1    (nr__4) ! (mag) rms uncertainty on vmag1
      real*4        vmag2      (nr__4) ! (mag) ? Check-comparison (ch-c) v magnitude
      real*4        e_vmag2    (nr__4) ! (mag) ? rms uncertainty on vmag2
      real*4        bmag1      (nr__4) ! (mag) Variable-comparison (v-c) b magnitude
      real*4        e_bmag1    (nr__4) ! (mag) rms uncertainty on bmag1
      real*4        bmag2      (nr__4) ! (mag) ? Check-comparison (ch-c) b magnitude
      real*4        e_bmag2    (nr__4) ! (mag) ? rms uncertainty on bmag2
      real*4        ymag1      (nr__4) ! (mag) Variable-comparison (v-c) y magnitude
      real*4        e_ymag1    (nr__4) ! (mag) rms uncertainty on ymag1
      real*4        ymag2      (nr__4) ! (mag) ? Check-comparison (ch-c) y magnitude
      real*4        e_ymag2    (nr__4) ! (mag) ? rms uncertainty on ymag2

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

C  Loading file 'table2.dat'	! Photometry of HD 36668

C  Format for file interpretation

    1 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,115
        read(1,'(A68)')ar__
        read(ar__,1)
     +  HJD(i__),u_v_c(i__),u_ch_c(i__),v_v_c(i__),v_ch_c(i__),
     +  b_v_c(i__),b_ch_c(i__),y_v_c(i__),y_ch_c(i__)
c    ..............Just test output...........
        write(6,1)
     +  HJD(i__),u_v_c(i__),u_ch_c(i__),v_v_c(i__),v_ch_c(i__),
     +  b_v_c(i__),b_ch_c(i__),y_v_c(i__),y_ch_c(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Photometry of 36 Lyn

C  Format for file interpretation

    2 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,61
        read(1,'(A68)')ar__1
        read(ar__1,2)
     +  HJD_1(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  HJD_1(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Photometry of HD 86592

C  Format for file interpretation

    3 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,122
        read(1,'(A68)')ar__2
        read(ar__2,3)
     +  HJD_2(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  HJD_2(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Photometry of HR 8861

C  Format for file interpretation

    4 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,58
        read(1,'(A68)')ar__3
        read(ar__3,4)
     +  HJD_3(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  HJD_3(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea.dat'	! Average photometry

C  Format for file interpretation

    5 format(
     +  I1,1X,A8,1X,A7,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,
     +  F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea.dat')
      write(6,*) '....Loading file: tablea.dat'
      do i__=1,15
        read(1,'(A122)')ar__4
        read(ar__4,5)
     +  Table(i__),Name(i__),Years(i__),umag1(i__),e_umag1(i__),
     +  umag2(i__),e_umag2(i__),vmag1(i__),e_vmag1(i__),vmag2(i__),
     +  e_vmag2(i__),bmag1(i__),e_bmag1(i__),bmag2(i__),e_bmag2(i__),
     +  ymag1(i__),e_ymag1(i__),ymag2(i__),e_ymag2(i__)
        if(ar__4(33:38) .EQ. '') umag2(i__) = rNULL__
        if(ar__4(40:44) .EQ. '') e_umag2(i__) = rNULL__
        if(ar__4(59:64) .EQ. '') vmag2(i__) = rNULL__
        if(ar__4(66:70) .EQ. '') e_vmag2(i__) = rNULL__
        if(ar__4(85:90) .EQ. '') bmag2(i__) = rNULL__
        if(ar__4(92:96) .EQ. '') e_bmag2(i__) = rNULL__
        if(ar__4(111:116) .EQ. '') ymag2(i__) = rNULL__
        if(ar__4(118:122) .EQ. '') e_ymag2(i__) = rNULL__
c    ..............Just test output...........
        write(6,5)
     +  Table(i__),Name(i__),Years(i__),umag1(i__),e_umag1(i__),
     +  umag2(i__),e_umag2(i__),vmag1(i__),e_vmag1(i__),vmag2(i__),
     +  e_vmag2(i__),bmag1(i__),e_bmag1(i__),bmag2(i__),e_bmag2(i__),
     +  ymag1(i__),e_ymag1(i__),ymag2(i__),e_ymag2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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