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

Conversion of standardized ReadMe file for file /./ftp/cats/VII/168 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.5, on 2013-Jun-20
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. VII/168             Double Galaxies in SGP region  (Zou+, 1989)
*================================================================================
*Catalogue of Double Galaxies in the region of Southern Galactic Cap
*     Zou Zhenlong, Chen Jiansheng, Tang Xiaoying, Bian Yulin
*    <Bull. Inf. CDS 37, 173 (1989)>
*    =1989BICDS..37..173Z
*Catalogue of double galaxies in the South Galactic Cap
*     Zou Zhenlong, Chen Jiansheng, Tang Xiaoying, Bian Yulin
*    <Publ. of the Beijing Astron. Observatory, 12, 8 (1989)>
*    =1989PBeiO..12....8Z
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog'	! The Catalogue of double galaxies

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

      real*8        RA_        (nr__) ! (deg) Right Ascension 1950
      real*8        Dec        (nr__) ! (deg)     Declination 1950
      character*7   Pair       (nr__) ! [B0-9.] Name of the galaxy pair (1)
      integer*4     RAh        (nr__) ! (h) Right Ascension 1950 of W component (hours)
      integer*4     RAm        (nr__) ! (min) Right Ascension 1950 (minutes)
      real*4        RAs        (nr__) ! (s) Right Ascension 1950 (seconds) (2)
      character*1   DE_        (nr__) ! Declination 1950 of W component (sign)
      integer*4     DEd        (nr__) ! (deg) Declination 1950 (degrees)
      integer*4     DEm        (nr__) ! (arcmin) Declination 1950 (minutes)
      integer*4     DEs        (nr__) ! (arcsec) Declination 1950 (seconds) (2)
      character*3   MType      (nr__) ! Morphological (Hubble) type of W component
      real*4        Bmag       (nr__) ! (mag) B magnitude of W component (3)
      real*4        Rmaj       (nr__) ! (arcsec) Major radius of W component (4)
      real*4        Rmin       (nr__) ! (arcsec) Minor radius of W component (4)
      integer*4     paRmaj     (nr__) ! (deg) [0/180[? Position angle of W component (5)
      integer*4     RA2h       (nr__) ! (h) Right Ascension 1950 of W component (hours)
      integer*4     RA2m       (nr__) ! (min) Right Ascension 1950 (minutes)
      real*4        RA2s       (nr__) ! (s) Right Ascension 1950 (seconds) (2)
      character*1   DE2_       (nr__) ! Declination 1950 (sign) of E component
      integer*4     DE2d       (nr__) ! (deg) Declination 1950 (degrees)
      integer*4     DE2m       (nr__) ! (arcmin) Declination 1950 (minutes)
      integer*4     DE2s       (nr__) ! (arcsec) Declination 1950 (seconds) (2)
      character*3   MType2     (nr__) ! Morphological type of E component
      real*4        Bmag2      (nr__) ! (mag) B magnitude of E component (3)
      real*4        Rmaj2      (nr__) ! (arcsec) Major radius of E component (4)
      real*4        Rmin2      (nr__) ! (arcsec) Minor radius of E component (4)
      integer*4     paRmaj2    (nr__) ! (deg) [0/180[? Position angle of E component (5)
      real*4        Sep        (nr__) ! (arcsec) Angular separation of the two galaxies,
*                                    mean error about 1arcsec.
      integer*4     paSep      (nr__) ! (deg) [0/180[? Position angle of separation vector,
*                                    North to East, mean error 2deg.
*Note (1): the pair name is made of plate number (4 bytes), decimal point,
*          and an ordinal number by increasing RA
*Note (2): mean error on position of components is about 2arcsec
*Note (3): mean error about 2mag
*Note (4): relative error about 0.1 (10%)
*Note (5): position angle North to East, mean error about 5deg

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

C  Loading file 'catalog'	! The Catalogue of double galaxies

C  Format for file interpretation

    1 format(
     +  A7,1X,I2,I2,F4.1,A1,I2,I2,I2,1X,A3,1X,F4.1,1X,F5.1,1X,F4.1,1X,
     +  I3,1X,I2,I2,F4.1,A1,I2,I2,I2,1X,A3,1X,F4.1,1X,F5.1,1X,F4.1,1X,
     +  I3,2X,F5.1,1X,I3)

C  Effective file loading

      open(unit=1,file='catalog', status='old')
      write(6,*) '....Loading file: catalog'
      do i__=1,630
        read(1,'(A98)')ar__
        read(ar__,1)
     +  Pair(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),MType(i__),Bmag(i__),Rmaj(i__),Rmin(i__),
     +  paRmaj(i__),RA2h(i__),RA2m(i__),RA2s(i__),DE2_(i__),DE2d(i__),
     +  DE2m(i__),DE2s(i__),MType2(i__),Bmag2(i__),Rmaj2(i__),
     +  Rmin2(i__),paRmaj2(i__),Sep(i__),paSep(i__)
        if(ar__(45:47) .EQ. '') paRmaj(i__) = iNULL__
        if(ar__(85:87) .EQ. '') paRmaj2(i__) = iNULL__
        if(ar__(96:98) .EQ. '') paSep(i__) = iNULL__
c       Derive coordinates RA_ and Dec from input data
c       (RA_ and Dec are set to rNULL_ when unknown)
        RA_(i__) = RAh(i__)
        if(RAh(i__) .GE. 0) RA_(i__)=RAh(i__)*15.
        if(RAm(i__) .GE. 0) RA_(i__)=RA_(i__)+RAm(i__)/4.
        if(RAs(i__) .GE. 0) RA_(i__)=RA_(i__)+RAs(i__)/240.
        Dec(i__) = DEd(i__)
        if(DEm(i__) .GE. 0) Dec(i__)=Dec(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) Dec(i__)=Dec(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.Dec(i__).GE.0) Dec(i__)=-Dec(i__)
c    ..............Just test output...........
        write(6,1)
     +  Pair(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),MType(i__),Bmag(i__),Rmaj(i__),Rmin(i__),
     +  paRmaj(i__),RA2h(i__),RA2m(i__),RA2s(i__),DE2_(i__),DE2d(i__),
     +  DE2m(i__),DE2s(i__),MType2(i__),Bmag2(i__),Rmaj2(i__),
     +  Rmin2(i__),paRmaj2(i__),Sep(i__),paSep(i__)
        write(6,'(6H Pos: 2F8.4)') RA_(i__),Dec(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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