FORTRAN Generation
(/./ftp/cats/VII/167/)

Conversion of standardized ReadMe file for file /./ftp/cats/VII/167/ 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. VII/167    General Catalog of Photometry of Galaxies    (Longo+ 1983)
*================================================================================
*A general catalogue of photometric magnitudes and colors in the U,B,V
*system of 3,578 galaxies brighter than 16-th V-magnitude (1936-1982)
*        Longo G., de Vaucouleurs A.
*       <University of Texas Astronomy Monographs, No.3 (1983)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! UBV catalogue of 3578 galaxies

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

      character*1   NIA        (nr__) ! [NIA]! identification is given by:
*                                  'N'= NGC number, 'I'= IC number,
*                                  'A'= anonymous designation
      character*11  Name       (nr__) ! [ 0-9A-I.+-]! identification name of galaxy (1)
      character*3   Type       (nr__) ! [0-9- ] morphological type code (2)
      character*1   u_Type     (nr__) ! [*$?PpR] uncertainty flag of TYPE
      real*4        logD       (nr__) ! ([0.1arcmin]) []? log. of face-on isophotal diameter from RC2
      real*4        logA       (nr__) ! ([0.1arcmin]) log. of photometer field aperture diameter
      character*6   source     (nr__) ! sources, coded as indicated in the list of
*                                  references (3)
      real*4        Vmag       (nr__) ! (mag) []? V band mag., except where suffix B is
*                                   attached if only B-band mag. is available
      character*1   u_Vmag     (nr__) ! [*B$] uncertainty flag of V ('B' see above)
      real*4        B_V        (nr__) ! (mag) []? B-V color index
      character*1   u_B_V      (nr__) ! [*$] uncertainty flag of B-V
      real*4        U_B        (nr__) ! (mag) []? U-B color index
      character*1   u_U_B      (nr__) ! [*$] uncertainty flag of U-B
      character*5   Note       (nr__) ! [0-9, ] refer to identifications and
*                                   observer's remarks listed on pp. 339 to
*                                   400 of the printed catalogue
*Note (1):
*    NGC and IC numbers are designated by 4 digits with suffix, if any.
*    Anonymous numbers already listed in RC2 are given with 4 digits for RA
*    and 2 digits for Dec., and additional objects are given with 4 digits
*    for RA and 4 digits for Dec., both with suffix, if any. The suffix
*    'A', 'B', etc. designates multiple or close objects. Two letters, e.g.
*    "A+B", indicate that two small objects are simultaneously present in
*    the photometer field aperture. If a fraction of an adjacent object is
*    included in the aperture, a '+' sign is added to the designation.
*Note (2):
*    Morphological type is along the Hubble sequence, coded numerically as
*    in RC2 from -6 for compact E to +11 for compact Im (see RC2 Table 2a).
*    In general the RC2 type was adopted. For many additional objects south
*    of -22 deg new types were provided by H.Corwin from "Southern Galaxy
*    Cat.".
*Note (3):
*    The list of references in pp. vii to xviii of the published catalogue
*    is not archived here. See also p.iii of it.

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

C  Loading file 'catalog.dat'	! UBV catalogue of 3578 galaxies

C  Format for file interpretation

    1 format(
     +  A1,A11,2X,A3,A1,1X,F5.2,2X,F5.2,1X,A6,3X,F5.2,A1,1X,F5.2,A1,
     +  1X,F5.2,A1,2X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,16712
        read(1,'(A68)')ar__
        read(ar__,1)
     +  NIA(i__),Name(i__),Type(i__),u_Type(i__),logD(i__),logA(i__),
     +  source(i__),Vmag(i__),u_Vmag(i__),B_V(i__),u_B_V(i__),
     +  U_B(i__),u_U_B(i__),Note(i__)
        if(ar__(20:24) .EQ. '') logD(i__) = rNULL__
        if(ar__(42:46) .EQ. '') Vmag(i__) = rNULL__
        if(ar__(49:53) .EQ. '') B_V(i__) = rNULL__
        if(ar__(56:60) .EQ. '') U_B(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  NIA(i__),Name(i__),Type(i__),u_Type(i__),logD(i__),logA(i__),
     +  source(i__),Vmag(i__),u_Vmag(i__),B_V(i__),u_B_V(i__),
     +  U_B(i__),u_U_B(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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