FORTRAN Generation
(/./ftp/cats/II/258)

Conversion of standardized ReadMe file for file /./ftp/cats/II/258 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 2026-Oct-05
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. II/258              Hubble Ultra Deep Field Catalog (UDF)     (STScI, 2004)
*================================================================================
*The Hubble Ultra Deep Field Catalog
*     Beckwith S.V.W.
*    <Space Telescope Science Institute (2004)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'udf-i.dat'	! The Ultra-Deep Field Catalog from F775W image

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     UDF        (nr__) ! Running number (G1)
      real*8        Xpos       (nr__) ! (pix) Position of the source (toward East)
      real*8        Ypos       (nr__) ! (pix) Position of the source (toward North)
      real*8        RAdeg      (nr__) ! (deg) Right Ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000)
      real*4        Theta      (nr__) ! (deg) [-90,+90] source orientation "Theta"
*                               (counterclockwise from the X-axis = PA-90)
      real*4        ell        (nr__) ! Ellipticity (1-b/a)
      real*8        R50        (nr__) ! (pix) Half-light radius
      real*4        FWHM       (nr__) ! (pix) FWHM of a Gaussian fit to each source
      real*4        Sty        (nr__) ! Stellarity (1 for point sources,
*                                     0 for fully resolved sources)
      real*8        Bmag       (nr__) ! (mag) ?=99.00 AB magnitude in F435W filter (2)
      real*8        e_Bmag     (nr__) ! (mag) ?=99.00 Formal error on Bmag
      real*4        Bs_n       (nr__) ! Signal to Noise ratio in F435W filter
      real*8        Vmag       (nr__) ! (mag) ?=99.00 AB magnitude in F606W filter (2)
      real*8        e_Vmag     (nr__) ! (mag) ?=99.00 Formal error on Vmag
      real*4        Vs_n       (nr__) ! Signal to Noise ratio in F606W filter
      real*8        imag       (nr__) ! (mag) ?=99.00 AB magnitude in F775W filter (2)
      real*8        e_imag     (nr__) ! (mag) ?=99.00 Formal error on imag
      real*4        is_n       (nr__) ! Signal to Noise ratio in F775W filter
      real*8        zmag       (nr__) ! (mag) ?=99.00 AB magnitude in F850LP filter (2)
      real*8        e_zmag     (nr__) ! (mag) ?=99.00 Formal error on zmag
      real*4        zs_n       (nr__) ! Signal to Noise ratio in F850LP filter
      integer*4     Flags      (nr__) ! SExtractor flags (1)
*Note (1): combination of binary flags with the following meaning:
*   1 = The object has neighbors, bright and close enough to
*       significantly bias the photometry, or bad pixels
*   2 = The object was originally blended with another one.
*   4 = At least one pixel of the object is saturated (or very close to).
*   8 = The object is truncated (too close to an image boundary).
*  16 = Object's aperture data are incomplete or corrupted.
*Note (2): magnitude isophotally matched.

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

C  Declarations for 'udf-z.dat'	! The Ultra-Deep Field Catalog from F850LP image

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     UDF_1      (nr__1) ! Running number (G1)
      real*8        Xpos_1     (nr__1) ! (pix) Position of the source (toward East)
      real*8        Ypos_1     (nr__1) ! (pix) Position of the source (toward North)
      real*8        RAdeg_1    (nr__1) ! (deg) Right Ascension (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination (J2000)
      real*4        Theta_1    (nr__1) ! (deg) [-90,+90] source orientation "Theta"
*                               (counterclockwise from the X-axis = PA-90)
      real*4        ell_1      (nr__1) ! Ellipticity (1-b/a)
      real*8        R50_1      (nr__1) ! (pix) Half-light radius
      real*4        FWHM_1     (nr__1) ! (pix) FWHM of a Gaussian fit to each source
      real*4        Sty_1      (nr__1) ! Stellarity (1 for point sources,
*                                     0 for fully resolved sources)
      real*8        Bmag_1     (nr__1) ! (mag) ?=99.00 AB magnitude in F435W filter (2)
      real*8        e_Bmag_1   (nr__1) ! (mag) ?=99.00 Formal error on Bmag
      real*4        Bs_n_1     (nr__1) ! Signal to Noise ratio in F435W filter
      real*8        Vmag_1     (nr__1) ! (mag) ?=99.00 AB magnitude in F606W filter (2)
      real*8        e_Vmag_1   (nr__1) ! (mag) ?=99.00 Formal error on Vmag
      real*4        Vs_n_1     (nr__1) ! Signal to Noise ratio in F606W filter
      real*8        imag_1     (nr__1) ! (mag) ?=99.00 AB magnitude in F775W filter (2)
      real*8        e_imag_1   (nr__1) ! (mag) ?=99.00 Formal error on imag
      real*4        is_n_1     (nr__1) ! Signal to Noise ratio in F775W filter
      real*8        zmag_1     (nr__1) ! (mag) ?=99.00 AB magnitude in F850LP filter (2)
      real*8        e_zmag_1   (nr__1) ! (mag) ?=99.00 Formal error on zmag
      real*4        zs_n_1     (nr__1) ! Signal to Noise ratio in F850LP filter
      integer*4     Flags_1    (nr__1) ! SExtractor flags (1)
*Note (1): combination of binary flags with the following meaning:
*   1 = The object has neighbors, bright and close enough to
*       significantly bias the photometry, or bad pixels
*   2 = The object was originally blended with another one.
*   4 = At least one pixel of the object is saturated (or very close to).
*   8 = The object is truncated (too close to an image boundary).
*  16 = Object's aperture data are incomplete or corrupted.
*Note (2): magnitude isophotally matched.

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

C  Loading file 'udf-i.dat'	! The Ultra-Deep Field Catalog from F775W image

C  Format for file interpretation

    1 format(
     +  2X,I5,3X,F7.2,2X,F7.2,2X,F11.7,2X,F11.7,3X,F5.1,3X,F5.3,5X,
     +  F7.2,2X,F6.2,4X,F4.2,8X,F7.4,1X,F7.4,2X,F6.1,4X,F7.4,1X,F7.4,
     +  2X,F6.1,4X,F7.4,1X,F7.4,2X,F6.1,4X,F7.4,1X,F7.4,2X,F6.1,3X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'udf-i.dat')
      write(6,*) '....Loading file: udf-i.dat'
      do i__=1,10179
        read(1,'(A213)')ar__
        read(ar__,1)
     +  UDF(i__),Xpos(i__),Ypos(i__),RAdeg(i__),DEdeg(i__),Theta(i__),
     +  ell(i__),R50(i__),FWHM(i__),Sty(i__),Bmag(i__),e_Bmag(i__),
     +  Bs_n(i__),Vmag(i__),e_Vmag(i__),Vs_n(i__),imag(i__),
     +  e_imag(i__),is_n(i__),zmag(i__),e_zmag(i__),zs_n(i__),
     +  Flags(i__)
c    ..............Just test output...........
        write(6,1)
     +  UDF(i__),Xpos(i__),Ypos(i__),RAdeg(i__),DEdeg(i__),Theta(i__),
     +  ell(i__),R50(i__),FWHM(i__),Sty(i__),Bmag(i__),e_Bmag(i__),
     +  Bs_n(i__),Vmag(i__),e_Vmag(i__),Vs_n(i__),imag(i__),
     +  e_imag(i__),is_n(i__),zmag(i__),e_zmag(i__),zs_n(i__),
     +  Flags(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'udf-z.dat'	! The Ultra-Deep Field Catalog from F850LP image

C  Format for file interpretation

    2 format(
     +  2X,I5,3X,F7.2,2X,F7.2,2X,F11.7,2X,F11.7,3X,F5.1,3X,F5.3,5X,
     +  F7.2,2X,F6.2,4X,F4.2,8X,F7.4,1X,F7.4,2X,F6.1,4X,F7.4,1X,F7.4,
     +  2X,F6.1,4X,F7.4,1X,F7.4,2X,F6.1,4X,F7.4,1X,F7.4,2X,F6.1,3X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'udf-z.dat')
      write(6,*) '....Loading file: udf-z.dat'
      do i__=1,7016
        read(1,'(A213)')ar__1
        read(ar__1,2)
     +  UDF_1(i__),Xpos_1(i__),Ypos_1(i__),RAdeg_1(i__),DEdeg_1(i__),
     +  Theta_1(i__),ell_1(i__),R50_1(i__),FWHM_1(i__),Sty_1(i__),
     +  Bmag_1(i__),e_Bmag_1(i__),Bs_n_1(i__),Vmag_1(i__),
     +  e_Vmag_1(i__),Vs_n_1(i__),imag_1(i__),e_imag_1(i__),
     +  is_n_1(i__),zmag_1(i__),e_zmag_1(i__),zs_n_1(i__),Flags_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  UDF_1(i__),Xpos_1(i__),Ypos_1(i__),RAdeg_1(i__),DEdeg_1(i__),
     +  Theta_1(i__),ell_1(i__),R50_1(i__),FWHM_1(i__),Sty_1(i__),
     +  Bmag_1(i__),e_Bmag_1(i__),Bs_n_1(i__),Vmag_1(i__),
     +  e_Vmag_1(i__),Vs_n_1(i__),imag_1(i__),e_imag_1(i__),
     +  is_n_1(i__),zmag_1(i__),e_zmag_1(i__),zs_n_1(i__),Flags_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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