FORTRAN Generation
(/./ftp/cats/J/AJ/143/140)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/143/140 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-Oct-12
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/AJ/143/140 BEST-II periodic variables in CoRoT LRa02 field. II. (Fruth+, 2012)
*================================================================================
*Improved variable star search in large photometric data sets:
*new  variables in CoRoT field LRa02 detected by BEST II.
*    Fruth T., Kabath P., Cabrera J., Chini R., Csizmadia Sz., Eigmuller P.,
*    Erikson A., Kirste S., Lemke R., Murphy M., Pasternacki T., Rauer H.,
*    Titz-Weider R.
*   <Astron. J., 143, 140 (2012)>
*   =2012AJ....143..140F
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Catalog of variable stars detected in CoRoT
                            field LRa02 after reanalysis of the data set,
                            sorted by internal BEST II identifiers

      integer*4 nr__
      parameter (nr__=331)	! Number of records
      character*155 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*6   Field      (nr__) ! Field name (LRa02a or LRa02b) (1)
      integer*4     BEST       (nr__) ! Internal BEST II identifier
      character*3   f_BEST     (nr__) ! Flag on BEST (c, k, s, ck or cs) (2)
      character*17  v2MASS     (nr__) ! 2MASS identifier (3)
      integer*4     RAh        (nr__) ! (h) [6/6] Hour of Right Ascension (J2000) (4)
      integer*4     RAm        (nr__) ! (min) [47/55] Minute of Right Ascension (J2000) (4)
      real*4        RAs        (nr__) ! (s) Second of Right Ascension (J2000) (4)
      character*1   DE_        (nr__) ! Sign of the Declination (J2000) (4)
      integer*4     DEd        (nr__) ! (deg) [3/6] Degree of Declination (J2000) (4)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of Declination (J2000) (4)
      real*4        DEs        (nr__) ! (arcsec) Arcsecond of Declination (J2000) (4)
      real*4        RBmag      (nr__) ! (mag) [12.1/18.9] Observed magnitude (5)
      real*8        T0         (nr__) ! (d) [34.587/104.975]? Heliocentric Julian Date of
*                                  minimum brightness; HJD-2454400 (6)
      real*8        Per        (nr__) ! (d) [0.07167/41]? Period (6)
      real*8        e_Per      (nr__) ! (d) ? Uncertainty in Per
      real*4        Amp        (nr__) ! (mag) ? Amplitude of variability (6)
      real*4        e_Amp      (nr__) ! (mag) ? Uncertainty in Amp
      real*8        Js         (nr__) ! Stetson's (1996PASP..108..851S) J index
*                                 of variability
      character*7   Type       (nr__) ! Variable type (from B/gcvs) (7)
      character*36  OName      (nr__) ! Other names
*Note (1): As the field of view of CoRoT is slightly larger than BEST II, we
*          split the field into two subfields (called LRa02a and LRa02b,
*          respectively) and pointed at them alternating.
*Note (2): Flag as follows:
*    c = contaminated light curve due to overlapping aperture
*        of neighboring stars;
*    k = known variable (see column "OName" in this table);
*    s = suspected variable.
*Note (3): Of closest 2MASS object within a radius of 2 arcseconds.
*Note (4): Derived by an astrometric match of CCD to USNO-A2 coordinates.
*Note (5): BEST II observes without any filter to maximize the photon yield
*     (the CCD sensitivity peaks at 650nm and is roughly comparable to the
*     Johnson R band).
*Note (6): Derived from the analysis of variance algorithm.
*Note (7): The newly discovered periodic variable stars are classified by
*     the shape, amplitude, and period of their folded light curves
*     according to the scheme used by the General Catalogue of Variable
*     Stars (Cat. B/gcvs). Types of variable are:
*   DSCT = Delta Scuti type (pulsating star);
*   RR   = RR Lyrae type (pulsating star);
*   CEP  = Cepheid variables (pulsating star);
*   EA   = Algol type (detached eclipsing binary);
*   EB   = Beta Lyrae type (semidetached eclipsing binary);
*   EW   = W Ursae Majoris type (contact eclipsing binary);
*   ELL  = Stars having sinusoidal-like light curves and showing eclipses
*          are marked as rotating ellipsoidal variables;
*   SP   = Spotted stars (whose characteristic features are exhibited by
*          some light curves);
*   VAR  = The type of variability could not be determined from the light
*          curve alone. Further observations are needed to constrain the
*          proper physical origin of stellar variability.
*   LP   = Stars that are variable on timescales longer than the
*          observational baseline are classified as long periodic.

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

C  Declarations for 'table4.dat'	! Catalog of periodic variable stars with revised
                            parameters compared to paper I
                            (Kabath et al., 2009, Cat. J/A+A/506/569)

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

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

      character*6   Field_1    (nr__1) ! Field name (LRa02a or LRa02b) (1)
      integer*4     BEST_1     (nr__1) ! Internal BEST II identifier
      character*3   f_BEST_1   (nr__1) ! Flag on BEST (c, k, s, ck or cs) (2)
      character*17  v2MASS_1   (nr__1) ! 2MASS identifier (3)
      integer*4     RAh_1      (nr__1) ! (h) [6/6] Hour of Right Ascension (J2000) (4)
      integer*4     RAm_1      (nr__1) ! (min) [47/55] Minute of Right Ascension (J2000) (4)
      real*4        RAs_1      (nr__1) ! (s) Second of Right Ascension (J2000) (4)
      character*1   DE__1      (nr__1) ! Sign of the Declination (J2000) (4)
      integer*4     DEd_1      (nr__1) ! (deg) [3/6] Degree of Declination (J2000) (4)
      integer*4     DEm_1      (nr__1) ! (arcmin) Arcminute of Declination (J2000) (4)
      real*4        DEs_1      (nr__1) ! (arcsec) Arcsecond of Declination (J2000) (4)
      real*4        RBmag_1    (nr__1) ! (mag) [12.1/18.9] Observed magnitude (5)
      real*8        T0_1       (nr__1) ! (d) [34.587/104.975]? Heliocentric Julian Date of
*                                  minimum brightness; HJD-2454400 (6)
      real*8        Per_1      (nr__1) ! (d) [0.07167/41]? Period (6)
      real*8        e_Per_1    (nr__1) ! (d) ? Uncertainty in Per
      real*4        Amp_1      (nr__1) ! (mag) ? Amplitude of variability (6)
      real*4        e_Amp_1    (nr__1) ! (mag) ? Uncertainty in Amp
      real*8        Js_1       (nr__1) ! Stetson's (1996PASP..108..851S) J index
*                                 of variability
      character*7   Type_1     (nr__1) ! Variable type (from B/gcvs) (7)
      character*36  OName_1    (nr__1) ! Other names
*Note (1): As the field of view of CoRoT is slightly larger than BEST II, we
*          split the field into two subfields (called LRa02a and LRa02b,
*          respectively) and pointed at them alternating.
*Note (2): Flag as follows:
*    c = contaminated light curve due to overlapping aperture
*        of neighboring stars;
*    k = known variable (see column "OName" in this table);
*    s = suspected variable.
*Note (3): Of closest 2MASS object within a radius of 2 arcseconds.
*Note (4): Derived by an astrometric match of CCD to USNO-A2 coordinates.
*Note (5): BEST II observes without any filter to maximize the photon yield
*     (the CCD sensitivity peaks at 650nm and is roughly comparable to the
*     Johnson R band).
*Note (6): Derived from the analysis of variance algorithm.
*Note (7): The newly discovered periodic variable stars are classified by
*     the shape, amplitude, and period of their folded light curves
*     according to the scheme used by the General Catalogue of Variable
*     Stars (Cat. B/gcvs). Types of variable are:
*   DSCT = Delta Scuti type (pulsating star);
*   RR   = RR Lyrae type (pulsating star);
*   CEP  = Cepheid variables (pulsating star);
*   EA   = Algol type (detached eclipsing binary);
*   EB   = Beta Lyrae type (semidetached eclipsing binary);
*   EW   = W Ursae Majoris type (contact eclipsing binary);
*   ELL  = Stars having sinusoidal-like light curves and showing eclipses
*          are marked as rotating ellipsoidal variables;
*   SP   = Spotted stars (whose characteristic features are exhibited by
*          some light curves);
*   VAR  = The type of variability could not be determined from the light
*          curve alone. Further observations are needed to constrain the
*          proper physical origin of stellar variability.
*   LP   = Stars that are variable on timescales longer than the
*          observational baseline are classified as long periodic.

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

C  Loading file 'table3.dat'	! Catalog of variable stars detected in CoRoT
*                            field LRa02 after reanalysis of the data set,
*                            sorted by internal BEST II identifiers

C  Format for file interpretation

    1 format(
     +  A6,1X,I5,1X,A3,1X,A17,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,
     +  F4.1,1X,F5.2,1X,F7.3,1X,F9.6,1X,F8.6,1X,F5.3,1X,F5.3,1X,F7.4,
     +  1X,A7,1X,A36)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,331
        read(1,'(A155)')ar__
        read(ar__,1)
     +  Field(i__),BEST(i__),f_BEST(i__),v2MASS(i__),RAh(i__),
     +  RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),
     +  RBmag(i__),T0(i__),Per(i__),e_Per(i__),Amp(i__),e_Amp(i__),
     +  Js(i__),Type(i__),OName(i__)
        if(ar__(65:71) .EQ. '') T0(i__) = rNULL__
        if(ar__(73:81) .EQ. '') Per(i__) = rNULL__
        if(ar__(83:90) .EQ. '') e_Per(i__) = rNULL__
        if(ar__(92:96) .EQ. '') Amp(i__) = rNULL__
        if(ar__(98:102) .EQ. '') e_Amp(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,1)
     +  Field(i__),BEST(i__),f_BEST(i__),v2MASS(i__),RAh(i__),
     +  RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),DEs(i__),
     +  RBmag(i__),T0(i__),Per(i__),e_Per(i__),Amp(i__),e_Amp(i__),
     +  Js(i__),Type(i__),OName(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 'table4.dat'	! Catalog of periodic variable stars with revised
*                            parameters compared to paper I
*                            (Kabath et al., 2009, Cat. J/A+A/506/569)

C  Format for file interpretation

    2 format(
     +  A6,1X,I5,1X,A3,1X,A17,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,
     +  F4.1,1X,F5.2,1X,F7.3,1X,F9.6,1X,F8.6,1X,F5.3,1X,F5.3,1X,F7.4,
     +  1X,A7,1X,A36)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,17
        read(1,'(A155)')ar__1
        read(ar__1,2)
     +  Field_1(i__),BEST_1(i__),f_BEST_1(i__),v2MASS_1(i__),
     +  RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),DEd_1(i__),
     +  DEm_1(i__),DEs_1(i__),RBmag_1(i__),T0_1(i__),Per_1(i__),
     +  e_Per_1(i__),Amp_1(i__),e_Amp_1(i__),Js_1(i__),Type_1(i__),
     +  OName_1(i__)
        if(ar__1(65:71) .EQ. '') T0_1(i__) = rNULL__
        if(ar__1(73:81) .EQ. '') Per_1(i__) = rNULL__
        if(ar__1(83:90) .EQ. '') e_Per_1(i__) = rNULL__
        if(ar__1(92:96) .EQ. '') Amp_1(i__) = rNULL__
        if(ar__1(98:102) .EQ. '') e_Amp_1(i__) = rNULL__
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  Field_1(i__),BEST_1(i__),f_BEST_1(i__),v2MASS_1(i__),
     +  RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),DEd_1(i__),
     +  DEm_1(i__),DEs_1(i__),RBmag_1(i__),T0_1(i__),Per_1(i__),
     +  e_Per_1(i__),Amp_1(i__),e_Amp_1(i__),Js_1(i__),Type_1(i__),
     +  OName_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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