FORTRAN Generation
(/./ftp/cats/J/ApJ/581/325)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/581/325 into FORTRAN code for reading data files line by line.

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-Mar-28
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. J/ApJ/581/325       NGC 2071 water masers                    (Seth+, 2002)
*================================================================================
*Water masers as tracers of protostellar disks and outflows in the
*intermediate-mass star-forming region NGC 2071.
*    Seth A.C., Greenhill L.J., Holder B.P.
*   <Astrophys. J. 581, 325 (2002)>
*   =2002ApJ...581..325S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Water Maser Features in NGC 2071 IRS1 & IRS3

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

      character*4   IRS         ! Object name (IRS1 or IRS3) (G1)
      character*4   Maser       ! Maser identification number (1)
      real*4        RV          ! (km/s) Radial velocity
      character*1   l_RV        ! Limit flag on RV error
      real*4        e_RV        ! (km/s) Uncertainty in RV (2)
      real*4        Speak       ! (Jy) Peak fitted flux density
      real*4        e_Speak     ! (Jy) Uncertainty Speak
      real*8        EWOff       ! (mas) Relative position East-West
      real*4        e_EWOff     ! (mas) Uncertainty in EWOff
      real*8        NSOff       ! (mas) Relative position North-South
      real*4        e_NSOff     ! (mas) Uncertainty in NSOff
      integer*4     SChan       ! Number of contributing spectral channels
      real*4        HPFW        ! (km/s) ? Half Power Full Width of fitted Gaussian (3)
      real*4        e_HPFW      ! (km/s) ? Uncertainty in HPFW
      integer*4     MNum        ! ? Associated proper motion number (4)
*Note (1): Maser identification number:
*          The first digit represents the epoch number (1-4)
*          The last number represents the Maser feature number (0-48)
*Note (2): The uncertainty in the radial velocity is assumed to be one-half
*          channel (.21km/s) for features composed of three or fewer spots.
*Note (3): Quoted for features with line profiles fit to a Gaussian model.
*Note (4): For features with measured proper motions, entries indicate the
*          identification numbers of motions, as enumerated in Table 3.

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

C  Declarations for 'table3.dat'	! Water Maser Proper Motions in NGC 2071 IRS1 & IRS3

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

      character*4   IRS_1       ! Object name (IRS1 or IRS3) (G1)
      integer*4     MNum_1      ! Associated proper motion number
      character*1   f_MNum      ! [cd] Flag on MNum (1)
      real*4        RV_1        ! (km/s) Radial velocity
      real*8        EWOff_1     ! (mas) Relative position East-West
      real*8        NSOff_1     ! (mas) Relative position North-South
      real*4        EWVel       ! (km/s) Measured East-West proper motion expressed as
*                                 a velocity (2)
      real*4        e_EWVel     ! (km/s) Uncertainty in EWVel
      real*4        NSVel       ! (km/s) Measured North-South proper motion expressed as
*                                 a velocity (2)
      real*4        e_NSVel     ! (km/s) Uncertainty in NSVel
      character*4   ID1         ! Epoch1 maser feature identification number
      character*4   ID2         ! Epoch2 maser feature identification number
      character*4   ID3         ! Epoch3 maser feature identification number
      character*4   ID4         ! Epoch4 maser feature identification number
*Note (1): Flag on associated proper motion number as follows:
*      c = IRS3 motion 6 is zero because the corresponding feature was used
*          to align the maps of the four epochs.
*      d = IRS1 motion 12 corresponds to the maser feature used to align the
*          maps of the four epochs. An offset is added to all the motions
*          so that the net apparent motion of the IRS1 region is zero.
*          Motion 12 corresponds to that offset.
*Note (2): Assuming a distance of 390pc.

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

C  Loading file 'table2.dat'	! Water Maser Features in NGC 2071 IRS1 & IRS3

C  Format for file interpretation

    1 format(
     +  A4,1X,A4,1X,F5.2,1X,A1,1X,F4.2,1X,F6.3,1X,F5.3,1X,F8.3,1X,
     +  F5.3,1X,F8.3,1X,F5.3,1X,I2,1X,F5.3,1X,F5.3,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,269
        read(1,'(A83)')ar__
        read(ar__,1)
     +  IRS,Maser,RV,l_RV,e_RV,Speak,e_Speak,EWOff,e_EWOff,NSOff,
     +  e_NSOff,SChan,HPFW,e_HPFW,MNum
        if(ar__(70:74) .EQ. '') HPFW = rNULL__
        if(ar__(76:80) .EQ. '') e_HPFW = rNULL__
        if(ar__(82:83) .EQ. '') MNum = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  IRS,Maser,RV,l_RV,e_RV,Speak,e_Speak,EWOff,e_EWOff,NSOff,
     +  e_NSOff,SChan,HPFW,e_HPFW,MNum
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Water Maser Proper Motions in NGC 2071 IRS1 & IRS3

C  Format for file interpretation

    2 format(
     +  A4,1X,I2,1X,A1,1X,F5.2,1X,F8.3,1X,F8.3,1X,F6.2,1X,F4.2,1X,
     +  F6.2,1X,F4.2,1X,A4,1X,A4,1X,A4,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,30
        read(1,'(A77)')ar__1
        read(ar__1,2)
     +  IRS_1,MNum_1,f_MNum,RV_1,EWOff_1,NSOff_1,EWVel,e_EWVel,NSVel,
     +  e_NSVel,ID1,ID2,ID3,ID4
c    ..............Just test output...........
        write(6,2)
     +  IRS_1,MNum_1,f_MNum,RV_1,EWOff_1,NSOff_1,EWVel,e_EWVel,NSVel,
     +  e_NSVel,ID1,ID2,ID3,ID4
c    .......End.of.Just test output...........
      end do
      close(1)

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