CDS.headStuff2 FORTRAN Generation
()

Conversion of standardized ReadMe file for catalog 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-May-07
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. II/27       Photoelectric measurements in UcBV system           (Nicolet 1975)
*================================================================================
*Catalogue of Photoelectric Photometric Measurements in the UcBV System
*    Nicolet B.
*   <Astron. Astrophys. Suppl. Ser. 22, 239 (1975)>
*   =1975A&AS...22..239N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'measures.dat'	! Measurements compiled in the UcBV system

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

      real*8        ID          ! Coded star designation (see file "codes.txt")
      character*1   n_ID        ! [DV] Double of Variable star
      real*4        Vmag        ! (mag) ? V-band magnitude
      real*4        B_V         ! (mag) ? B-V color index
      real*4        U_Bc        ! (mag) ? (U-B)c color index in Cape system
      character*1   n_N         ! [S*/] Meaning of "N" (1)
      integer*4     N           ! [1/60]? Number of observations (1)
      integer*4     ref         ! Reference number (see file "refs.dat")
*Note (1): the prefix indicates:
*     "*" = at least the number of observations specified
*     "/" = unknown number of observations
*     "S" = the star is a standard star for a publication

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

C  Loading file 'measures.dat'	! Measurements compiled in the UcBV system

C  Format for file interpretation

    1 format(F11.8,A1,2X,F5.2,2X,F5.2,2X,F5.2,2X,A1,I3,39X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'II/27/measures.dat')
      write(6,*) '....Loading file: measures.dat'
      do i__=1,8080
        read(1,'(A80)')ar__
        read(ar__,1)ID,n_ID,Vmag,B_V,U_Bc,n_N,N,ref
        if(ar__(15:19) .EQ. '') Vmag = rNULL__
        if(ar__(22:26) .EQ. '') B_V = rNULL__
        if(ar__(29:33) .EQ. '') U_Bc = rNULL__
        if(ar__(37:39) .EQ. '') N = iNULL__
c    ..............Just test output...........
        write(6,1)ID,n_ID,Vmag,B_V,U_Bc,n_N,N,ref
c    .......End.of.Just test output...........
      end do
      close(1)

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