FORTRAN Generation
(/./ftp/cats/J/A_A/529/A25)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/529/A25 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-16
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/529/A25 Photometry of star clusters in 5 nearby gal.  (Silva-Villa+, 2011)
*================================================================================
*The star cluster - field star connection in nearby spiral galaxies.
*II. Field star and cluster formation histories and their relation.
*    Silva-Villa E., Larsen S.
*   <Astron. Astrophys. 529, A25 (2011)>
*   =2011A&A...529A..25S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table24.dat'	! Journal of the observations and 50% completeness
                            limits for field stars (tables 2 and 4 of the paper)

      integer*4 nr__
      parameter (nr__=9)	! Number of records
      character*74 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     NGC         ! Galaxy NGC number
      integer*4     F           ! Field number
      integer*4     ExpU        ! (s) Exposure time in F336W (U) band
      integer*4     ExpB        ! (s) Exposure time in F435W (B) band
      integer*4     ExpV        ! (s) Exposure time in F555W (V) band
      integer*4     ExpI        ! (s) Exposure time in F814W (I) band
      integer*4     RAh         ! (h) Field right ascension (J2000)
      integer*4     RAm         ! (min) Field right ascension (J2000)
      integer*4     RAs         ! (s) Field right ascension (J2000)
      character*1   DE_         ! Field declination sign (J2000)
      integer*4     DEd         ! (deg) Field declination (J2000)
      integer*4     DEm         ! (arcmin) Field declination (J2000)
      integer*4     DEs         ! (arcsec) Field declination (J2000)
      character*10  Date        ! ("YYYY.MM.DD") Observation date
      real*4        Bmaglim     ! (mag) 50% completeness limit for F435W(B) band
      real*4        Vmaglim     ! (mag) 50% completeness limit for F555W(V) band
      real*4        Imaglim     ! (mag) 50% completeness limit for F814W(I) band

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

C  Declarations for 'ngc45.dat'	! NGC 45 UBVI photometry

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

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

      integer*4     NGC_1       ! Parent Galaxy NGC number
      character*5   Cl          ! Cluster identification, as F_NNN (field-number)
      integer*4     ID          ! ID photometry number
      integer*4     Xpos        ! (pix) X coordinate over ACS
      integer*4     Ypos        ! (pix) Y coordinate over ACS
      integer*4     RAh_1       ! (h) Right ascension (J2000)
      integer*4     RAm_1       ! (min) Right ascension (J2000)
      real*4        RAs_1       ! (s) Right ascension (J2000)
      character*1   DE__1       ! Declination sign (J2000)
      integer*4     DEd_1       ! (deg) Declination (J2000)
      integer*4     DEm_1       ! (arcmin) Declination (J2000)
      real*4        DEs_1       ! (arcsec) Declination (J2000)
      real*4        Umag        ! (mag) ?=0 HST F336W (U-band) magnitude
      real*4        e_Umag      ! (mag) ?=0 U magnitude error
      real*4        Bmag        ! (mag) ?=0 HST F435W (B-band) magnitude
      real*4        e_Bmag      ! (mag) ?=0 B magnitude error
      real*4        Vmag        ! (mag) ?=0 HST F555W (V-band) magnitude
      real*4        e_Vmag      ! (mag) ?=0 V magnitude error
      real*4        Imag        ! (mag) ?=0 I magnitude
      real*4        e_Imag      ! (mag) ?=0 HST F814W (I-band) magnitude error
      real*4        log_age     ! ([yr]) ?=0 Logarithm of clusters age,
*                                  estimated for LMC-like metallicity
      real*4        log_M       ! ([Msun]) ?=0 Logarithm of clusters mass,
*                                  estimated for LMC-like metallicity
      real*4        FWHM_S      ! (pix) FWHM size measured with SExtractor
      real*4        FWHM_I      ! (pix) FWHM size measured with Ishape
      character*4   flag        ! [acpt susp] Flag for accepted and suspected
*                                  objects

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

C  Declarations for 'ngc1313.dat'	! NGC 1313 UBVI photometry

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

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

      integer*4     NGC_2       ! Parent Galaxy NGC number
      character*5   Cl_1        ! Cluster identification, as F_NNN (field-number)
      integer*4     ID_1        ! ID photometry number
      integer*4     Xpos_1      ! (pix) X coordinate over ACS
      integer*4     Ypos_1      ! (pix) Y coordinate over ACS
      integer*4     RAh_2       ! (h) Right ascension (J2000)
      integer*4     RAm_2       ! (min) Right ascension (J2000)
      real*4        RAs_2       ! (s) Right ascension (J2000)
      character*1   DE__2       ! Declination sign (J2000)
      integer*4     DEd_2       ! (deg) Declination (J2000)
      integer*4     DEm_2       ! (arcmin) Declination (J2000)
      real*4        DEs_2       ! (arcsec) Declination (J2000)
      real*4        Umag_1      ! (mag) ?=0 HST F336W (U-band) magnitude
      real*4        e_Umag_1    ! (mag) ?=0 U magnitude error
      real*4        Bmag_1      ! (mag) ?=0 HST F435W (B-band) magnitude
      real*4        e_Bmag_1    ! (mag) ?=0 B magnitude error
      real*4        Vmag_1      ! (mag) ?=0 HST F555W (V-band) magnitude
      real*4        e_Vmag_1    ! (mag) ?=0 V magnitude error
      real*4        Imag_1      ! (mag) ?=0 I magnitude
      real*4        e_Imag_1    ! (mag) ?=0 HST F814W (I-band) magnitude error
      real*4        log_age_1   ! ([yr]) ?=0 Logarithm of clusters age,
*                                  estimated for LMC-like metallicity
      real*4        log_M_1     ! ([Msun]) ?=0 Logarithm of clusters mass,
*                                  estimated for LMC-like metallicity
      real*4        FWHM_S_1    ! (pix) FWHM size measured with SExtractor
      real*4        FWHM_I_1    ! (pix) FWHM size measured with Ishape
      character*4   flag_1      ! [acpt susp] Flag for accepted and suspected
*                                  objects

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

C  Declarations for 'ngc4395.dat'	! NGC 4395 UBVI photometry

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

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

      integer*4     NGC_3       ! Parent Galaxy NGC number
      character*5   Cl_2        ! Cluster identification, as F_NNN (field-number)
      integer*4     ID_2        ! ID photometry number
      integer*4     Xpos_2      ! (pix) X coordinate over ACS
      integer*4     Ypos_2      ! (pix) Y coordinate over ACS
      integer*4     RAh_3       ! (h) Right ascension (J2000)
      integer*4     RAm_3       ! (min) Right ascension (J2000)
      real*4        RAs_3       ! (s) Right ascension (J2000)
      character*1   DE__3       ! Declination sign (J2000)
      integer*4     DEd_3       ! (deg) Declination (J2000)
      integer*4     DEm_3       ! (arcmin) Declination (J2000)
      real*4        DEs_3       ! (arcsec) Declination (J2000)
      real*4        Umag_2      ! (mag) ?=0 HST F336W (U-band) magnitude
      real*4        e_Umag_2    ! (mag) ?=0 U magnitude error
      real*4        Bmag_2      ! (mag) ?=0 HST F435W (B-band) magnitude
      real*4        e_Bmag_2    ! (mag) ?=0 B magnitude error
      real*4        Vmag_2      ! (mag) ?=0 HST F555W (V-band) magnitude
      real*4        e_Vmag_2    ! (mag) ?=0 V magnitude error
      real*4        Imag_2      ! (mag) ?=0 I magnitude
      real*4        e_Imag_2    ! (mag) ?=0 HST F814W (I-band) magnitude error
      real*4        log_age_1   ! ([yr]) ?=0 Logarithm of clusters age,
*                                  estimated for LMC-like metallicity
      real*4        log_M_1     ! ([Msun]) ?=0 Logarithm of clusters mass,
*                                  estimated for LMC-like metallicity
      real*4        FWHM_S_2    ! (pix) FWHM size measured with SExtractor
      real*4        FWHM_I_2    ! (pix) FWHM size measured with Ishape
      character*4   flag_2      ! [acpt susp] Flag for accepted and suspected
*                                  objects

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

C  Declarations for 'ngc5236.dat'	! NGC 5236 UBVI photometry

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

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

      integer*4     NGC_4       ! Parent Galaxy NGC number
      character*5   Cl_3        ! Cluster identification, as F_NNN (field-number)
      integer*4     ID_3        ! ID photometry number
      integer*4     Xpos_3      ! (pix) X coordinate over ACS
      integer*4     Ypos_3      ! (pix) Y coordinate over ACS
      integer*4     RAh_4       ! (h) Right ascension (J2000)
      integer*4     RAm_4       ! (min) Right ascension (J2000)
      real*4        RAs_4       ! (s) Right ascension (J2000)
      character*1   DE__4       ! Declination sign (J2000)
      integer*4     DEd_4       ! (deg) Declination (J2000)
      integer*4     DEm_4       ! (arcmin) Declination (J2000)
      real*4        DEs_4       ! (arcsec) Declination (J2000)
      real*4        Umag_3      ! (mag) ?=0 HST F336W (U-band) magnitude
      real*4        e_Umag_3    ! (mag) ?=0 U magnitude error
      real*4        Bmag_3      ! (mag) ?=0 HST F435W (B-band) magnitude
      real*4        e_Bmag_3    ! (mag) ?=0 B magnitude error
      real*4        Vmag_3      ! (mag) ?=0 HST F555W (V-band) magnitude
      real*4        e_Vmag_3    ! (mag) ?=0 V magnitude error
      real*4        Imag_3      ! (mag) ?=0 I magnitude
      real*4        e_Imag_3    ! (mag) ?=0 HST F814W (I-band) magnitude error
      real*4        log_age_1   ! ([yr]) ?=0 Logarithm of clusters age,
*                                  estimated for LMC-like metallicity
      real*4        log_M_1     ! ([Msun]) ?=0 Logarithm of clusters mass,
*                                  estimated for LMC-like metallicity
      real*4        FWHM_S_3    ! (pix) FWHM size measured with SExtractor
      real*4        FWHM_I_3    ! (pix) FWHM size measured with Ishape
      character*4   flag_3      ! [acpt susp] Flag for accepted and suspected
*                                  objects

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

C  Declarations for 'ngc7793.dat'	! NGC 7793 UBVI photometry

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

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

      integer*4     NGC_5       ! Parent Galaxy NGC number
      character*5   Cl_4        ! Cluster identification, as F_NNN (field-number)
      integer*4     ID_4        ! ID photometry number
      integer*4     Xpos_4      ! (pix) X coordinate over ACS
      integer*4     Ypos_4      ! (pix) Y coordinate over ACS
      integer*4     RAh_5       ! (h) Right ascension (J2000)
      integer*4     RAm_5       ! (min) Right ascension (J2000)
      real*4        RAs_5       ! (s) Right ascension (J2000)
      character*1   DE__5       ! Declination sign (J2000)
      integer*4     DEd_5       ! (deg) Declination (J2000)
      integer*4     DEm_5       ! (arcmin) Declination (J2000)
      real*4        DEs_5       ! (arcsec) Declination (J2000)
      real*4        Umag_4      ! (mag) ?=0 HST F336W (U-band) magnitude
      real*4        e_Umag_4    ! (mag) ?=0 U magnitude error
      real*4        Bmag_4      ! (mag) ?=0 HST F435W (B-band) magnitude
      real*4        e_Bmag_4    ! (mag) ?=0 B magnitude error
      real*4        Vmag_4      ! (mag) ?=0 HST F555W (V-band) magnitude
      real*4        e_Vmag_4    ! (mag) ?=0 V magnitude error
      real*4        Imag_4      ! (mag) ?=0 I magnitude
      real*4        e_Imag_4    ! (mag) ?=0 HST F814W (I-band) magnitude error
      real*4        log_age_1   ! ([yr]) ?=0 Logarithm of clusters age,
*                                  estimated for LMC-like metallicity
      real*4        log_M_1     ! ([Msun]) ?=0 Logarithm of clusters mass,
*                                  estimated for LMC-like metallicity
      real*4        FWHM_S_4    ! (pix) FWHM size measured with SExtractor
      real*4        FWHM_I_4    ! (pix) FWHM size measured with Ishape
      character*4   flag_4      ! [acpt susp] Flag for accepted and suspected
*                                  objects

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

C  Loading file 'table24.dat'	! Journal of the observations and 50% completeness
*                            limits for field stars (tables 2 and 4 of the paper)

C  Format for file interpretation

    1 format(
     +  3X,I4,1X,I1,1X,I4,1X,I3,1X,I3,1X,I3,1X,I2,1X,I2,1X,I2,1X,A1,
     +  I2,1X,I2,1X,I2,1X,A10,1X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table24.dat')
      write(6,*) '....Loading file: table24.dat'
      do i__=1,9
        read(1,'(A74)')ar__
        read(ar__,1)
     +  NGC,F,ExpU,ExpB,ExpV,ExpI,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Date,
     +  Bmaglim,Vmaglim,Imaglim
        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)
     +  NGC,F,ExpU,ExpB,ExpV,ExpI,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Date,
     +  Bmaglim,Vmaglim,Imaglim
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ngc45.dat'	! NGC 45 UBVI photometry

C  Format for file interpretation

    2 format(
     +  3X,I4,1X,A5,1X,I5,1X,I5,1X,I5,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,
     +  I2,1X,F5.2,2X,F5.2,2X,F5.2,2X,F5.2,3X,F4.2,2X,F5.2,3X,F4.2,2X,
     +  F5.2,2X,F5.2,2X,F5.2,2X,F5.2,F6.2,1X,F5.2,2X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ngc45.dat')
      write(6,*) '....Loading file: ngc45.dat'
      do i__=1,80
        read(1,'(A144)')ar__1
        read(ar__1,2)
     +  NGC_1,Cl,ID,Xpos,Ypos,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
     +  DEs_1,Umag,e_Umag,Bmag,e_Bmag,Vmag,e_Vmag,Imag,e_Imag,log_age,
     +  log_M,FWHM_S,FWHM_I,flag
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  NGC_1,Cl,ID,Xpos,Ypos,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
     +  DEs_1,Umag,e_Umag,Bmag,e_Bmag,Vmag,e_Vmag,Imag,e_Imag,log_age,
     +  log_M,FWHM_S,FWHM_I,flag
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ngc1313.dat'	! NGC 1313 UBVI photometry

C  Format for file interpretation

    3 format(
     +  3X,I4,1X,A5,1X,I5,1X,I5,1X,I5,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,
     +  I2,1X,F5.2,2X,F5.2,2X,F5.2,2X,F5.2,3X,F4.2,2X,F5.2,3X,F4.2,2X,
     +  F5.2,2X,F5.2,2X,F5.2,2X,F5.2,F6.2,1X,F5.2,2X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ngc1313.dat')
      write(6,*) '....Loading file: ngc1313.dat'
      do i__=1,815
        read(1,'(A144)')ar__2
        read(ar__2,3)
     +  NGC_2,Cl_1,ID_1,Xpos_1,Ypos_1,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,
     +  DEm_2,DEs_2,Umag_1,e_Umag_1,Bmag_1,e_Bmag_1,Vmag_1,e_Vmag_1,
     +  Imag_1,e_Imag_1,log_age_1,log_M_1,FWHM_S_1,FWHM_I_1,flag_1
        RAdeg_2 = rNULL__
        DEdeg_2 = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
        if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
        if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
        if(DEd_2 .GE. 0) DEdeg_2=DEd_2
        if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
        if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
        if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c    ..............Just test output...........
        write(6,3)
     +  NGC_2,Cl_1,ID_1,Xpos_1,Ypos_1,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,
     +  DEm_2,DEs_2,Umag_1,e_Umag_1,Bmag_1,e_Bmag_1,Vmag_1,e_Vmag_1,
     +  Imag_1,e_Imag_1,log_age_1,log_M_1,FWHM_S_1,FWHM_I_1,flag_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ngc4395.dat'	! NGC 4395 UBVI photometry

C  Format for file interpretation

    4 format(
     +  3X,I4,1X,A5,1X,I5,1X,I5,1X,I5,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,
     +  I2,1X,F5.2,2X,F5.2,2X,F5.2,2X,F5.2,3X,F4.2,2X,F5.2,3X,F4.2,2X,
     +  F5.2,2X,F5.2,2X,F5.2,2X,F5.2,F6.2,1X,F5.2,2X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ngc4395.dat')
      write(6,*) '....Loading file: ngc4395.dat'
      do i__=1,136
        read(1,'(A144)')ar__3
        read(ar__3,4)
     +  NGC_3,Cl_2,ID_2,Xpos_2,Ypos_2,RAh_3,RAm_3,RAs_3,DE__3,DEd_3,
     +  DEm_3,DEs_3,Umag_2,e_Umag_2,Bmag_2,e_Bmag_2,Vmag_2,e_Vmag_2,
     +  Imag_2,e_Imag_2,log_age_1,log_M_1,FWHM_S_2,FWHM_I_2,flag_2
        RAdeg_3 = rNULL__
        DEdeg_3 = rNULL__
c  Derive coordinates RAdeg_3 and DEdeg_3 from input data
c  (RAdeg_3 and DEdeg_3 are set to rNULL__ when unknown)
        if(RAh_3 .GT. -180) RAdeg_3=RAh_3*15.
        if(RAm_3 .GT. -180) RAdeg_3=RAdeg_3+RAm_3/4.
        if(RAs_3 .GT. -180) RAdeg_3=RAdeg_3+RAs_3/240.
        if(DEd_3 .GE. 0) DEdeg_3=DEd_3
        if(DEm_3 .GE. 0) DEdeg_3=DEdeg_3+DEm_3/60.
        if(DEs_3 .GE. 0) DEdeg_3=DEdeg_3+DEs_3/3600.
        if(DE__3.EQ.'-'.AND.DEdeg_3.GE.0) DEdeg_3=-DEdeg_3
c    ..............Just test output...........
        write(6,4)
     +  NGC_3,Cl_2,ID_2,Xpos_2,Ypos_2,RAh_3,RAm_3,RAs_3,DE__3,DEd_3,
     +  DEm_3,DEs_3,Umag_2,e_Umag_2,Bmag_2,e_Bmag_2,Vmag_2,e_Vmag_2,
     +  Imag_2,e_Imag_2,log_age_1,log_M_1,FWHM_S_2,FWHM_I_2,flag_2
        write(6,'(6H Pos: 2F8.4)') RAdeg_3,DEdeg_3
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ngc5236.dat'	! NGC 5236 UBVI photometry

C  Format for file interpretation

    5 format(
     +  3X,I4,1X,A5,1X,I5,1X,I5,1X,I5,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,
     +  I2,1X,F5.2,2X,F5.2,2X,F5.2,2X,F5.2,3X,F4.2,2X,F5.2,3X,F4.2,2X,
     +  F5.2,2X,F5.2,2X,F5.2,2X,F5.2,F6.2,1X,F5.2,2X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ngc5236.dat')
      write(6,*) '....Loading file: ngc5236.dat'
      do i__=1,1407
        read(1,'(A144)')ar__4
        read(ar__4,5)
     +  NGC_4,Cl_3,ID_3,Xpos_3,Ypos_3,RAh_4,RAm_4,RAs_4,DE__4,DEd_4,
     +  DEm_4,DEs_4,Umag_3,e_Umag_3,Bmag_3,e_Bmag_3,Vmag_3,e_Vmag_3,
     +  Imag_3,e_Imag_3,log_age_1,log_M_1,FWHM_S_3,FWHM_I_3,flag_3
        RAdeg_4 = rNULL__
        DEdeg_4 = rNULL__
c  Derive coordinates RAdeg_4 and DEdeg_4 from input data
c  (RAdeg_4 and DEdeg_4 are set to rNULL__ when unknown)
        if(RAh_4 .GT. -180) RAdeg_4=RAh_4*15.
        if(RAm_4 .GT. -180) RAdeg_4=RAdeg_4+RAm_4/4.
        if(RAs_4 .GT. -180) RAdeg_4=RAdeg_4+RAs_4/240.
        if(DEd_4 .GE. 0) DEdeg_4=DEd_4
        if(DEm_4 .GE. 0) DEdeg_4=DEdeg_4+DEm_4/60.
        if(DEs_4 .GE. 0) DEdeg_4=DEdeg_4+DEs_4/3600.
        if(DE__4.EQ.'-'.AND.DEdeg_4.GE.0) DEdeg_4=-DEdeg_4
c    ..............Just test output...........
        write(6,5)
     +  NGC_4,Cl_3,ID_3,Xpos_3,Ypos_3,RAh_4,RAm_4,RAs_4,DE__4,DEd_4,
     +  DEm_4,DEs_4,Umag_3,e_Umag_3,Bmag_3,e_Bmag_3,Vmag_3,e_Vmag_3,
     +  Imag_3,e_Imag_3,log_age_1,log_M_1,FWHM_S_3,FWHM_I_3,flag_3
        write(6,'(6H Pos: 2F8.4)') RAdeg_4,DEdeg_4
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ngc7793.dat'	! NGC 7793 UBVI photometry

C  Format for file interpretation

    6 format(
     +  3X,I4,1X,A5,1X,I5,1X,I5,1X,I5,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,
     +  I2,1X,F5.2,2X,F5.2,2X,F5.2,2X,F5.2,3X,F4.2,2X,F5.2,3X,F4.2,2X,
     +  F5.2,2X,F5.2,2X,F5.2,2X,F5.2,F6.2,1X,F5.2,2X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ngc7793.dat')
      write(6,*) '....Loading file: ngc7793.dat'
      do i__=1,558
        read(1,'(A144)')ar__5
        read(ar__5,6)
     +  NGC_5,Cl_4,ID_4,Xpos_4,Ypos_4,RAh_5,RAm_5,RAs_5,DE__5,DEd_5,
     +  DEm_5,DEs_5,Umag_4,e_Umag_4,Bmag_4,e_Bmag_4,Vmag_4,e_Vmag_4,
     +  Imag_4,e_Imag_4,log_age_1,log_M_1,FWHM_S_4,FWHM_I_4,flag_4
        RAdeg_5 = rNULL__
        DEdeg_5 = rNULL__
c  Derive coordinates RAdeg_5 and DEdeg_5 from input data
c  (RAdeg_5 and DEdeg_5 are set to rNULL__ when unknown)
        if(RAh_5 .GT. -180) RAdeg_5=RAh_5*15.
        if(RAm_5 .GT. -180) RAdeg_5=RAdeg_5+RAm_5/4.
        if(RAs_5 .GT. -180) RAdeg_5=RAdeg_5+RAs_5/240.
        if(DEd_5 .GE. 0) DEdeg_5=DEd_5
        if(DEm_5 .GE. 0) DEdeg_5=DEdeg_5+DEm_5/60.
        if(DEs_5 .GE. 0) DEdeg_5=DEdeg_5+DEs_5/3600.
        if(DE__5.EQ.'-'.AND.DEdeg_5.GE.0) DEdeg_5=-DEdeg_5
c    ..............Just test output...........
        write(6,6)
     +  NGC_5,Cl_4,ID_4,Xpos_4,Ypos_4,RAh_5,RAm_5,RAs_5,DE__5,DEd_5,
     +  DEm_5,DEs_5,Umag_4,e_Umag_4,Bmag_4,e_Bmag_4,Vmag_4,e_Vmag_4,
     +  Imag_4,e_Imag_4,log_age_1,log_M_1,FWHM_S_4,FWHM_I_4,flag_4
        write(6,'(6H Pos: 2F8.4)') RAdeg_5,DEdeg_5
c    .......End.of.Just test output...........
      end do
      close(1)

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