CDS.headStuff2 FORTRAN Generation
()

Conversion of standardized ReadMe file for catalog 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-May-02
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/A+A/420/147       Velocity in 6 spiral galaxies       (Blais-ouellette+, 2004)
*================================================================================
*Accurate determination of the mass distribution in spiral galaxies.
*III. Fabry-Perot imaging spectroscopy of 6 spiral galaxies.
*    Blais-Ouellette S., Amram P., Carignan C., Swaters R.
*   <Astron. Astrophys., 420, 147-161 (2004)>
*   =2004A&A...420..147B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea2.dat'	! Optical rotation curve of NGC 2403 at 6.6" resolution

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

      real*4        R           ! (arcsec) Distance to the center
      integer*4     Napp        ! ? Number of velocity points for the
*                                     approaching side
      integer*4     Vapp        ! (km/s) ? Average velocity for the approaching side
      integer*4     sigmaapp    ! (km/s) ? Square root of the variance of the
*                                     velocities for the approaching side
      integer*4     Nrec        ! ? Number of velocity points for the
*                                     receding side
      integer*4     Vrec        ! (km/s) ? Average velocity for the receding side
      integer*4     sigmarec    ! (km/s) ? Square root of the variance of the
*                                     receding for the approaching side
      integer*4     Vel         ! (km/s) Average velocity and uncertainty
      integer*4     e_Vel       ! (km/s) ? rms uncertainty on Vel

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

C  Loading file 'tablea2.dat'	! Optical rotation curve of NGC 2403 at 6.6" resolution

C  Format for file interpretation

    1 format(F6.2,1X,I4,1X,I3,1X,I3,1X,I4,1X,I3,1X,I3,1X,I3,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'J/A+A/420/147/tablea2.dat')
      write(6,*) '....Loading file: tablea2.dat'
      do i__=1,90
        read(1,'(A39)')ar__
        read(ar__,1)R,Napp,Vapp,sigmaapp,Nrec,Vrec,sigmarec,Vel,e_Vel
        if(ar__(8:11) .EQ. '') Napp = iNULL__
        if(ar__(13:15) .EQ. '') Vapp = iNULL__
        if(ar__(17:19) .EQ. '') sigmaapp = iNULL__
        if(ar__(21:24) .EQ. '') Nrec = iNULL__
        if(ar__(26:28) .EQ. '') Vrec = iNULL__
        if(ar__(30:32) .EQ. '') sigmarec = iNULL__
        if(ar__(38:39) .EQ. '') e_Vel = iNULL__
c    ..............Just test output...........
        write(6,1)R,Napp,Vapp,sigmaapp,Nrec,Vrec,sigmarec,Vel,e_Vel
c    .......End.of.Just test output...........
      end do
      close(1)

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