FORTRAN Generation
(/./ftp/cats/J/ApJ/614/745)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/614/745 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-18
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/614/745         Optical and IUE spectra of NGC 7026         (Hyung+, 2004)
*================================================================================
*Optical and IUE spectra of the planetary nebula NGC 7026.
*    Hyung S., Feibelman W.A.
*   <Astrophys. J., 614, 745-756 (2004)>
*   =2004ApJ...614..745H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! IUE (International Ultraviolet Explorer) spectral
                              line intensity

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

      real*8        lambdaObs  (nr__) ! (0.1nm) Observed wavelength in Angstroms
      character*7   lambdaLab  (nr__) ! (0.1nm) Laboratory wavelength in Angstroms
      character*7   Ion        (nr__) ! Ion identification (1)
      real*4        klambda    (nr__) ! Seaton's extinction parameter
*                                         (Seaton, 1979MNRAS.187p..73S)
      real*4        Int1       (nr__) ! Interstellar extinction-corrected
*                                         intensity for C(H{beta})=0.80 (2)
      real*4        Int2       (nr__) ! Interstellar extinction-corrected
*                                         intensity for C(H{beta})=0.95 (2)
      real*4        Flux       (nr__) ! (10-15W/m2/nm) UV flux in units of
*                                         10^-13^ergs/s/cm^2^/{AA}
      character*1   u_Flux     (nr__) ! [:] Estimated error on Flux (3)
*Note (1): A question mark denotes a doubtful line identification.
*Note (2): The intensities are given based on the scale of I(H{beta})=100.
*Note (3): The colon for the fluxes means that the estimated error is large,
*          +/-25%, for weak or blended lines, while others are +/-10%

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

C  Declarations for 'table4.dat'	! Optical spectrum of NGC 7026

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

      real*8        lambdaObs_1(nr__1) ! (0.1nm) ? Observed wavelength in Angstroms (1)
      real*8        lambdaLab_1(nr__1) ! (0.1nm) ? Laboratory wavelength in Angstroms
      character*10  Ion_1      (nr__1) ! Ion identification (2)
      character*10  Mult       (nr__1) ! Multiplet identification (3)
      real*4        klambda_1  (nr__1) ! ? Seaton's extinction parameter
*                                  (Seaton, 1979MNRAS.187p..73S)
      real*8        IntW       (nr__1) ! ? Interstellar extinction-corrected West
*                                  position HES intensity for C(H{beta}=0.80) (4)
      real*8        IntC       (nr__1) ! ? Interstellar extinction-corrected Central
*                                  position HES intensity for C(H{beta}=0.80) (4)
      integer*4     RMS        (nr__1) ! (%) ? The 1{sigma} percentage error (5)
*Note (1): Corrected for radial velocity.
*Note (2): See Hyung and Aller (1996MNRAS.278..551H) for the identifications and
*          references therein.
*Note (3): From Moore's tabulations (1974, A Multiplet Table of Astrophysical
*          Interest, National Bureau of Standards, No. 40 ; 1993, in Tables of
*          Spectra of H, C, N, and O Atoms and Ions, ed. J. W. Gallagher
*          (London: CRC)):
*    dg = These unidentified lines are seen in other PNs, e.g. IC 4997 and
*         NGC 7662;
*     ? = Unlikely identification;
*    ** = Lines severely affected by atmosphere;
*  star = WR type line?
*Note (4): The intensities are given on the scale of I(H{beta})=100.
*Note (5): As deduced from the internal disagreement of spectral measurements
*          (mostly for the west-position spectra or sometimes for the
*          center-position ones) made with different chip settings, whenever
*          two or more measurements are available.

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

C  Loading file 'table2.dat'	! IUE (International Ultraviolet Explorer) spectral
*                              line intensity

C  Format for file interpretation

    1 format(F7.2,1X,A7,1X,A7,1X,F5.3,3X,F5.2,2X,F5.2,2X,F4.2,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,18
        read(1,'(A51)')ar__
        read(ar__,1)
     +  lambdaObs(i__),lambdaLab(i__),Ion(i__),klambda(i__),Int1(i__),
     +  Int2(i__),Flux(i__),u_Flux(i__)
c    ..............Just test output...........
        write(6,1)
     +  lambdaObs(i__),lambdaLab(i__),Ion(i__),klambda(i__),Int1(i__),
     +  Int2(i__),Flux(i__),u_Flux(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Optical spectrum of NGC 7026

C  Format for file interpretation

    2 format(F8.2,1X,F8.2,1X,A10,1X,A10,1X,F6.3,1X,F7.3,1X,F8.3,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,155
        read(1,'(A66)')ar__1
        read(ar__1,2)
     +  lambdaObs_1(i__),lambdaLab_1(i__),Ion_1(i__),Mult(i__),
     +  klambda_1(i__),IntW(i__),IntC(i__),RMS(i__)
        if(ar__1(1:8) .EQ. '') lambdaObs_1(i__) = rNULL__
        if(ar__1(10:17) .EQ. '') lambdaLab_1(i__) = rNULL__
        if(ar__1(41:46) .EQ. '') klambda_1(i__) = rNULL__
        if(ar__1(48:54) .EQ. '') IntW(i__) = rNULL__
        if(ar__1(56:63) .EQ. '') IntC(i__) = rNULL__
        if(ar__1(65:66) .EQ. '') RMS(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  lambdaObs_1(i__),lambdaLab_1(i__),Ion_1(i__),Mult(i__),
     +  klambda_1(i__),IntW(i__),IntC(i__),RMS(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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