FORTRAN Generation
(/./ftp/cats/J/MNRAS/424/2722)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/424/2722 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/MNRAS/424/2722    Variable stars in NGC 5024 (M53)         (Bramich+, 2012)
*================================================================================
*Investigation of variable star candidates in the globular cluster
*NGC 5024 (M53).
*    Bramich D.M., Arellano Ferro A., Figuera Jaimes R., Giridhar S.
*   <Mon. Not. R. Astron. Soc., 424, 2722-2732 (2012)>
*   =2012MNRAS.424.2722B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! List of studied stars

      integer*4 nr__
      parameter (nr__=33)	! Number of records
      character*41 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*4   VName      (nr__) ! Variable star Name
      integer*4     RAh        (nr__) ! (h) Simbad Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Simbad Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Simbad Right ascension (J2000)
      character*1   DE_        (nr__) ! Simbad Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Simbad Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Simbad Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Simbad Declination (J2000)
      real*8        Per        (nr__) ! (d) Period
      character*1   n_Per      (nr__) ! [abc*] Reference for period (1)
*Note (1): References for period as follows:
*   a = Arellano Ferro et al., 2011, Cat. J/MNRAS/416/2265
*   b = Period in "Mode 1", Arellano Perro et al., 2011, Cat. J/MNRAS/416/2265
*   * = Dekany & Kovacs, 2009 Cat. J/A+A/507/803
*   c = this paper

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

C  Declarations for 'table2.dat'	! Time series V and I photometry for all the
                             SX Phe and long-period variables in NGC 5024

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

      character*4   VName_1    (nr__1) ! Variable star ID
      character*1   Filter     (nr__1) ! [VI] Observation filter
      real*8        HJD        (nr__1) ! (d) Heliocentric Julian date at mid-exposure
      real*4        magst      (nr__1) ! (mag) Standard magnitude
      real*4        maginst    (nr__1) ! (mag) Instrumental magnitude
      real*4        e_maginst  (nr__1) ! (mag) Magnitude uncertainty (standard or instrumental)
      real*8        Fref       (nr__1) ! (s-1) Reference flux (in ADU/s unit) (1)
      real*4        e_Fref     (nr__1) ! (s-1) Reference flux uncertainty (in ADU/s unit)
      real*8        DFlux      (nr__1) ! (s-1) Difference flux (in ADU/s unit) (1)
      real*8        e_DFlux    (nr__1) ! (s-1) Difference flux uncertainty (in ADU/s unit)
      real*4        p          (nr__1) ! Photometric scale factor (1)
*Note (1): Light curves for each star were constructed by calculating the total
*     flux ftot(t) in adu/s at each epoch t from
*
*           f_tot_(t)=f_ref_+f_diff_(t)/p(t)
*
*     where f_ref_ is the reference flux (adu/s), f_diff_(t) is the
*     differential flux (adu/s) and p(t) is the photometric scalefactor (the
*     integral of the kernel solution)
*
*     Conversion to instrumental magnitudes was achieved using
*
*             m_ins_(t)=25.0-2.5log(f_tot_(t))
*
*     where m_ins_(t) is the instrumental magnitude of the star at time t.
*     Uncertainties were propagated in the correct analytical fashion.

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

C  Loading file 'stars.dat'	! List of studied stars

C  Format for file interpretation

    1 format(
     +  A4,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F10.7,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,33
        read(1,'(A41)')ar__
        read(ar__,1)
     +  VName(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Per(i__),n_Per(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)
     +  VName(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Per(i__),n_Per(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 'table2.dat'	! Time series V and I photometry for all the
*                             SX Phe and long-period variables in NGC 5024

C  Format for file interpretation

    2 format(
     +  A4,1X,A1,1X,F13.5,1X,F6.3,1X,F6.3,1X,F5.3,1X,F9.3,1X,F5.3,1X,
     +  F9.3,1X,F7.3,1X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,19580
        read(1,'(A81)')ar__1
        read(ar__1,2)
     +  VName_1(i__),Filter(i__),HJD(i__),magst(i__),maginst(i__),
     +  e_maginst(i__),Fref(i__),e_Fref(i__),DFlux(i__),e_DFlux(i__),
     +  p(i__)
c    ..............Just test output...........
        write(6,2)
     +  VName_1(i__),Filter(i__),HJD(i__),magst(i__),maginst(i__),
     +  e_maginst(i__),Fref(i__),e_Fref(i__),DFlux(i__),e_DFlux(i__),
     +  p(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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