FORTRAN Generation

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/610/A77 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  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2019-Jan-22
*  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
*  Please report problems or questions to   

      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

Cat. J/A+A/610/A77 Orion Integral Filament ALMA+IRAM30m N2H+(1-0) data (Hacar+, 2018)
*An ALMA study of the Orion Integral Filament.
*I. Evidence for narrow fibers in a massive cloud.
*    Hacar A., Tafalla M., Forbrich J., Alves J., Meingast S., Grossschedl J.,
*    Teixeira P.S.
*    <Astron. Astrophys. 610, A77 (2018)>
*    =2018A&A...610A..77H        (SIMBAD/NED BibCode)

C  Internal variables

      integer*4 i__

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

C  Declarations for 'list.dat'	! List of fits files

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg       ! (deg) Right Ascension of center (J2000)
      real*8        DEdeg       ! (deg) Declination of center (J2000)
      integer*4     Nx          ! Number of pixels along X-axis
      integer*4     Ny          ! Number of pixels along Y-axis
      integer*4     Nz          ! ? Number of slices for the datacube
      character*26  Obs_Date    ! Observation date (YYYY-MM-DDThh:mm:ss.ssssss)
      integer*4     bRV         ! (m/s) ? Lower value of radial velocity interval
*                                   for the datacube
      integer*4     BRV_1       ! (m/s) ? Upper value of radial velocity interval
*                                   for the datacube
      integer*4     dRV         ! (m/s) ? Radial velocity resolution for the datacube
      real*8        Freq        ! (GHz) ? Observed frequency for the image
      integer*4     size        ! (Kibyte) Size of FITS file
      character*12  FileName    ! Name of FITS file, in subdirectory fits
      character*59  Title       ! Title of the FITS file


C  Loading file 'list.dat'	! List of fits files

C  Format for file interpretation

    1 format(
     +  F9.5,F9.5,1X,I4,1X,I4,1X,I3,1X,A26,1X,I6,1X,I5,1X,I3,1X,F7.4,
     +  1X,I6,1X,A12,1X,A59)

C  Effective file loading

      write(6,*) '....Loading file: list.dat'
      do i__=1,2
     +  RAdeg,DEdeg,Nx,Ny,Nz,Obs_Date,bRV,BRV_1,dRV,Freq,size,
     +  FileName,Title
        if(ar__(30:32) .EQ. '') Nz = iNULL__
        if(ar__(61:66) .EQ. '') bRV = iNULL__
        if(ar__(68:72) .EQ. '') BRV_1 = iNULL__
        if(ar__(74:76) .EQ. '') dRV = iNULL__
        if(ar__(78:84) .EQ. '') Freq = rNULL__
c    ..............Just test output...........
     +  RAdeg,DEdeg,Nx,Ny,Nz,Obs_Date,bRV,BRV_1,dRV,Freq,size,
     +  FileName,Title
c    .......End.of.Just test output...........
      end do