FORTRAN Generation
(/./ftp/cats/I/34)

Conversion of standardized ReadMe file for file /./ftp/cats/I/34 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. I/34        Second Greenwich Catalog of Stars for 1925.0 (London 1935)
*================================================================================
*Second Greenwich Catalog of Stars for 1925.0 (in Two Parts)
*Fundamental Stars and Stars in the Zone +32d.0 to +64d.0
*     Royal Greenwich Obs.
*    <London (1935)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'greenw2a.dat'	! Part I.  Fundamental Stars reduced with
                                 proper motion to the epoch 1925.0

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

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

      integer*4     No_        (nr__) ! Running number with the catalog.
      integer*4     PGC        (nr__) ! ? Preliminary General Catalog Number.
      real*4        vmag       (nr__) ! (mag) ?=-9.99 Visual Magnitude (1)
      character*1   varFlag    (nr__) ! [-] A minus sign if star is variable (1)
      character*3   SpType     (nr__) ! Spectral type (2)
      integer*4     RAh        (nr__) ! (h) Right Ascension 1925.0, Ep=1925.0 (hours).
      integer*4     RAm        (nr__) ! (min) Right Ascension (minutes).
      real*4        RAs        (nr__) ! (s) Right Ascension (seconds).
      real*8        AvarRA     (nr__) ! (s/yr) Annual Variation in RA (precession)
      real*8        SvarRA     (nr__) ! (s/hyr) Secular Variation in RA (2nd term precess.)
      character*1   DE_        (nr__) ! Sign of the declination.
      integer*4     DEd        (nr__) ! (deg) Declination 1925.0, Ep=1925.0 (degrees).
      integer*4     DEm        (nr__) ! (arcmin) Declination (arcminutes).
      real*4        DEs        (nr__) ! (arcsec) Declination (seconds).
      real*8        AvarDE     (nr__) ! (arcsec/yr) Annual Variation in DEC (precession)
      real*8        SvarDE     (nr__) ! (arcsec/hyr) Secular Variation in DE (2nd term precess.)
      integer*4     epRA       (nr__) ! (0.1yr) Mean Epoch of RA - 1900.0.
      integer*4     epDE       (nr__) ! (0.1yr) Mean Epoch of DE - 1900.0.
      integer*4     o_RAs      (nr__) ! No. of Observations of RA.
      integer*4     o_DEs      (nr__) ! No. of Observations of DE.
      character*1   Note       (nr__) ! [12349JQ0-] Notes (3)
      integer*4     pmRA       (nr__) ! (.1ms/yr) Proper motion in RA.
      integer*4     pmDE       (nr__) ! (mas/yr) Proper motion in DE.
*Note (1):  When variable, only the brightest magnitude is given.
*    The published catalog gives the range in brightness and period.
*Note (2):  a * in the third byte means more than one spectral type has
*    been given for this star.
*Note (3):  The symbols used are:
*    1 = Brighter Star;
*    2 = Fainter Star;
*    3 = First Star;
*    4 = Second Star;
*    9 = Observed as one star;
*    J = Brighter Star, Reduction to center of gravity;
*    Q = Position is for center of gravity;
*    - = Double Star System;
*    O = Triple Star System.

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

C  Declarations for 'greenw2b.dat'	! Part II. Catalogue of Stars reduced without
                                 proper motions to the epoch 1925.0

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

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

      integer*4     No__1      (nr__1) ! Running number with the catalog.
      character*1   dflag      (nr__1) ! [a] 'a' for supplementary star
      character*9   BD         (nr__1) ! Bonner Durchmusterung designation
      real*4        vmag_1     (nr__1) ! (mag) ?=-9.99 Visual Magnitude. (1)
      character*1   vFlag      (nr__1) ! [-] A minus sign if star is variable. (1)
      character*3   SpType_1   (nr__1) ! Spectral type. (2)
      integer*4     RAh_1      (nr__1) ! (h) Right Ascension 1925.0 (hours)
      integer*4     RAm_1      (nr__1) ! (min) Right Ascension (minutes).
      real*4        RAs_1      (nr__1) ! (s) Right Ascension (seconds).
      real*8        AvarRA_1   (nr__1) ! (s/yr) Annual Variation in RA (precession)
      real*8        SvarRA_1   (nr__1) ! (s/hyr) Secular Variation in RA (2nd term precess.)
      character*1   DE__1      (nr__1) ! Sign of the declination.
      integer*4     DEd_1      (nr__1) ! (deg) Declination 1925.0 (degrees).
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination (arcminutes).
      real*4        DEs_1      (nr__1) ! (arcsec) Declination (seconds).
      real*8        AvarDE_1   (nr__1) ! (arcsec/yr) Annual Variation in DE (precession)
      real*4        SvarDE_1   (nr__1) ! (arcsec/hyr) Secular Variation in DE (2nd term precess.)
      integer*4     EpRA_1900  (nr__1) ! (0.1yr) Mean Epoch of RA - 1900.0.
      integer*4     EpDE_1900  (nr__1) ! (0.1yr) Mean Epoch of DE - 1900.0.
      integer*4     o_RAs_1    (nr__1) ! No. of Observations of RA.
      integer*4     o_DEs_1    (nr__1) ! No. of Observations of DE.
      character*1   Note_1     (nr__1) ! [1234679JLM0RQ] Note (3)
      integer*4     pmRA_1     (nr__1) ! (0.1ms/yr) Proper motion in RA.
      integer*4     pmDE_1     (nr__1) ! (mas/yr) Proper motion in DE.
*Note (1):  When variable only the brightest magnitude is given.
*     The published catalog gives the range in brightness and period.
*Note (2):  a * in the third byte means more than one spectral type has
*       been given for this star.
*Note (3):  The symbols used are:
*       1 = Brighter Star;
*       2 = Fainter Star;
*       3 = First Star;
*       4 = Second Star;
*       6 = South Star;
*       7 = Mean of the two stars was observed;
*       9 = Observed as one star;
*       J = Brighter Star, Reduction to center of gravity;
*       L = First star. Reduction to center of gravity
*       M = Second star. Reduction to center of gravity
*       0 = Triple Star System
*       R = Observed as one star in some observations.
*       Q = Position is for center of gravity; -=Double Star System;

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

C  Loading file 'greenw2a.dat'	! Part I.  Fundamental Stars reduced with
*                                 proper motion to the epoch 1925.0

C  Format for file interpretation

    1 format(
     +  1X,I4,1X,I4,F5.2,A1,1X,A3,1X,I2,1X,I2,1X,F6.3,1X,F8.4,1X,F8.4,
     +  1X,A1,I2,1X,I2,1X,F5.2,1X,F7.3,1X,F7.3,1X,I3,1X,I3,1X,I3,1X,
     +  I3,1X,A1,1X,I5,1X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'greenw2a.dat')
      write(6,*) '....Loading file: greenw2a.dat'
      do i__=1,2111
        read(1,'(A110)')ar__
        read(ar__,1)
     +  No_(i__),PGC(i__),vmag(i__),varFlag(i__),SpType(i__),RAh(i__),
     +  RAm(i__),RAs(i__),AvarRA(i__),SvarRA(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),AvarDE(i__),SvarDE(i__),epRA(i__),epDE(i__),
     +  o_RAs(i__),o_DEs(i__),Note(i__),pmRA(i__),pmDE(i__)
        if(ar__(7:10) .EQ. '') PGC(i__) = iNULL__
        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(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  No_(i__),PGC(i__),vmag(i__),varFlag(i__),SpType(i__),RAh(i__),
     +  RAm(i__),RAs(i__),AvarRA(i__),SvarRA(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),AvarDE(i__),SvarDE(i__),epRA(i__),epDE(i__),
     +  o_RAs(i__),o_DEs(i__),Note(i__),pmRA(i__),pmDE(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 'greenw2b.dat'	! Part II. Catalogue of Stars reduced without
*                                 proper motions to the epoch 1925.0

C  Format for file interpretation

    2 format(
     +  1X,I5,A1,1X,A9,F5.2,A1,1X,A3,1X,I2,1X,I2,1X,F5.2,1X,F7.4,1X,
     +  F7.4,1X,A1,I2,1X,I2,1X,F4.1,1X,F7.3,1X,F6.3,1X,I3,1X,I3,1X,I3,
     +  1X,I3,1X,A1,1X,I5,1X,I5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'greenw2b.dat')
      write(6,*) '....Loading file: greenw2b.dat'
      do i__=1,10587
        read(1,'(A112)')ar__1
        read(ar__1,2)
     +  No__1(i__),dflag(i__),BD(i__),vmag_1(i__),vFlag(i__),
     +  SpType_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),AvarRA_1(i__),
     +  SvarRA_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
     +  AvarDE_1(i__),SvarDE_1(i__),EpRA_1900(i__),EpDE_1900(i__),
     +  o_RAs_1(i__),o_DEs_1(i__),Note_1(i__),pmRA_1(i__),pmDE_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(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  No__1(i__),dflag(i__),BD(i__),vmag_1(i__),vFlag(i__),
     +  SpType_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),AvarRA_1(i__),
     +  SvarRA_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
     +  AvarDE_1(i__),SvarDE_1(i__),EpRA_1900(i__),EpDE_1900(i__),
     +  o_RAs_1(i__),o_DEs_1(i__),Note_1(i__),pmRA_1(i__),pmDE_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