Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/438/521 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-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 (nr__) ! MACHO (FFF.NNNNN.NNNN) name
character*19 DCMC (nr__) ! DCMC (Cat. <II/228>) name
character*14 v2MASS (nr__) ! 2MASS (Cat. <II/246>) name
real*8 RAdeg (nr__) ! (deg) Right ascension, in decimal degrees (J2000)
real*8 DEdeg (nr__) ! (deg) Declination, in decimal degrees (J2000)
real*4 Dist (nr__) ! (arcsec) Positional difference 2MASS-MACHO coordinates
integer*4 RAW (nr__) ! 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 (nr__1) ! MACHO name
real*8 Bmag (nr__1) ! (mag) ?=0 MACHO averaged Kron-Cousins B magnitude
real*4 Ba1 (nr__1) ! (mag) ?=0 B band Fourier coefficient of the
* dominant period
real*4 Bb1 (nr__1) ! (mag) ?=0 B band Fourier coefficient of the
* dominant period
real*4 Ba2 (nr__1) ! (mag) ?=0 B band Fourier coefficient of the
* secondary period
real*4 Bb2 (nr__1) ! (mag) ?=0 B band Fourier coefficient of the
* secondary period
real*8 Bper1 (nr__1) ! (d) ?=0 B band Dominant period
real*8 Bper2 (nr__1) ! (d) ?=0 B band Secondary period
real*8 Bpow1 (nr__1) ! ?=0 B band Power strength of dominant Period
real*8 Bpow2 (nr__1) ! ?=0 B band Power strength of secondary Period
real*4 Bamp (nr__1) ! (mag) ?=0 B band Photometric Amplitude
integer*4 Bq (nr__1) ! [0/4] B band Data quality (1)
integer*4 Bfit (nr__1) ! [0/5] B band Fit quality (2)
integer*4 Bp (nr__1) ! [0/3] B band Detected periodicities (3)
real*8 Rmag (nr__1) ! (mag) ?=0 MACHO averaged Kron-Cousins R magnitude
real*4 Ra1 (nr__1) ! (mag) ?=0 R band Fourier coefficient of the
* dominant period
real*4 Rb1 (nr__1) ! (mag) ?=0 R band Fourier coefficient of the
* dominant period
real*4 Ra2 (nr__1) ! (mag) ?=0 R band Fourier coefficient of the
* secondary period
real*4 Rb2 (nr__1) ! (mag) ?=0 R band Fourier coefficient of the
* secondary period
real*8 Rper1 (nr__1) ! (d) ?=0 R band Dominant period
real*8 Rper2 (nr__1) ! (d) ?=0 R band Secondary period
real*8 Rpow1 (nr__1) ! ?=0 R band Power strength of dominant Period
real*8 Rpow2 (nr__1) ! ?=0 R band Power strength of secondary Period
real*4 Ramp (nr__1) ! (mag) ?=0 R band Photometric Amplitude
integer*4 Rq (nr__1) ! [0/4] R band Data quality (1)
integer*4 Rfit (nr__1) ! [0/5] R band Fit quality (2)
integer*4 Rp (nr__1) ! [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(i__),DCMC(i__),v2MASS(i__),RAdeg(i__),DEdeg(i__),
+ Dist(i__),RAW(i__)
c ..............Just test output...........
write(6,1)
+ MACHO(i__),DCMC(i__),v2MASS(i__),RAdeg(i__),DEdeg(i__),
+ Dist(i__),RAW(i__)
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(i__),Bmag(i__),Ba1(i__),Bb1(i__),Ba2(i__),Bb2(i__),
+ Bper1(i__),Bper2(i__),Bpow1(i__),Bpow2(i__),Bamp(i__),Bq(i__),
+ Bfit(i__),Bp(i__),Rmag(i__),Ra1(i__),Rb1(i__),Ra2(i__),
+ Rb2(i__),Rper1(i__),Rper2(i__),Rpow1(i__),Rpow2(i__),
+ Ramp(i__),Rq(i__),Rfit(i__),Rp(i__)
c ..............Just test output...........
write(6,2)
+ MACHO_1(i__),Bmag(i__),Ba1(i__),Bb1(i__),Ba2(i__),Bb2(i__),
+ Bper1(i__),Bper2(i__),Bpow1(i__),Bpow2(i__),Bamp(i__),Bq(i__),
+ Bfit(i__),Bp(i__),Rmag(i__),Ra1(i__),Rb1(i__),Ra2(i__),
+ Rb2(i__),Rper1(i__),Rper2(i__),Rpow1(i__),Rpow2(i__),
+ Ramp(i__),Rq(i__),Rfit(i__),Rp(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end