FORTRAN Generation
(/./ftp/cats/J/ApJS/229/39)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/229/39 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-20
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/ApJS/229/39   Narrow line Seyfert 1 galaxies from SDSS-DR12   (Rakshit+, 2017)
*================================================================================
*A catalog of narrow line Seyfert 1 galaxies from the Sloan Digital Sky Survey
*Data Release 12.
*    Rakshit S., Stalin C.S., Chand H., Zhang X.-G.
*   <Astrophys. J. Suppl. Ser., 229, 39-39 (2017)>
*   =2017ApJS..229...39R    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Emission line properties of narrow-line Seyfert 1
                               (NLSy1) galaxies

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

C  J2000 position composed of: RAdeg DEdeg
      character*15  Sp_ID      (nr__) ! SDSS identifier; plate-mjd-fiber
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal
*                                       degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        z          (nr__) ! [0.009/0.8] Spectroscopic redshift
      real*4        logL5100   (nr__) ! ([10-7W]) [41/46] Log nuclear monochromatic
*                                       luminosity at 5100{AA} (in erg/s)
      integer*4     FHbb       (nr__) ! (10-20W/m2) [6/19115] Broad H{beta} component flux (1)
      integer*4     e_FHbb     (nr__) ! (10-20W/m2) Uncertainty in FHbb (1)
      integer*4     FWHMHbb    (nr__) ! (km/s) [308/2200] Broad H{beta} component FWHM
      integer*4     e_FWHMHbb  (nr__) ! (km/s) Uncertainty in FWHMHbb
      integer*4     FHbn       (nr__) ! (10-20W/m2) [0/4255] Narrow H{beta} component flux (1)
      integer*4     e_FHbn     (nr__) ! (10-20W/m2) [0/808] Uncertainty in FHbn (1)
      integer*4     FO3        (nr__) ! (10-20W/m2) [0/17783] Total (broad+narrow)
*                                       [OIII]5007{AA} flux (1)
      integer*4     e_FO3      (nr__) ! (10-20W/m2) [0/533] Uncertainty in FO3 (1)
      integer*4     FWHMO3n    (nr__) ! (km/s) [0/1201] Narrow [OIII]5007{AA}
*                                        component FWHM
      integer*4     e_FWHMO3n  (nr__) ! (km/s) [0/212] Uncertainty in FWHMO3n
      integer*4     FHab       (nr__) ! (10-20W/m2) [0/60883]? Broad H{alpha}
*                                       component flux (1)
      integer*4     e_FHab     (nr__) ! (10-20W/m2) [0/5906]? Uncertainty in FHab (1)
      integer*4     FWHMHab    (nr__) ! (km/s) [0/4234]? Broad H{alpha} component FWHM
      integer*4     e_FWHMHab  (nr__) ! (km/s) [0/2203]? Uncertainty in FWHMHab
      real*4        R4570      (nr__) ! [0/4.6] Optical FeII strength
*                                       relative to H{beta} broad component
*Note (1): In units of 1e-17erg/s/cm^2^.

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

C  Loading file 'table1.dat'	! Emission line properties of narrow-line Seyfert 1
*                               (NLSy1) galaxies

C  Format for file interpretation

    1 format(
     +  A15,1X,F9.5,1X,F9.5,1X,F6.4,1X,F5.2,1X,I5,1X,I3,1X,I4,1X,I3,
     +  1X,I4,1X,I3,1X,I5,1X,I3,1X,I4,1X,I3,1X,I5,1X,I4,1X,I4,1X,I4,
     +  1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,11101
        read(1,'(A121)')ar__
        read(ar__,1)
     +  Sp_ID(i__),RAdeg(i__),DEdeg(i__),z(i__),logL5100(i__),
     +  FHbb(i__),e_FHbb(i__),FWHMHbb(i__),e_FWHMHbb(i__),FHbn(i__),
     +  e_FHbn(i__),FO3(i__),e_FO3(i__),FWHMO3n(i__),e_FWHMO3n(i__),
     +  FHab(i__),e_FHab(i__),FWHMHab(i__),e_FWHMHab(i__),R4570(i__)
        if(ar__(97:101) .EQ. '') FHab(i__) = iNULL__
        if(ar__(103:106) .EQ. '') e_FHab(i__) = iNULL__
        if(ar__(108:111) .EQ. '') FWHMHab(i__) = iNULL__
        if(ar__(113:116) .EQ. '') e_FWHMHab(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Sp_ID(i__),RAdeg(i__),DEdeg(i__),z(i__),logL5100(i__),
     +  FHbb(i__),e_FHbb(i__),FWHMHbb(i__),e_FWHMHbb(i__),FHbn(i__),
     +  e_FHbn(i__),FO3(i__),e_FO3(i__),FWHMO3n(i__),e_FWHMO3n(i__),
     +  FHab(i__),e_FHab(i__),FWHMHab(i__),e_FWHMHab(i__),R4570(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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