FORTRAN Generation
(/./ftp/cats/J/A_A/615/A96)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/615/A96 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 2024-Apr-18
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/615/A96       VI photometry in 3 dwarf galaxies           (Mueller+, 2018)
*================================================================================
*Distances from the tip of the red giant branch to the dwarf galaxies
*dw1335-29 and dw1340-30 in the Centaurus group.
*    Mueller O., Rejkuba M., Jerjen H.
*    <Astron. Astrophys. 615, A96 (2018)>
*    =2018A&A...615A..96M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observation summary for the three dwarf galaxy
                                 candidates

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

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

      character*9   Name       (nr__) ! Galaxy name
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      integer*4     RAs        (nr__) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      integer*4     DEs        (nr__) ! (arcsec) Declination (J2000)
      character*14  Date       (nr__) ! Observing date
      character*5   Inst       (nr__) ! Instrument
      character*6   TExp       (nr__) ! (s) Exposure time
      character*1   Filter     (nr__) ! [VI] Filter used for the observation
      real*4        Airmass    (nr__) ! Mean airmass during the observation
      character*7   Qimg       (nr__) ! (arcsec) Average image quality measured on images

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

C  Declarations for '1325-301.dat'	! dw1325-30 VI chip 1 photometric catalog

      integer*4 nr__1
      parameter (nr__1=1955)	! Number of records
      character*79 ar__1  	! Full-size record

      integer*4     ID         (nr__1) ! Star identification number
      real*8        Xpos       (nr__1) ! (pix) X position on the cropped chip (1)
      real*8        Ypos       (nr__1) ! (pix) Y position on the cropped chip (1)
      real*8        Vmag       (nr__1) ! (mag) ?=99.9999 V band magnitude with zeropoint=25mag
      real*4        e_Vmag     (nr__1) ! (mag) ?=9.9999 V band magnitude error
      real*8        Imag       (nr__1) ! (mag) ?=99.9999 I band magnitude with zeropoint=25mag
      real*4        e_Imag     (nr__1) ! (mag) ?=9.9999  I band magnitude error
      real*8        Chi        (nr__1) ! ?=99.9999 CHI value
      real*8        Sharp      (nr__1) ! ?=9.9999 Sharpness value
*Note (1): The cropping was performed with IRAFs imcopy command with
*   X=200:1800, Y=10:960 on Chip 1 and X=200:1800, Y=320:1020 on Chip 2.
*   1 pix = 0.25".

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

C  Declarations for '1335-291.dat'	! dw1335-29 VI chip 1 photometric catalog

      integer*4 nr__2
      parameter (nr__2=2624)	! Number of records
      character*79 ar__2  	! Full-size record

      integer*4     ID_1       (nr__2) ! Star identification number
      real*8        Xpos_1     (nr__2) ! (pix) X position on the cropped chip (1)
      real*8        Ypos_1     (nr__2) ! (pix) Y position on the cropped chip (1)
      real*8        Vmag_1     (nr__2) ! (mag) ?=99.9999 V band magnitude with zeropoint=25mag
      real*4        e_Vmag_1   (nr__2) ! (mag) ?=9.9999 V band magnitude error
      real*8        Imag_1     (nr__2) ! (mag) ?=99.9999 I band magnitude with zeropoint=25mag
      real*4        e_Imag_1   (nr__2) ! (mag) ?=9.9999  I band magnitude error
      real*8        Chi_1      (nr__2) ! ?=99.9999 CHI value
      real*8        Sharp_1    (nr__2) ! ?=9.9999 Sharpness value
*Note (1): The cropping was performed with IRAFs imcopy command with
*   X=200:1800, Y=10:960 on Chip 1 and X=200:1800, Y=320:1020 on Chip 2.
*   1 pix = 0.25".

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

C  Declarations for '1335-292.dat'	! dw1335-29 VI chip 2 photometric catalog

      integer*4 nr__3
      parameter (nr__3=1578)	! Number of records
      character*79 ar__3  	! Full-size record

      integer*4     ID_2       (nr__3) ! Star identification number
      real*8        Xpos_2     (nr__3) ! (pix) X position on the cropped chip (1)
      real*8        Ypos_2     (nr__3) ! (pix) Y position on the cropped chip (1)
      real*8        Vmag_2     (nr__3) ! (mag) ?=99.9999 V band magnitude with zeropoint=25mag
      real*4        e_Vmag_2   (nr__3) ! (mag) ?=9.9999 V band magnitude error
      real*8        Imag_2     (nr__3) ! (mag) ?=99.9999 I band magnitude with zeropoint=25mag
      real*4        e_Imag_2   (nr__3) ! (mag) ?=9.9999  I band magnitude error
      real*8        Chi_2      (nr__3) ! ?=99.9999 CHI value
      real*8        Sharp_2    (nr__3) ! ?=9.9999 Sharpness value
*Note (1): The cropping was performed with IRAFs imcopy command with
*   X=200:1800, Y=10:960 on Chip 1 and X=200:1800, Y=320:1020 on Chip 2.
*   1 pix = 0.25".

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

C  Declarations for '1340-301.dat'	! dw1340-30 VI chip 1 photometric catalog

      integer*4 nr__4
      parameter (nr__4=2618)	! Number of records
      character*79 ar__4  	! Full-size record

      integer*4     ID_3       (nr__4) ! Star identification number
      real*8        Xpos_3     (nr__4) ! (pix) X position on the cropped chip (1)
      real*8        Ypos_3     (nr__4) ! (pix) Y position on the cropped chip (1)
      real*8        Vmag_3     (nr__4) ! (mag) ?=99.9999 V band magnitude with zeropoint=25mag
      real*4        e_Vmag_3   (nr__4) ! (mag) ?=9.9999 V band magnitude error
      real*8        Imag_3     (nr__4) ! (mag) ?=99.9999 I band magnitude with zeropoint=25mag
      real*4        e_Imag_3   (nr__4) ! (mag) ?=9.9999  I band magnitude error
      real*8        Chi_3      (nr__4) ! ?=99.9999 CHI value
      real*8        Sharp_3    (nr__4) ! ?=9.9999 Sharpness value
*Note (1): The cropping was performed with IRAFs imcopy command with
*   X=200:1800, Y=10:960 on Chip 1 and X=200:1800, Y=320:1020 on Chip 2.
*   1 pix = 0.25".

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

C  Declarations for '1340-302.dat'	! dw1340-30 VI chip 2 photometric catalog

      integer*4 nr__5
      parameter (nr__5=2224)	! Number of records
      character*79 ar__5  	! Full-size record

      integer*4     ID_4       (nr__5) ! Star identification number
      real*8        Xpos_4     (nr__5) ! (pix) X position on the cropped chip (1)
      real*8        Ypos_4     (nr__5) ! (pix) Y position on the cropped chip (1)
      real*8        Vmag_4     (nr__5) ! (mag) ?=99.9999 V band magnitude with zeropoint=25mag
      real*4        e_Vmag_4   (nr__5) ! (mag) ?=9.9999 V band magnitude error
      real*8        Imag_4     (nr__5) ! (mag) ?=99.9999 I band magnitude with zeropoint=25mag
      real*4        e_Imag_4   (nr__5) ! (mag) ?=9.9999  I band magnitude error
      real*8        Chi_4      (nr__5) ! ?=99.9999 CHI value
      real*8        Sharp_4    (nr__5) ! ?=9.9999 Sharpness value
*Note (1): The cropping was performed with IRAFs imcopy command with
*   X=200:1800, Y=10:960 on Chip 1 and X=200:1800, Y=320:1020 on Chip 2.
*   1 pix = 0.25".

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

C  Loading file 'table1.dat'	! Observation summary for the three dwarf galaxy
*                                 candidates

C  Format for file interpretation

    1 format(
     +  A9,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,A14,1X,A5,1X,A6,
     +  1X,A1,1X,F4.2,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,8
        read(1,'(A71)')ar__
        read(ar__,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Date(i__),Inst(i__),TExp(i__),Filter(i__),
     +  Airmass(i__),Qimg(i__)
        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,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Date(i__),Inst(i__),TExp(i__),Filter(i__),
     +  Airmass(i__),Qimg(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file '1325-301.dat'	! dw1325-30 VI chip 1 photometric catalog

C  Format for file interpretation

    2 format(
     +  I7,1X,F8.3,2X,F7.3,2X,F7.4,3X,F6.4,2X,F7.4,3X,F6.4,2X,F7.4,2X,
     +  F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'1325-301.dat')
      write(6,*) '....Loading file: 1325-301.dat'
      do i__=1,1955
        read(1,'(A79)')ar__1
        read(ar__1,2)
     +  ID(i__),Xpos(i__),Ypos(i__),Vmag(i__),e_Vmag(i__),Imag(i__),
     +  e_Imag(i__),Chi(i__),Sharp(i__)
c    ..............Just test output...........
        write(6,2)
     +  ID(i__),Xpos(i__),Ypos(i__),Vmag(i__),e_Vmag(i__),Imag(i__),
     +  e_Imag(i__),Chi(i__),Sharp(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file '1335-291.dat'	! dw1335-29 VI chip 1 photometric catalog

C  Format for file interpretation

    3 format(
     +  I7,1X,F8.3,2X,F7.3,2X,F7.4,3X,F6.4,2X,F7.4,3X,F6.4,2X,F7.4,2X,
     +  F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'1335-291.dat')
      write(6,*) '....Loading file: 1335-291.dat'
      do i__=1,2624
        read(1,'(A79)')ar__2
        read(ar__2,3)
     +  ID_1(i__),Xpos_1(i__),Ypos_1(i__),Vmag_1(i__),e_Vmag_1(i__),
     +  Imag_1(i__),e_Imag_1(i__),Chi_1(i__),Sharp_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  ID_1(i__),Xpos_1(i__),Ypos_1(i__),Vmag_1(i__),e_Vmag_1(i__),
     +  Imag_1(i__),e_Imag_1(i__),Chi_1(i__),Sharp_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file '1335-292.dat'	! dw1335-29 VI chip 2 photometric catalog

C  Format for file interpretation

    4 format(
     +  I7,1X,F8.3,2X,F7.3,2X,F7.4,3X,F6.4,2X,F7.4,3X,F6.4,2X,F7.4,2X,
     +  F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'1335-292.dat')
      write(6,*) '....Loading file: 1335-292.dat'
      do i__=1,1578
        read(1,'(A79)')ar__3
        read(ar__3,4)
     +  ID_2(i__),Xpos_2(i__),Ypos_2(i__),Vmag_2(i__),e_Vmag_2(i__),
     +  Imag_2(i__),e_Imag_2(i__),Chi_2(i__),Sharp_2(i__)
c    ..............Just test output...........
        write(6,4)
     +  ID_2(i__),Xpos_2(i__),Ypos_2(i__),Vmag_2(i__),e_Vmag_2(i__),
     +  Imag_2(i__),e_Imag_2(i__),Chi_2(i__),Sharp_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file '1340-301.dat'	! dw1340-30 VI chip 1 photometric catalog

C  Format for file interpretation

    5 format(
     +  I7,1X,F8.3,2X,F7.3,2X,F7.4,3X,F6.4,2X,F7.4,3X,F6.4,2X,F7.4,2X,
     +  F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'1340-301.dat')
      write(6,*) '....Loading file: 1340-301.dat'
      do i__=1,2618
        read(1,'(A79)')ar__4
        read(ar__4,5)
     +  ID_3(i__),Xpos_3(i__),Ypos_3(i__),Vmag_3(i__),e_Vmag_3(i__),
     +  Imag_3(i__),e_Imag_3(i__),Chi_3(i__),Sharp_3(i__)
c    ..............Just test output...........
        write(6,5)
     +  ID_3(i__),Xpos_3(i__),Ypos_3(i__),Vmag_3(i__),e_Vmag_3(i__),
     +  Imag_3(i__),e_Imag_3(i__),Chi_3(i__),Sharp_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file '1340-302.dat'	! dw1340-30 VI chip 2 photometric catalog

C  Format for file interpretation

    6 format(
     +  I7,1X,F8.3,2X,F7.3,2X,F7.4,3X,F6.4,2X,F7.4,3X,F6.4,2X,F7.4,2X,
     +  F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'1340-302.dat')
      write(6,*) '....Loading file: 1340-302.dat'
      do i__=1,2224
        read(1,'(A79)')ar__5
        read(ar__5,6)
     +  ID_4(i__),Xpos_4(i__),Ypos_4(i__),Vmag_4(i__),e_Vmag_4(i__),
     +  Imag_4(i__),e_Imag_4(i__),Chi_4(i__),Sharp_4(i__)
c    ..............Just test output...........
        write(6,6)
     +  ID_4(i__),Xpos_4(i__),Ypos_4(i__),Vmag_4(i__),e_Vmag_4(i__),
     +  Imag_4(i__),e_Imag_4(i__),Chi_4(i__),Sharp_4(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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