FORTRAN Generation
(/./ftp/cats/J/A_A/536/A60)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/536/A60 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-19
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/536/A60       EROS-2 Long Period Variables in LMC          (Spano+, 2011)
*================================================================================
*Long Period Variables in the Large Magellanic Cloud from the EROS-2 survey.
*    Spano M., Mowlavi N., Eyer L., Burki G., Marquette J.-B., Lecoeur-Taibi I.,
*    Tisserand P.
*   <Astron. Astrophys. 536, A60 (2011)>
*   =2011A&A...536A..60S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Photometric parameters for Long Period Variables

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

C  J2000 position composed of: RAdeg DEdeg
      character*12  EROS2      (nr__) ! EROS-2 source name (lmNNNNaNNNNN)
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000)
      real*4        Remag      (nr__) ! (mag) EROS-2 Re magnitude
      real*4        Be_Re      (nr__) ! (mag) EROS-2 Be-Re color index
      real*4        Ramp       (nr__) ! (mag) EROS-2 Re amplitude
      real*8        Per1       (nr__) ! (d) ?=0.000 First fitted period
      real*8        Per2       (nr__) ! (d) ?=0.000 Second fitted period
      real*8        Per3       (nr__) ! (d) ?=0.000 Third fitted period
      real*8        Per4       (nr__) ! (d) ?=0.000 Fourth fitted period
      real*8        Per5       (nr__) ! (d) ?=0.000 Fifth fitted period
      integer*4     Np         (nr__) ! Total number of periods
      real*8        Jmag       (nr__) ! (mag) ?=999.000 2MASS J magnitude
      real*8        Ksmag      (nr__) ! (mag) ?=999.000 2MASS Ks magnitude
      real*8        v3_6mag    (nr__) ! (mag) ?=999.000 IRAC 3.6 micron band magnitude
      character*11  Type       (nr__) ! Spectral type (1)
      integer*4     Flag       (nr__) ! Note (2)
*Note (1): Spectral type as follows:
*          RGB = red giant branch
*       O-rich = O-rich
*       C-rich = C-rich
*  Extreme_AGB = extreme asymptotic giant branch
*          N/A = not attributed
*Note (2): Flags as follows:
*   0 = No harmonics found between sequences D and E within the five 
*       possible periods
*   1 = Harmonic found between sequences D and E within the five possible periods
*  91 = Star identified as RGB in Tisserand et al. (2009A&A...501..985T)
*  92 = Star identified as DY Per in Tisserand et al. (2009A&A...501..985T)

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

C  Loading file 'table3.dat'	! Photometric parameters for Long Period Variables

C  Format for file interpretation

    1 format(
     +  A12,1X,F8.5,1X,F9.5,1X,F6.3,1X,F5.3,1X,F5.3,1X,F8.3,1X,F8.3,
     +  1X,F8.3,1X,F8.3,1X,F8.3,1X,I1,1X,F7.3,1X,F7.3,1X,F7.3,1X,A11,
     +  1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,43583
        read(1,'(A136)')ar__
        read(ar__,1)
     +  EROS2(i__),RAdeg(i__),DEdeg(i__),Remag(i__),Be_Re(i__),
     +  Ramp(i__),Per1(i__),Per2(i__),Per3(i__),Per4(i__),Per5(i__),
     +  Np(i__),Jmag(i__),Ksmag(i__),v3_6mag(i__),Type(i__),Flag(i__)
c    ..............Just test output...........
        write(6,1)
     +  EROS2(i__),RAdeg(i__),DEdeg(i__),Remag(i__),Be_Re(i__),
     +  Ramp(i__),Per1(i__),Per2(i__),Per3(i__),Per4(i__),Per5(i__),
     +  Np(i__),Jmag(i__),Ksmag(i__),v3_6mag(i__),Type(i__),Flag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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