FORTRAN Generation
(/./ftp/cats/J/A_A/538/A112)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/538/A112 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/538/A112 Planetary transit candidates in CoRoT LRa01 field (Carone+, 2012)
*================================================================================
*Planetary transit candidates in the CoRoT LRa01 field.
*    Carone L., Gandolfi D., Cabrera J., Hatzes A.P., Deeg H.J., Csizmadia SZ.,
*    Paetzold M., Weingrill J., Aigrain S., Alonso R., Alapini A.,
*    Almenara J.-M., Auvergne M., Baglin A., Barge P., Bonomo A.S., Borde P.,
*    Bouchy F., Bruntt H., Carpano S., Cochran W.D., Deleuil M., Diaz R.F.,
*    Dreizler S., Dvorak R., Eisloeffel J., Eigmueller P., Endl M., Erikson A.,
*    Ferraz-Mello S., Fridlund M., Gazzano J.-C., Gibson N., Gillon M.,
*    Gondoin P., Grziwa S., Guenther E.W., Guillot T., Hartmann M., Havel M.,
*    Hebrard G., Jorda L., Kabath P., Leger A., Llebaria A., Lammer H.,
*    Lovis C., MacQueen P.J., Mayor M., Mazeh T., Moutou C., Nortmann L.,
*    Ofir A., Ollivier M., Parviainen H., Pepe F., Pont F., Queloz D., Rabus M.,
*    Rauer H., Regulo C., Renner S., de La Reza R., Rouan D., Santerne A.,
*    Samuel B., Schneider J., Shporer A., Stecklum B., Tal-Or L., Tingley B.,
*    Udry S., Wuchterl G.
*   <Astron. Astrophys., 538, A112 (2012)>
*   =2012A&A...538A.112C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table5.dat'	! CoRoT LRa01 planetary candidates:
                              coordinates and transit parameters

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

C  J2000 position composed of: RAdeg DEdeg
      character*1   St         (nr__) ! [CNGLFXM] Status of candidate (G1)
      integer*4     CoRoT      (nr__) ! CoRoT identification number
      character*2   CCD        (nr__) ! [E1 E2] Window designation (G2)
      integer*4     wId        (nr__) ! Window designation (G2)
      real*8        RAdeg      (nr__) ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        Vmag       (nr__) ! (mag) ? V magnitude (only in table7)
      real*8        Per        (nr__) ! (d) ?=- Period
      real*8        e_Per      (nr__) ! (d) ?=- rms uncertainty in Per
      real*8        Epoch      (nr__) ! (d) Epoch of transit or eclipse (HJD-2454000)
      real*8        e_Epoch    (nr__) ! (d) rms uncertainty in Epoch
      real*4        Dur        (nr__) ! (h) Transit or Eclipse duration
      real*4        Depth      (nr__) ! (%) [0/100] Transit or Eclipse depth

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

C  Declarations for 'table6.dat'	! CoRoT LRa01 planetary candidates: follow-up results

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

      character*1   St_1       (nr__1) ! [CNGLFXM] Status of candidate (G1)
      character*2   CCD_1      (nr__1) ! [E1 E2] Window designation (G2)
      integer*4     wId_1      (nr__1) ! Window designation (G2)
      real*4        Bmag       (nr__1) ! (mag) B magnitude
      real*4        Vmag_1     (nr__1) ! (mag) V magnitude
      real*4        r_mag      (nr__1) ! (mag) r' magnitude
      real*4        i_mag      (nr__1) ! (mag) i' magnitude
      character*11  Cand       (nr__1) ! Candidate nature (3)
      character*35  FUP        (nr__1) ! Follow-up facilities, photometry
      character*37  FUS        (nr__1) ! Follow-up facilities, spectroscopy
*Note (3): Abbreviations used:
*   CEB = Spatially resolved contaminating eclipsing binary system whose light
*         is diluted by the main CoRoT target
*   SB1 = Binary system with one spectroscopically visible stellar component
*   SB2 = Binary system with two spectroscopically visible stellar components
*   SB3 = Triple system with three spectroscopically visible stellar components
* Blend = spatially unresolved eclipsing binary system whose light is diluted by
*         the main CoRoT target

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

C  Declarations for 'notes.dat'	! Individual notes for table6

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

      character*2   CCD_2      (nr__2) ! [E1 E2] Window designation (G2)
      integer*4     wId_2      (nr__2) ! Window designation (G2)
      character*72  Com        (nr__2) ! Comments

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

C  Declarations for 'table7.dat'	! CoRoT eclipsing binary candidates in LRa01

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

C  J2000 position composed of: RAdeg DEdeg
      character*1   St_2       (nr__3) ! [CNGLFXM] Status of candidate (G1)
      integer*4     CoRoT_1    (nr__3) ! CoRoT identification number
      character*2   CCD_3      (nr__3) ! [E1 E2] Window designation (G2)
      integer*4     wId_3      (nr__3) ! Window designation (G2)
      real*8        RAdeg_1    (nr__3) ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_1    (nr__3) ! (deg) Declination in decimal degrees (J2000)
      real*4        Vmag_2     (nr__3) ! (mag) ? V magnitude (only in table7)
      real*8        Per_1      (nr__3) ! (d) ?=- Period
      real*8        e_Per_1    (nr__3) ! (d) ?=- rms uncertainty in Per
      real*8        Epoch_1    (nr__3) ! (d) Epoch of transit or eclipse (HJD-2454000)
      real*8        e_Epoch_1  (nr__3) ! (d) rms uncertainty in Epoch
      real*4        Dur_1      (nr__3) ! (h) Transit or Eclipse duration
      real*4        Depth_1    (nr__3) ! (%) [0/100] Transit or Eclipse depth

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

C  Loading file 'table5.dat'	! CoRoT LRa01 planetary candidates:
*                              coordinates and transit parameters

C  Format for file interpretation

    1 format(
     +  A1,1X,I9,1X,A2,1X,I4,1X,F9.5,1X,F8.5,1X,F6.3,1X,F10.7,1X,F8.6,
     +  1X,F10.6,1X,F8.6,1X,F5.2,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,56
        read(1,'(A98)')ar__
        read(ar__,1)
     +  St(i__),CoRoT(i__),CCD(i__),wId(i__),RAdeg(i__),DEdeg(i__),
     +  Vmag(i__),Per(i__),e_Per(i__),Epoch(i__),e_Epoch(i__),
     +  Dur(i__),Depth(i__)
        if(ar__(40:45) .EQ. '') Vmag(i__) = rNULL__
        if (idig(ar__(47:56)).EQ.0) Per(i__) =  rNULL__
        if (idig(ar__(58:65)).EQ.0) e_Per(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  St(i__),CoRoT(i__),CCD(i__),wId(i__),RAdeg(i__),DEdeg(i__),
     +  Vmag(i__),Per(i__),e_Per(i__),Epoch(i__),e_Epoch(i__),
     +  Dur(i__),Depth(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! CoRoT LRa01 planetary candidates: follow-up results

C  Format for file interpretation

    2 format(
     +  A1,1X,A2,1X,I4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,A11,1X,A35,
     +  2X,A37)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,56
        read(1,'(A124)')ar__1
        read(ar__1,2)
     +  St_1(i__),CCD_1(i__),wId_1(i__),Bmag(i__),Vmag_1(i__),
     +  r_mag(i__),i_mag(i__),Cand(i__),FUP(i__),FUS(i__)
c    ..............Just test output...........
        write(6,2)
     +  St_1(i__),CCD_1(i__),wId_1(i__),Bmag(i__),Vmag_1(i__),
     +  r_mag(i__),i_mag(i__),Cand(i__),FUP(i__),FUS(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes for table6

C  Format for file interpretation

    3 format(A2,1X,I4,1X,A72)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,185
        read(1,'(A80)')ar__2
        read(ar__2,3)CCD_2(i__),wId_2(i__),Com(i__)
c    ..............Just test output...........
        write(6,3)CCD_2(i__),wId_2(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! CoRoT eclipsing binary candidates in LRa01

C  Format for file interpretation

    4 format(
     +  A1,1X,I9,1X,A2,1X,I4,1X,F9.5,1X,F8.5,1X,F6.3,1X,F10.7,1X,F8.6,
     +  1X,F10.6,1X,F8.6,1X,F5.2,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,190
        read(1,'(A98)')ar__3
        read(ar__3,4)
     +  St_2(i__),CoRoT_1(i__),CCD_3(i__),wId_3(i__),RAdeg_1(i__),
     +  DEdeg_1(i__),Vmag_2(i__),Per_1(i__),e_Per_1(i__),Epoch_1(i__),
     +  e_Epoch_1(i__),Dur_1(i__),Depth_1(i__)
        if(ar__3(40:45) .EQ. '') Vmag_2(i__) = rNULL__
        if (idig(ar__3(47:56)).EQ.0) Per_1(i__) =  rNULL__
        if (idig(ar__3(58:65)).EQ.0) e_Per_1(i__) =  rNULL__
c    ..............Just test output...........
        write(6,4)
     +  St_2(i__),CoRoT_1(i__),CCD_3(i__),wId_3(i__),RAdeg_1(i__),
     +  DEdeg_1(i__),Vmag_2(i__),Per_1(i__),e_Per_1(i__),Epoch_1(i__),
     +  e_Epoch_1(i__),Dur_1(i__),Depth_1(i__)
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