FORTRAN Generation
(/./ftp/cats/J/AJ/136/259)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/136/259 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-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. J/AJ/136/259    Second GALEX UV variability catalog (GUVV-2)   (Wheatley+, 2008)
*================================================================================
*The second GALEX ultraviolet variability (GUVV-2) catalog.
*    Wheatley J.M., Welsh B.Y., Browne S.E.
*   <Astron. J., 136, 259-266 (2008)>
*   =2008AJ....136..259W
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! GALEX fields analyzed for variability

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

C  J2000 position composed of: RAdeg DEdeg
      character*26  Field       ! Field name
      character*3   Survey      ! GALEX survey (1)
      integer*4     Nvis        ! Number of visits
      real*4        RAdeg       ! (deg) Right Ascension in decimal degrees (J2000)
      real*4        DEdeg       ! (deg) Declination in decimal degrees (J2000)
*Note (1): GALEX surveys as follows:
*    DIS = Deep Imaging Survey
*    GII = Guest Investigator observations
*    NGS = Nearby Galaxy Survey

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

C  Declarations for 'table2.dat'	! The GALEX ultraviolet variability catalog

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

      character*18  GUVV        ! GALEX identification (JHHMMSS.s+DDMMSS.s)
      character*19  OName       ! SDSS or USNO-B1 identification (1)
      character*31  SIMBAD      ! Simbad identification
      character*3   Type        ! Source type (PQ = Possible Quasar)
      character*26  Field_1     ! GALEX field
      integer*4     o_NUVmag    ! Number of NUV (177-300nm) detections
      real*4        NUVmag      ! (mag) Maximum GALEX/NUV band magnitude
      real*4        NUVamp      ! (mag) Amplitude of NUV band observations
      integer*4     o_FUVmag    ! Number of FUV (120-177nm) detections
      real*4        FUVmag      ! (mag) ? Maximum GALEX/FUV band magnitude
      real*4        FUVamp      ! (mag) ? Amplitude of FUV band observations
      real*4        Bmag        ! (mag) ? USNO-B1/SDSS B/g band magnitude
      character*1   f_Bmag      ! [i] Magnitude from USNO-B1
      real*4        Rmag        ! (mag) ? USNO-B1/SDSS R/r band magnitude
      character*1   f_Rmag      ! [i] Magnitude from USNO-B1
      real*4        Imag        ! (mag) ? USNO-B1/SDSS I/i band magnitude
      character*1   f_Imag      ! [i] Magnitude from USNO-B1
*Note (1): USNO-B1 sources have a format of HHMM+/-DDMMSSs
*     while SDSS sources have a format of JHHMMSS.SS+/-DDMMSS.S.

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

C  Loading file 'table1.dat'	! GALEX fields analyzed for variability

C  Format for file interpretation

    1 format(A26,1X,A3,1X,I3,1X,F6.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,169
        read(1,'(A48)')ar__
        read(ar__,1)Field,Survey,Nvis,RAdeg,DEdeg
c    ..............Just test output...........
        write(6,1)Field,Survey,Nvis,RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! The GALEX ultraviolet variability catalog

C  Format for file interpretation

    2 format(
     +  A18,1X,A19,1X,A31,1X,A3,1X,A26,1X,I2,1X,F5.2,1X,F4.2,1X,I2,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,A1,1X,F5.2,1X,A1,1X,F5.2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,410
        read(1,'(A153)')ar__1
        read(ar__1,2)
     +  GUVV,OName,SIMBAD,Type,Field_1,o_NUVmag,NUVmag,NUVamp,
     +  o_FUVmag,FUVmag,FUVamp,Bmag,f_Bmag,Rmag,f_Rmag,Imag,f_Imag
        if(ar__1(120:124) .EQ. '') FUVmag = rNULL__
        if(ar__1(126:129) .EQ. '') FUVamp = rNULL__
        if(ar__1(131:135) .EQ. '') Bmag = rNULL__
        if(ar__1(139:143) .EQ. '') Rmag = rNULL__
        if(ar__1(147:151) .EQ. '') Imag = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  GUVV,OName,SIMBAD,Type,Field_1,o_NUVmag,NUVmag,NUVamp,
     +  o_FUVmag,FUVmag,FUVamp,Bmag,f_Bmag,Rmag,f_Rmag,Imag,f_Imag
c    .......End.of.Just test output...........
      end do
      close(1)

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