Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/474/495 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 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/474/495 X-ray flares from Cygnus OB2 young stars (Albacete Colombo+, 2007) *================================================================================ *X-ray flaring from the young stars in Cygnus OB2. * Albacete Colombo J.F., Caramazza M., Flaccomio E., Micela G., Sciortino S. * <Astron. Astrophys., 474, 495-504 (2007)> * =2007A&A...474..495A C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! X-ray properties of flaring sources in the Cygnus OB2 region. integer*4 nr__ parameter (nr__=147) ! Number of records character*84 ar__ ! Full-size record integer*4 v_AFM2007_ ! Source number according to Albacete Colombo * et al. (2007, Cat. <J/A+A/464/211>) character*16 v2MASSJ ! Name of the 2MASS counterpart * (HHMMSSss+DDMMSSs) real*4 Mass ! (solMass) ?=- Mass of star from Albacete Colombo et al. * (2007, Cat. <J/A+A/464/211>) integer*4 Phot ! (ct) Net detected photon from Albacete Colombo * et al. (2007, Cat. <J/A+A/464/211>) real*4 Ex ! (keV) Median photon energy from Albacete Colombo * et al. (2007, Cat. <J/A+A/464/211>) real*4 logLX ! ([10-7W]) X-ray luminosity from Albacete Colombo et al. * (2007, Cat. <J/A+A/464/211>) real*4 logPKS ! ([-]) Logarithm of the KS-test significance (1) real*4 CR ! (ct/ks) Count rate of the characteristic level * from MLB analysis real*4 Tflr ! (s) Flare duration from MLB analysis real*4 LXpeak ! ([10-7W]) Unabsorbed LX at the flare peak was computed * using CF, from MLB analysis real*4 Eflr ! (keV) Flare energy from MLB analysis real*4 tau_m ! (h) Measure of the flare's decay time, Efit/Lmax, * from MLB analysis real*4 tau_f ! (h) ?=- Fitted decay time of flare * from MLB analysis *Note (1): Logarithm of the KS-test significance with values <-4 truncated * at that value: sources with log(P_KS_)<-3.0 can be considered almost * definitively variable as we expect at most one of the 1003 sources * (i.e. 0.1%) to be erroneously classified as variable. C============================================================================= C Loading file 'table1.dat' ! X-ray properties of flaring sources in the * Cygnus OB2 region. C Format for file interpretation 1 format( + I3,1X,A16,1X,F5.2,1X,I3,1X,F4.2,1X,F5.2,1X,F5.2,1X,F6.3,1X, + F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,147 read(1,'(A84)')ar__ read(ar__,1) + v_AFM2007_,v2MASSJ,Mass,Phot,Ex,logLX,logPKS,CR,Tflr,LXpeak, + Eflr,tau_m,tau_f if (idig(ar__(22:26)).EQ.0) Mass = rNULL__ if (idig(ar__(80:84)).EQ.0) tau_f = rNULL__ c ..............Just test output........... write(6,1) + v_AFM2007_,v2MASSJ,Mass,Phot,Ex,logLX,logPKS,CR,Tflr,LXpeak, + Eflr,tau_m,tau_f 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