FORTRAN Generation
(/./ftp/cats/J/A_A/433/751)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/433/751 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 2026-Sep-10
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/433/751  BR photometry of nearby Southern dwarf galaxies (Makarova+, 2005)
*================================================================================
*Imaging and photometry of nearby dwarf galaxies. II. Southern dwarfs.
*    Makarova L.N., Karachentsev I.D., Grebel E.K., Harbeck D., Korotkova G.G.,
*    Geisler D.
*   <Astron. Astrophys., 433, 751-756 (2005)>
*   =2005A&A...433..751M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observational log of the dwarf galaxies

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

      character*12  Name        ! Object name
      character*10  Date        ! ("DD-MM-YYYY") Observation Date
      character*1   B           ! [B] B for Johnson B filter
      character*7   ExpTimeB    ! Exposition time (s) in B filter
      real*4        SeeingB     ! (arcsec) Seeing for B filter
      real*4        AirmassB    ! Airmass for B filter
      character*1   R           ! [R] R for Kron-Cousins R filter
      character*7   ExpTimeR    ! Exposition time (s) in R filter
      real*4        SeeingR     ! (arcsec) Seeing for R filter
      real*4        AirmassR    ! Airmass for R filter

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

C  Declarations for 'table2.dat'	! General parameters of the observed galaxies

      integer*4 nr__1
      parameter (nr__1=23)	! Number of records
      character*100 ar__1  	! 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)

      character*12  Name_1      ! Object name
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      integer*4     DEs         ! (arcsec) Declination (J2000)
      character*4   MType       ! Morphological type
      integer*4     RVLG        ! (km/s) ?=- Radial velocity with respect to the
*                                        Local Group centroid (1)
      integer*4     r_RVLG      ! ? Reference for RVLG (2)
      real*4        Dist        ! (Mpc) ?=- Distance to the galaxy
      character*4   n_Dist      ! Method used to determined Dist (3)
      real*4        AB          ! (mag) Galactic extinction in the B-band from
*                                     Schlegel et al. (1998ApJ...500..525S)
      real*4        BTmagN      ! (mag) ?=- Integrated apparent magnitude in the
*                                        B-band from NED
      character*1   u_BTmagN    ! Uncertainty flag on BTmagN
      integer*4     r_BTmagN    ! ? Reference for BTmagN (2)
      real*4        BTmag       ! (mag) Integrated Johson B-magnitude from our
*                                     measurements
      character*1   u_BTmag     ! Uncertainty flag on BTmag
      real*4        v_B_R_T     ! (mag) Integrated (B-R) Johnson-Cousins colour
*                                     index from our photometry
      character*1   u__B_R_T    ! Uncertainty flag on (B-R)T
      real*4        SuBrB0      ! (mag/arcsec+2) Central surface brightness in the B-band (4)
      character*1   u_SuBrB0    ! Uncertainty flag on SuBrB0
      real*4        aHolm       ! (arcmin) Holmberg diameter
      real*4        BMAG        ! (mag) ?=- Absolute B magnitude of the galaxy
*Note (1): Radial velocity with respect to the Local Group centroid with the
*          apex parameters from Karachentsev & Makarov (1996PAZh...22..510K).
*          The source of the radial velocity is NED or other recent sources, 
*          as noted in the table
*Note (2): References as follows:
*      1 = Cote et al., 1997AJ....114.1313C
*      2 = Fouque et al., 1992, Catalogue of Optical Radial Velocities,
*          Observatories de Lyon et Paris-Meudon, 1, 1
*      3 = Huchtmeier et al., 2000, Cat. <J/A+AS/141/469>
*      4 = Lauberts and Valentijn, 1989, Cat. <VII/34>
*      5 = Maddox et al., 1990MNRAS.243..692M
*      6 = da Costa et al., 1991ApJS...75..935D
*      7 = de Vaucouleurs et al., RC3, Cat. <VII/155>
*Note (3): Methods as follows:
*     tf = from the Tully-Fisher relation
*    mem = from membership in the known groups
*    rgb = from the luminosity of the tip of red giant branch
*      h = from the Hubble relation with the Hubble parameter H0=72km/s/Mpc
*Note (4): The surface brightness values were estimated by eye from
*          the surface brightness profiles

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

C  Loading file 'table1.dat'	! Observational log of the dwarf galaxies

C  Format for file interpretation

    1 format(
     +  A12,2X,A10,1X,A1,1X,A7,1X,F3.1,1X,F5.3,1X,A1,1X,A7,1X,F3.1,1X,
     +  F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,23
        read(1,'(A64)')ar__
        read(ar__,1)
     +  Name,Date,B,ExpTimeB,SeeingB,AirmassB,R,ExpTimeR,SeeingR,
     +  AirmassR
c    ..............Just test output...........
        write(6,1)
     +  Name,Date,B,ExpTimeB,SeeingB,AirmassB,R,ExpTimeR,SeeingR,
     +  AirmassR
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! General parameters of the observed galaxies

C  Format for file interpretation

    2 format(
     +  A12,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,A4,1X,I4,1X,
     +  I1,1X,F5.2,1X,A4,F4.2,1X,F5.2,A1,1X,I1,1X,F5.2,A1,1X,F4.2,A1,
     +  1X,F4.1,A1,1X,F3.1,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,23
        read(1,'(A100)')ar__1
        read(ar__1,2)
     +  Name_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,MType,RVLG,r_RVLG,Dist,
     +  n_Dist,AB,BTmagN,u_BTmagN,r_BTmagN,BTmag,u_BTmag,v_B_R_T,
     +  u__B_R_T,SuBrB0,u_SuBrB0,aHolm,BMAG
        if (RVLG .EQ. 45) RVLG =  iNULL__
        if(ar__1(46:46) .EQ. '') r_RVLG = iNULL__
        if (idig(ar__1(48:52)).EQ.0) Dist =  rNULL__
        if (idig(ar__1(63:67)).EQ.0) BTmagN =  rNULL__
        if(ar__1(70:70) .EQ. '') r_BTmagN = iNULL__
        if (idig(ar__1(95:100)).EQ.0) BMAG =  rNULL__
        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,2)
     +  Name_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,MType,RVLG,r_RVLG,Dist,
     +  n_Dist,AB,BTmagN,u_BTmagN,r_BTmagN,BTmag,u_BTmag,v_B_R_T,
     +  u__B_R_T,SuBrB0,u_SuBrB0,aHolm,BMAG
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
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