FORTRAN Generation
(/./ftp/cats/J/A_A/438/521)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/438/521 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 2026-Oct-11
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/438/521       SMC C stars B and R light curves         (Raimondo+, 2005)
*================================================================================
*Pulsation properties of C stars in the Small Magellanic Cloud.
*    Raimondo G., Cioni M.-R.L., Rejkuba M., Silva D.R.
*   <Astron. Astrophys., 438, 521-532 (2005)>
*   =2005A&A...438..521R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Cross-identification between the MASTER and MACHO
                             catalogues of our sample of C-stars

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

C  J2000 position composed of: RAdeg DEdeg
      character*14  MACHO       ! MACHO (FFF.NNNNN.NNNN) name
      character*19  DCMC        ! DCMC (Cat. <II/228>) name
      character*14  v2MASS      ! 2MASS (Cat. <II/246>) name
      real*8        RAdeg       ! (deg) Right ascension, in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination, in decimal degrees (J2000)
      real*4        Dist        ! (arcsec) Positional difference 2MASS-MACHO coordinates
      integer*4     RAW         ! Number in the Rebeirot et al. (1993,
*                                   Cat. <J/A+AS/97/603>) catalogue

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

C  Declarations for 'table3.dat'	! Light curves parameters

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

      character*14  MACHO_1     ! MACHO name
      real*8        Bmag        ! (mag) ?=0 MACHO averaged Kron-Cousins B magnitude
      real*4        Ba1         ! (mag) ?=0 B band Fourier coefficient of the 
*                               dominant period
      real*4        Bb1         ! (mag) ?=0 B band Fourier coefficient of the 
*                               dominant period
      real*4        Ba2         ! (mag) ?=0 B band Fourier coefficient of the 
*                               secondary period
      real*4        Bb2         ! (mag) ?=0 B band Fourier coefficient of the 
*                               secondary period
      real*8        Bper1       ! (d) ?=0 B band Dominant period
      real*8        Bper2       ! (d) ?=0 B band Secondary period
      real*8        Bpow1       ! ?=0 B band Power strength of dominant Period
      real*8        Bpow2       ! ?=0 B band Power strength of secondary Period
      real*4        Bamp        ! (mag) ?=0 B band Photometric Amplitude
      integer*4     Bq          ! [0/4] B band Data quality (1)
      integer*4     Bfit        ! [0/5] B band Fit quality (2)
      integer*4     Bp          ! [0/3] B band Detected periodicities (3)
      real*8        Rmag        ! (mag) ?=0 MACHO averaged Kron-Cousins R magnitude
      real*4        Ra1         ! (mag) ?=0 R band Fourier coefficient of the 
*                               dominant period
      real*4        Rb1         ! (mag) ?=0 R band Fourier coefficient of the 
*                               dominant period
      real*4        Ra2         ! (mag) ?=0 R band Fourier coefficient of the 
*                               secondary period
      real*4        Rb2         ! (mag) ?=0 R band Fourier coefficient of the 
*                               secondary period
      real*8        Rper1       ! (d) ?=0 R band Dominant period
      real*8        Rper2       ! (d) ?=0 R band Secondary period
      real*8        Rpow1       ! ?=0 R band Power strength of dominant Period
      real*8        Rpow2       ! ?=0 R band Power strength of secondary Period
      real*4        Ramp        ! (mag) ?=0 R band Photometric Amplitude
      integer*4     Rq          ! [0/4] R band Data quality (1)
      integer*4     Rfit        ! [0/5] R band Fit quality (2)
      integer*4     Rp          ! [0/3] R band Detected periodicities (3)
*Note (1): Data quality flag as follows:
*      0 = excellent
*      1 = good
*      2 = fair
*      3 = noisy or few data
*      4 = no data
*Note (2): Fit quality flag as follows:
*      0 = excellent
*      1 = good
*      2 = fair
*      3 = bad
*      4 = underivable
*      5 = underivable (no data)
*Note (3): Detected periodicities flag as follows:
*      0 = no periodicity
*      1 = 1 period
*      2 = 2 periods
*      3 = 1 period + second period uncertain

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

C  Loading file 'table1.dat'	! Cross-identification between the MASTER and MACHO
*                             catalogues of our sample of C-stars

C  Format for file interpretation

    1 format(A14,2X,A19,2X,A14,4X,F9.6,2X,F10.6,2X,F5.3,2X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1073
        read(1,'(A89)')ar__
        read(ar__,1)MACHO,DCMC,v2MASS,RAdeg,DEdeg,Dist,RAW
c    ..............Just test output...........
        write(6,1)MACHO,DCMC,v2MASS,RAdeg,DEdeg,Dist,RAW
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Light curves parameters

C  Format for file interpretation

    2 format(
     +  A14,1X,F7.3,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F9.3,1X,F9.3,
     +  1X,F7.3,1X,F7.3,1X,F4.2,1X,I1,1X,I1,1X,I1,1X,F7.3,1X,F6.3,1X,
     +  F6.3,1X,F5.3,1X,F5.3,1X,F9.3,1X,F9.3,1X,F7.3,1X,F7.3,1X,F4.2,
     +  1X,I1,1X,I1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,1073
        read(1,'(A176)')ar__1
        read(ar__1,2)
     +  MACHO_1,Bmag,Ba1,Bb1,Ba2,Bb2,Bper1,Bper2,Bpow1,Bpow2,Bamp,Bq,
     +  Bfit,Bp,Rmag,Ra1,Rb1,Ra2,Rb2,Rper1,Rper2,Rpow1,Rpow2,Ramp,Rq,
     +  Rfit,Rp
c    ..............Just test output...........
        write(6,2)
     +  MACHO_1,Bmag,Ba1,Bb1,Ba2,Bb2,Bper1,Bper2,Bpow1,Bpow2,Bamp,Bq,
     +  Bfit,Bp,Rmag,Ra1,Rb1,Ra2,Rb2,Rper1,Rper2,Rpow1,Rpow2,Ramp,Rq,
     +  Rfit,Rp
c    .......End.of.Just test output...........
      end do
      close(1)

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