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 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-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       (nr__) ! Object name
      character*10  Date       (nr__) ! ("DD-MM-YYYY") Observation Date
      character*1   B          (nr__) ! [B] B for Johnson B filter
      character*7   ExpTimeB   (nr__) ! Exposition time (s) in B filter
      real*4        SeeingB    (nr__) ! (arcsec) Seeing for B filter
      real*4        AirmassB   (nr__) ! Airmass for B filter
      character*1   R          (nr__) ! [R] R for Kron-Cousins R filter
      character*7   ExpTimeR   (nr__) ! Exposition time (s) in R filter
      real*4        SeeingR    (nr__) ! (arcsec) Seeing for R filter
      real*4        AirmassR   (nr__) ! 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      (nr__1) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__1) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*12  Name_1     (nr__1) ! Object name
      integer*4     RAh        (nr__1) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__1) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__1) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__1) ! Declination sign (J2000)
      integer*4     DEd        (nr__1) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__1) ! (arcmin) Declination (J2000)
      integer*4     DEs        (nr__1) ! (arcsec) Declination (J2000)
      character*4   MType      (nr__1) ! Morphological type
      integer*4     RVLG       (nr__1) ! (km/s) ?=- Radial velocity with respect to the
*                                        Local Group centroid (1)
      integer*4     r_RVLG     (nr__1) ! ? Reference for RVLG (2)
      real*4        Dist       (nr__1) ! (Mpc) ?=- Distance to the galaxy
      character*4   n_Dist     (nr__1) ! Method used to determined Dist (3)
      real*4        AB         (nr__1) ! (mag) Galactic extinction in the B-band from
*                                     Schlegel et al. (1998ApJ...500..525S)
      real*4        BTmagN     (nr__1) ! (mag) ?=- Integrated apparent magnitude in the
*                                        B-band from NED
      character*1   u_BTmagN   (nr__1) ! Uncertainty flag on BTmagN
      integer*4     r_BTmagN   (nr__1) ! ? Reference for BTmagN (2)
      real*4        BTmag      (nr__1) ! (mag) Integrated Johson B-magnitude from our
*                                     measurements
      character*1   u_BTmag    (nr__1) ! Uncertainty flag on BTmag
      real*4        v_B_R_T    (nr__1) ! (mag) Integrated (B-R) Johnson-Cousins colour
*                                     index from our photometry
      character*1   u__B_R_T   (nr__1) ! Uncertainty flag on (B-R)T
      real*4        SuBrB0     (nr__1) ! (mag/arcsec+2) Central surface brightness in the B-band (4)
      character*1   u_SuBrB0   (nr__1) ! Uncertainty flag on SuBrB0
      real*4        aHolm      (nr__1) ! (arcmin) Holmberg diameter
      real*4        BMAG       (nr__1) ! (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(i__),Date(i__),B(i__),ExpTimeB(i__),SeeingB(i__),
     +  AirmassB(i__),R(i__),ExpTimeR(i__),SeeingR(i__),AirmassR(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),Date(i__),B(i__),ExpTimeB(i__),SeeingB(i__),
     +  AirmassB(i__),R(i__),ExpTimeR(i__),SeeingR(i__),AirmassR(i__)
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(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),MType(i__),RVLG(i__),r_RVLG(i__),Dist(i__),
     +  n_Dist(i__),AB(i__),BTmagN(i__),u_BTmagN(i__),r_BTmagN(i__),
     +  BTmag(i__),u_BTmag(i__),v_B_R_T(i__),u__B_R_T(i__),
     +  SuBrB0(i__),u_SuBrB0(i__),aHolm(i__),BMAG(i__)
        if (RVLG(i__) .EQ. 45) RVLG(i__) =  iNULL__
        if(ar__1(46:46) .EQ. '') r_RVLG(i__) = iNULL__
        if (idig(ar__1(48:52)).EQ.0) Dist(i__) =  rNULL__
        if (idig(ar__1(63:67)).EQ.0) BTmagN(i__) =  rNULL__
        if(ar__1(70:70) .EQ. '') r_BTmagN(i__) = iNULL__
        if (idig(ar__1(95:100)).EQ.0) BMAG(i__) =  rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),MType(i__),RVLG(i__),r_RVLG(i__),Dist(i__),
     +  n_Dist(i__),AB(i__),BTmagN(i__),u_BTmagN(i__),r_BTmagN(i__),
     +  BTmag(i__),u_BTmag(i__),v_B_R_T(i__),u__B_R_T(i__),
     +  SuBrB0(i__),u_SuBrB0(i__),aHolm(i__),BMAG(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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