FORTRAN Generation
(/./ftp/cats/J/AJ/129/2119)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/129/2119 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-Apr-20
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/129/2119       Properties for 165 dwarf galaxies          (Spekkens+, 2005)
*================================================================================
*The cusp/core problem in galactic halos: long-slit spectra for a large dwarf
*galaxy sample.
*    Spekkens K., Giovanelli R., Haynes M.P.
*   <Astron. J., 129, 2119-2137 (2005)>
*   =2005AJ....129.2119S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Sample properties and measured inner halo slopes

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000
      real*8        DEdeg       ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Name        ! The object UGC/AGC name (1)
      integer*4     RAh         ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm         ! (min) Minute of Right Ascension (J2000)
      real*4        RAs         ! (s) Second of Right Ascension (J2000)
      character*1   DE_         ! Sign of the Declination (J2000)
      integer*4     DEd         ! (deg) Degree of Declination (J2000)
      integer*4     DEm         ! (arcmin) Arcminute of Declination (J2000)
      integer*4     DEs         ! (arcsec) Arcsecond of Declination (J2000)
      integer*4     HRV         ! (km/s) Heliocentric optical radial velocity (2)
      integer*4     Dist        ! (Mpc) Distance (3)
      real*4        Imag        ! (mag) Total apparent I band magnitude (4)
      real*4        Ro          ! (arcsec) Optical radius (5)
      real*4        SB          ! (mag/arcsec2) Extrapolated I band disk central
*                                       surface brightness (6)
      integer*4     Inc         ! (deg) Inclination (7)
      integer*4     Vrot        ! (km/s) Rotational velocity (8)
      integer*4     Vo          ! (km/s) Best fit polyex curve amplitude (9)
      real*4        rpe         ! (arcsec) Best fit polyex curve scale-length (9)
      real*4        beta        ! (arcsec) Best fit polyex curve outer RC slope (9)
      real*4        alpha       ! Measured inner slope value (10)
      real*4        e_alpha     ! Error in alpha
*Note (1): Uppsala General Catalogue (Nilson 1973, Cat. <VII/26>) number where
*          available, or else our private Arecibo General Catalogue database
*          number.
*Note (2): Measured from best-fit URC curve to long-slit data. See section 3.
*Note (3): Computed from VSol and (RA, Dec) using the multi-attractor flow
*          model of Tonry et al. 2000ApJ...530..625T, with H_0_=70km/s/Mpc.
*Note (4): Extrapolated to 8 optical scale-lengths
*          (Haynes et al. 1999AJ....117.1668H).
*Note (5): Radius encompassing 83% of the total I-band light
*          (Haynes et al. 1999AJ....117.1668H).
*Note (6): Corrected for inclination (Haynes et al. 1999AJ....117.1668H).
*Note (7): Obtained from the I-band disk ellipticity
*          (Haynes et al. 1999AJ....117.1668H) assuming an intrinsic disk axial
*          ratio of 0.2.
*Note (8): Taken as the velocity of the best-fit polyex curve at Radopt;
*          see the "Note (9)" section below and Eq.(2) of paper.
*Note (9): the polyex relates the rotation curve (RC) as (Eq. 2):
*     V(r) = Vo (1 - exp(-r/rpe)) (1 + beta r / rpe)
*Note (10): the inner profile (for low values of r) define the density profile
*     {rho}(r) {prop.to} r^-alpha^

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

C  Loading file 'table1.dat'	! Sample properties and measured inner halo slopes

C  Format for file interpretation

    1 format(
     +  I6,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,I5,1X,I3,1X,
     +  F4.1,1X,F5.1,1X,F4.1,1X,I2,1X,I3,1X,I3,1X,F4.1,1X,F5.2,1X,
     +  F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,165
        read(1,'(A85)')ar__
        read(ar__,1)
     +  Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,HRV,Dist,Imag,Ro,SB,Inc,Vrot,
     +  Vo,rpe,beta,alpha,e_alpha
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,HRV,Dist,Imag,Ro,SB,Inc,Vrot,
     +  Vo,rpe,beta,alpha,e_alpha
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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