FORTRAN Generation
(/./ftp/cats/J/MNRAS/459/1415)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/459/1415 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-14
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/MNRAS/459/1415    Bright white dwarfs IRAC photometry          (Barber+, 2016)
*================================================================================
*Remnant planetary systems around bright white dwarfs.
*    Barber S.D., Belardi C., Kilic M., Gianninas A.
*   <Mon. Not. R. Astron. Soc., 459, 1415-1421 (2016)>
*   =2016MNRAS.459.1415B    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! IRAC Ch 1-4 photometry

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

      character*10  WD         (nr__) ! WD name (HHMM+DDd or HHMM+DDd.N)
      real*8        F3_6um     (nr__) ! (mJy) ?=- Flux density at 3.6um
      real*4        e_F3_6um   (nr__) ! (mJy) ?=- rms uncertainty on F3.6um
      real*8        F4_5um     (nr__) ! (mJy) ?=- Flux density at 4.5um
      real*4        e_F4_5um   (nr__) ! (mJy) ?=- rms uncertainty on F4.5um
      real*8        F5_8um     (nr__) ! (mJy) ?=- Flux density at 5.8um
      real*4        e_F5_8um   (nr__) ! (mJy) ?=- rms uncertainty on F5.8um
      real*8        F8_0um     (nr__) ! (mJy) ?=- Flux density at 8.0um
      real*4        e_F8_0um   (nr__) ! (mJy) ?=- rms uncertainty on F8.0um

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

C  Loading file 'table3.dat'	! IRAC Ch 1-4 photometry

C  Format for file interpretation

    1 format(
     +  A10,1X,F7.3,1X,F5.3,1X,F7.3,1X,F5.3,1X,F8.3,1X,F5.3,1X,F7.3,
     +  1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,381
        read(1,'(A67)')ar__
        read(ar__,1)
     +  WD(i__),F3_6um(i__),e_F3_6um(i__),F4_5um(i__),e_F4_5um(i__),
     +  F5_8um(i__),e_F5_8um(i__),F8_0um(i__),e_F8_0um(i__)
        if (idig(ar__(12:18)).EQ.0) F3_6um(i__) =  rNULL__
        if (idig(ar__(20:24)).EQ.0) e_F3_6um(i__) =  rNULL__
        if (idig(ar__(26:32)).EQ.0) F4_5um(i__) =  rNULL__
        if (idig(ar__(34:38)).EQ.0) e_F4_5um(i__) =  rNULL__
        if (idig(ar__(40:47)).EQ.0) F5_8um(i__) =  rNULL__
        if (idig(ar__(49:53)).EQ.0) e_F5_8um(i__) =  rNULL__
        if (idig(ar__(55:61)).EQ.0) F8_0um(i__) =  rNULL__
        if (idig(ar__(63:67)).EQ.0) e_F8_0um(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  WD(i__),F3_6um(i__),e_F3_6um(i__),F4_5um(i__),e_F4_5um(i__),
     +  F5_8um(i__),e_F5_8um(i__),F8_0um(i__),e_F8_0um(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end