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

Conversion of standardized ReadMe file for file /./ftp/cats/VII/140 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 2026-Jun-08
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/140        Catalog of Galaxies Behind the Milky Way (Saito+ 1990,91)
*================================================================================
*A search for galaxies behind the Milky Way between l=210deg and 230deg.
*    Saito M., Ohtani H., Asonuma A., Kashikawa N., Maki T., Nishida S.,
*    Watanabe T.
*   <Publ. Astron. Soc. Japan, Vol. 42, 603 (1990)>
*   =1990PASJ...42..603S
*Catalog of Galaxies Behind the Milky Way, l-230 to 250 degrees (Vol. 2)
*    Saito M., Ohtani H., Baba A., Hotta N., Kameno S., Kurosu S.,
*    Nakada K., Takata T.
*   <Publ. Astron. Soc. Japan, Vol. 43, 449 (1991)>
*   =1991PASJ...43..449S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'vol1.dat'	! l= 210 to 230 degrees

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

C  1950 position composed of: RAh RAm RAs DE- DEd DEm
      real*8        RAdeg      (nr__) ! (deg) Right Ascension 1950
      real*8        DEdeg      (nr__) ! (deg)     Declination 1950
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     CGMW       (nr__) ! *Catalogue number
      integer*4     field      (nr__) ! Field number of the ESO/SERC Southern
*                                        Sky Survey
      real*4        X          (nr__) ! (mm) X coordinate on the film in millimeter
      real*4        Y          (nr__) ! (mm) Y coordinate on the film in millimeter
      integer*4     RAh        (nr__) ! (h) Right Ascension 1950 (hours)
      integer*4     RAm        (nr__) ! (min) Right Ascension 1950 (minutes)
      integer*4     RAs        (nr__) ! (s) [0/60] Right Ascension 1950 (seconds)
      character*1   DE_        (nr__) ! Declination 1950 (sign)
      integer*4     DEd        (nr__) ! (deg) Declination 1950 (degrees)
      real*4        DEm        (nr__) ! (arcmin) Declination 1950 (minutes)
      real*8        GLON       (nr__) ! (deg) Galactic longitude in degrees
      real*8        GLAT       (nr__) ! (deg) Galactic latitude in degrees
      real*4        majDiam    (nr__) ! (mm) Major diameter on the film in millimeter
      real*4        minDiam    (nr__) ! (mm) Minor diameter on the film in millimeter
      character*3   MType      (nr__) ! *Morphological type class
      character*10  feature    (nr__) ! *Feature
      character*60  Xident     (nr__) ! Cross identifications in other catalogs
*Note on CGMW:
*    The galaxies from vol.1 are designated 1-NNNN, those of vol.2 are 2-NNNN
*Note on MType:
*    E: Elliptical
*    I: Irregular
*    S: Spiral
*   SB: Barred Spiral
*Note on feature:
*   Bright, Faint: for surface brightness
*   Asymm, Ring:   for morphology
*   Pair, Triple : for close association (If accompanying galaxies are
*   almost in the same position, they are not listed in the catalog.)
*   PN+galaxy :    a foreground planetary nebula overlaps a galaxy

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

C  Declarations for 'vol2.dat'	! l= 230 to 250 degrees

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

C  1950 position composed of: RAh RAm RAs DE- DEd DEm
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension 1950
      real*8        DEdeg_1    (nr__1) ! (deg)     Declination 1950
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     CGMW_1     (nr__1) ! *Catalogue number
      integer*4     field_1    (nr__1) ! Field number of the ESO/SERC Southern
*                                        Sky Survey
      real*4        X_1        (nr__1) ! (mm) X coordinate on the film in millimeter
      real*4        Y_1        (nr__1) ! (mm) Y coordinate on the film in millimeter
      integer*4     RAh_1      (nr__1) ! (h) Right Ascension 1950 (hours)
      integer*4     RAm_1      (nr__1) ! (min) Right Ascension 1950 (minutes)
      integer*4     RAs_1      (nr__1) ! (s) [0/60] Right Ascension 1950 (seconds)
      character*1   DE__1      (nr__1) ! Declination 1950 (sign)
      integer*4     DEd_1      (nr__1) ! (deg) Declination 1950 (degrees)
      real*4        DEm_1      (nr__1) ! (arcmin) Declination 1950 (minutes)
      real*8        GLON_1     (nr__1) ! (deg) Galactic longitude in degrees
      real*8        GLAT_1     (nr__1) ! (deg) Galactic latitude in degrees
      real*4        majDiam_1  (nr__1) ! (mm) Major diameter on the film in millimeter
      real*4        minDiam_1  (nr__1) ! (mm) Minor diameter on the film in millimeter
      character*3   MType_1    (nr__1) ! *Morphological type class
      character*10  feature_1  (nr__1) ! *Feature
      character*60  Xident_1   (nr__1) ! Cross identifications in other catalogs
*Note on CGMW:
*    The galaxies from vol.1 are designated 1-NNNN, those of vol.2 are 2-NNNN
*Note on MType:
*    E: Elliptical
*    I: Irregular
*    S: Spiral
*   SB: Barred Spiral
*Note on feature:
*   Bright, Faint: for surface brightness
*   Asymm, Ring:   for morphology
*   Pair, Triple : for close association (If accompanying galaxies are
*   almost in the same position, they are not listed in the catalog.)
*   PN+galaxy :    a foreground planetary nebula overlaps a galaxy

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

C  Loading file 'vol1.dat'	! l= 210 to 230 degrees

C  Format for file interpretation

    1 format(
     +  I4,I3,F6.1,F6.1,I2,I2,I2,A1,I2,F4.1,F7.3,F7.3,F3.1,F3.1,A3,
     +  A10,A60)

C  Effective file loading

      open(unit=1,status='old',file=
     +'vol1.dat')
      write(6,*) '....Loading file: vol1.dat'
      do i__=1,2411
        read(1,'(A125)')ar__
        read(ar__,1)
     +  CGMW(i__),field(i__),X(i__),Y(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),GLON(i__),GLAT(i__),majDiam(i__),
     +  minDiam(i__),MType(i__),feature(i__),Xident(i__)
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  CGMW(i__),field(i__),X(i__),Y(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),GLON(i__),GLAT(i__),majDiam(i__),
     +  minDiam(i__),MType(i__),feature(i__),Xident(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'vol2.dat'	! l= 230 to 250 degrees

C  Format for file interpretation

    2 format(
     +  I4,I3,F6.1,F6.1,I2,I2,I2,A1,I2,F4.1,F7.3,F7.3,F3.1,F3.1,A3,
     +  A10,A60)

C  Effective file loading

      open(unit=1,status='old',file=
     +'vol2.dat')
      write(6,*) '....Loading file: vol2.dat'
      do i__=1,4633
        read(1,'(A125)')ar__1
        read(ar__1,2)
     +  CGMW_1(i__),field_1(i__),X_1(i__),Y_1(i__),RAh_1(i__),
     +  RAm_1(i__),RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),
     +  GLON_1(i__),GLAT_1(i__),majDiam_1(i__),minDiam_1(i__),
     +  MType_1(i__),feature_1(i__),Xident_1(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  CGMW_1(i__),field_1(i__),X_1(i__),Y_1(i__),RAh_1(i__),
     +  RAm_1(i__),RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),
     +  GLON_1(i__),GLAT_1(i__),majDiam_1(i__),minDiam_1(i__),
     +  MType_1(i__),feature_1(i__),Xident_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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