FORTRAN Generation
(/./ftp/cats/J/AJ/166/85)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/166/85 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-Aug-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/AJ/166/85            K-band spectroscopy of HD 284149b           (Hoch+, 2023)
*================================================================================
*Assessing the C/O Ratio Formation Diagnostic: A Potential Trend with Companion
*Mass.
*    Hoch K.K.W., Konopacky Q.M., Theissen C.A., Ruffio J.-B., Barman T.S.,
*    Rickman E.L., Perrin M.D., Macintosh B., Marois C.
*   <Astron. J., 166, 85 (2023)>
*   =2023AJ....166...85H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'fig2.dat'	! OSIRIS K-band spectra of HD 284149 AB b

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

      real*4        Wave       (nr__) ! (um) [1.96/2.39] Wavelength
      real*4        Flux       (nr__) ! (W/m2/um) [0.53/1.18] Flux density
      real*4        e_Flux     (nr__) ! (W/m2/um) [0.001/0.2] Uncertainty in Flux

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

C  Loading file 'fig2.dat'	! OSIRIS K-band spectra of HD 284149 AB b

C  Format for file interpretation

    1 format(F5.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'fig2.dat')
      write(6,*) '....Loading file: fig2.dat'
      do i__=1,1665
        read(1,'(A17)')ar__
        read(ar__,1)Wave(i__),Flux(i__),e_Flux(i__)
c    ..............Just test output...........
        write(6,1)Wave(i__),Flux(i__),e_Flux(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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