FORTRAN Generation
(/./ftp/cats/J/A_A/592/A120)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/592/A120 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-20
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/592/A120      Variable stars in NGC 6715           (Figuera Jaimes+, 2016)
*================================================================================
*Many new variable stars discovered in the core of globular cluster NGC 6715
*(M54) with EMCCD observations.
*    Figuera Jaimes R., Bramich D.M., Kains N., Skottfelt J., Jorgensen U.G.,
*    Horne K., Dominik M., Alsubai K.A., Bozza V., Burgdorf M.J.,
*    Calchi Novati S., Ciceri S., D'Ago G., Evans D.F., Galianni P., Gu S.H.,
*    Harpsoe K.B.W, Haugbolle T., Hinse T.C., Hundertmark M., Juncher D.,
*    Kerins E., Korhonen H., Kuffmeier M., Mancini L., Peixinho N., Popovas A.,
*    Rabus M., Rahvar S., Scarpetta G., Schmidt R.W., Snodgrass C.,
*    Southworth J., Starkey D., Street R.A., Surdej J., Tronsgaard R.,
*    Unda-Sanzana E., von Essen C., Wang X. B., Wertz O.,
*    (The MiNDSTEp Consortium)
*    <Astron. Astrophys. 592, A120 (2016)>
*    =2016A&A...592A.120F        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Ephemerides and main characteristics of the variable
                             stars in the field of globular cluster NGC 6715

      integer*4 nr__
      parameter (nr__=85)	! Number of records
      character*121 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)

      character*4   VName       ! Variable star ID (VNNN)
      character*1   Note        ! [a] a: Epochs, periods, mean magnitudes,
*                                   amplitudes, and classifications taken from
*                                   OGLE database
      character*30  OName       ! Previously known ID assigned to the stars (1)
      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)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*8        Epoch       ! (d) ?=- Epoch used (HJD)
      real*8        Per         ! (d) ?=- Period measured in this work unless the
*                                   variable is an OGLE star, in which case
*                                   we use their period
      real*8        e_Per       ! (d) ? rms uncertainty on Per
      real*4        Imag        ! (mag) ?=- Median I magnitude
      character*1   n_Imag      ! [d] d: Peak magnitude
      real*4        Amp_i_z     ! (mag) ?=- Peak-to-peak amplitude in the
*                                   light curve (i'+z')
      integer*4     N           ! Number of epochs
      character*4   Type        ! Classification of the variable
*Note (1): Other names as follows:
*  NNNNN = OGLE identifications of the form OGLE-BLG-RRLYR-NNNNN
*           (Soszynski et al, 2014, Cat. J/AcA/64/177)
*  O16   = variable star was discovered independently by Hamanowicz et al.
*           (2016AcA....66..197H, [arXiv:1605.04906])
*  VCNN  = from Montiel & Mighell, 2010, Cat. J/AJ/140/1500

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

C  Declarations for 'table1.dat'	! Time series I photometry for all the variables
                             studied in this work

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

      character*4   VName_1     ! Variable star ID (VNNN)
      character*1   Filt        ! [I] Observation filter
      real*8        HJD         ! (d) Heliocentric Julian date at mid-exposure
      real*4        mag_s       ! (mag) ?=0 Standard magnitude (I band)
      real*4        mag_i       ! (mag) ?=0 Instrumental magnitude (I band)
      real*4        e_mag_i     ! (mag) ?=0 Magnitude uncertainty (standard or
*                                  instrumental)
      real*8        Fref        ! (s-1) ?=0 Reference flux (I band) (in ADU/s unit) (1)
      real*8        e_Fref      ! (s-1) ?=0 Reference flux uncertainty (in ADU/s unit)
      real*8        DFlux       ! (s-1) Difference flux (I band) (in ADU/s unit) (1)
      real*8        e_DFlux     ! (s-1) Difference flux uncertainty (in ADU/s unit)
      real*4        p           ! 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
*
*           ftot(t)=fref+fdiff(t)/p(t)
*
*     where fref is the reference flux (adu/s), fdiff(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
*
*             mins(t)=17.5-2.5log(ftot(t))
*
*     where mins(t) is the instrumental magnitude of the star at time t.
*     Uncertainties were propagated in the correct analytical fashion.

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

C  Declarations for 'tableb1.dat'	! Cross-identification between the RR Lyrae variables
                             listed by the CVSGGC, the variable star candidates
                             from Montiel & Mighell and the OGLE RR Lyrae stars

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

      character*4   CVSGGC      ! CVSGGC designation (VNNN),
*                                   Clement et al., 2001AJ....122.2587C,
*                                   Cl* NGC 6715 SAW VNNN in Simbad
      character*11  OGLE        ! OGLE designation (RRLYR-NNNNN),
*                                   Soszynski et al., 2014, Cat. J/AcA/64/177,
*                                   OGLE BLG-RRLYR-NNNNN in Simbad
      character*4   VC          ! Montiel designation (VCNN),
*                                   Montiel & Mighell, 2010, Cat. J/AJ/140/1500
*                                   [MM2010] VCNN in Simbad

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

C  Loading file 'table3.dat'	! Ephemerides and main characteristics of the variable
*                             stars in the field of globular cluster NGC 6715

C  Format for file interpretation

    1 format(
     +  A4,A1,1X,A30,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,
     +  F12.4,1X,F12.8,3X,F10.8,1X,F5.2,A1,1X,F4.2,1X,I2,1X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,85
        read(1,'(A121)')ar__
        read(ar__,1)
     +  VName,Note,OName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Epoch,Per,e_Per,
     +  Imag,n_Imag,Amp_i_z,N,Type
        if (idig(ar__(64:75)).EQ.0) Epoch =  rNULL__
        if (idig(ar__(77:88)).EQ.0) Per =  rNULL__
        if(ar__(92:101) .EQ. '') e_Per = rNULL__
        if (idig(ar__(103:107)).EQ.0) Imag =  rNULL__
        if (idig(ar__(110:113)).EQ.0) Amp_i_z =  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,1)
     +  VName,Note,OName,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Epoch,Per,e_Per,
     +  Imag,n_Imag,Amp_i_z,N,Type
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table1.dat'	! Time series I photometry for all the variables
*                             studied in this work

C  Format for file interpretation

    2 format(
     +  A4,1X,A1,1X,F13.5,1X,F6.3,1X,F6.3,1X,F5.3,1X,F11.3,1X,F11.3,
     +  1X,F12.3,1X,F8.3,1X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,3651
        read(1,'(A93)')ar__1
        read(ar__1,2)
     +  VName_1,Filt,HJD,mag_s,mag_i,e_mag_i,Fref,e_Fref,DFlux,
     +  e_DFlux,p
c    ..............Just test output...........
        write(6,2)
     +  VName_1,Filt,HJD,mag_s,mag_i,e_mag_i,Fref,e_Fref,DFlux,
     +  e_DFlux,p
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tableb1.dat'	! Cross-identification between the RR Lyrae variables
*                             listed by the CVSGGC, the variable star candidates
*                             from Montiel & Mighell and the OGLE RR Lyrae stars

C  Format for file interpretation

    3 format(A4,1X,A11,2X,A4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tableb1.dat')
      write(6,*) '....Loading file: tableb1.dat'
      do i__=1,129
        read(1,'(A22)')ar__2
        read(ar__2,3)CVSGGC,OGLE,VC
c    ..............Just test output...........
        write(6,3)CVSGGC,OGLE,VC
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