FORTRAN Generation
(/./ftp/cats/V/68A)

Conversion of standardized ReadMe file for file /./ftp/cats/V/68A 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. V/68A       Stellar Maser Observations (Benson+ 1990)
*================================================================================
*A Catalog of Observations for Stellar Masers
*    Benson P.J., Little-Marenin I.R., Attridge J., Blais K., Randolph D.,
*    Woods T., Rubiera M.,  Keefe H.
*   <ApJS, 74, 911 (1990)>
*   =1990ApJS...74..911B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Basic stellar data

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

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

      integer*4     ObsNum     (nr__) ! *[1/3656]+ Number in Right Ascension order
      character*16  Name       (nr__) ! Generally Variable name (GCVS)
*                                        (constellation in 21-23)
      character*13  Name2      (nr__) ! Second name
      character*13  Name3      (nr__) ! Third name (generally IRAS)
      integer*4     RAh        (nr__) ! (h) RA hours (1950)
      integer*4     RAm        (nr__) ! (min) RA minutes (1950)
      real*4        RAs        (nr__) ! (s) ? RA seconds
      character*1   DE_        (nr__) ! Dec sign
      integer*4     DEd        (nr__) ! (deg) Dec degrees (1950)
      integer*4     DEm        (nr__) ! (arcmin) Dec arcminutes
      integer*4     DEs        (nr__) ! (arcsec) [0,60]? dec arcseconds
      real*4        VLSR       (nr__) ! (km/s) ?=9999. LSR radial velocity;
      character*1   u_VLSR     (nr__) ! [*:] asterisk means heliocentric velocity
      character*15  SpType     (nr__) ! Spectral type
      character*5   VarType    (nr__) ! Variable type
      real*8        Period     (nr__) ! (d) ? Period in days
      character*1   u_Period   (nr__) ! Uncertainty flag (:) on Period
      character*1   H2O        (nr__) ! *[YN] detected in H2O?
      character*1   SiO        (nr__) ! *[YN] detected in SiO?
      character*1   OH         (nr__) ! *[YN] detected in OH?
      character*148 note       (nr__) ! Comments
*Note on ObsNum:
*  The number differs from the publication
*Note on H2O, SiO, OH:
*  The field for detected H2O, SiO, or OH is blank if no observations
*  was published.

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

C  Declarations for 'table2.dat'	! Bibliography and comments

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

      integer*4     ObsNum_1   (nr__1) ! [1/3656]+= Number as in table1
      character*16  Name_1     (nr__1) ! Name as in table1
      character*3   Mol        (nr__1) ! [H2OHSi ] Molecule H2O, SiO or OH
      integer*4     RefID      (nr__1) ! Reference detailed in file refs
      character*1   Note_1     (nr__1) ! *[NT*?.] Result of observation
      character*45  Comment    (nr__1) ! Text of comment
*Note on Note:
*     N  indicates that the observation was negative;
*     T  indicates a thermal emission of SiO
*     *  = N T
*     ?  indicates an uncertain detection
*     .  when there is a comment

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

C  Declarations for 'refs.dat'	! References

      integer*4 nr__2
      parameter (nr__2=873)	! Number of records
      character*511 ar__2  	! Full-size record

      integer*4     RefID_1    (nr__2) ! Reference code, as in table2.dat
      character*20  Author1    (nr__2) ! author1
      character*20  Author2    (nr__2) ! author2
      character*20  Author3    (nr__2) ! author3
      character*20  Author4    (nr__2) ! author4
      character*20  Author5    (nr__2) ! author5
      character*20  Author6    (nr__2) ! author6
      character*20  Author7    (nr__2) ! author7
      character*20  Author8    (nr__2) ! author8
      character*20  Author9    (nr__2) ! author9
      character*20  Author10   (nr__2) ! author10
      character*170 Title      (nr__2) ! title
      character*25  Journal    (nr__2) ! journal
      character*5   Volume     (nr__2) ! volume
      character*5   Page       (nr__2) ! page
      character*25  Btitle     (nr__2) ! book-title
      character*20  Editor1    (nr__2) ! editor1
      character*20  Editor2    (nr__2) ! editor2
      character*20  Pub        (nr__2) ! publisher
      character*15  City       (nr__2) ! city

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

C  Loading file 'table1.dat'	! Basic stellar data

C  Format for file interpretation

    1 format(
     +  3X,I4,A16,A13,A13,I2,I2,F4.1,A1,I2,I2,I2,F6.1,A1,A15,A5,F10.4,
     +  A1,1X,A1,A1,A1,A148)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,3656
        read(1,'(A254)')ar__
        read(ar__,1)
     +  ObsNum(i__),Name(i__),Name2(i__),Name3(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),VLSR(i__),
     +  u_VLSR(i__),SpType(i__),VarType(i__),Period(i__),
     +  u_Period(i__),H2O(i__),SiO(i__),OH(i__),note(i__)
        if(ar__(54:57) .EQ. '') RAs(i__) = rNULL__
        if(ar__(63:64) .EQ. '') DEs(i__) = iNULL__
        if(ar__(92:101) .EQ. '') Period(i__) = rNULL__
        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)
     +  ObsNum(i__),Name(i__),Name2(i__),Name3(i__),RAh(i__),RAm(i__),
     +  RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),VLSR(i__),
     +  u_VLSR(i__),SpType(i__),VarType(i__),Period(i__),
     +  u_Period(i__),H2O(i__),SiO(i__),OH(i__),note(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 'table2.dat'	! Bibliography and comments

C  Format for file interpretation

    2 format(3X,I4,A16,1X,A3,1X,I6,A1,A45)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,12159
        read(1,'(A80)')ar__1
        read(ar__1,2)
     +  ObsNum_1(i__),Name_1(i__),Mol(i__),RefID(i__),Note_1(i__),
     +  Comment(i__)
c    ..............Just test output...........
        write(6,2)
     +  ObsNum_1(i__),Name_1(i__),Mol(i__),RefID(i__),Note_1(i__),
     +  Comment(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    3 format(
     +  I6,A20,A20,A20,A20,A20,A20,A20,A20,A20,A20,A170,A25,A5,A5,A25,
     +  A20,A20,A20,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,873
        read(1,'(A511)')ar__2
        read(ar__2,3)
     +  RefID_1(i__),Author1(i__),Author2(i__),Author3(i__),
     +  Author4(i__),Author5(i__),Author6(i__),Author7(i__),
     +  Author8(i__),Author9(i__),Author10(i__),Title(i__),
     +  Journal(i__),Volume(i__),Page(i__),Btitle(i__),Editor1(i__),
     +  Editor2(i__),Pub(i__),City(i__)
c    ..............Just test output...........
        write(6,3)
     +  RefID_1(i__),Author1(i__),Author2(i__),Author3(i__),
     +  Author4(i__),Author5(i__),Author6(i__),Author7(i__),
     +  Author8(i__),Author9(i__),Author10(i__),Title(i__),
     +  Journal(i__),Volume(i__),Page(i__),Btitle(i__),Editor1(i__),
     +  Editor2(i__),Pub(i__),City(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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