Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/135/1350 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/AJ/135/1350 Hot variable stars in NGC 330 (Schmidtke+, 2008) *================================================================================ *Hot variable stars in the SMC cluster NGC 330. * Schmidtke P.C., Chobanian J.B., Cowley A.P. * <Astron. J., 135, 1350-1360 (2008)> * =2008AJ....135.1350S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Sample of stars in NGC 330 integer*4 nr__ parameter (nr__=150) ! Number of records character*74 ar__ ! Full-size record character*5 Name ! Name except for 2 stars (G1) character*18 XID ! Other identification(s) (G1) real*4 Vmag ! (mag) V-band magnitude character*1 r_Vmag ! [d] Origin of Vmag (2) real*4 B_V ! (mag) ?=- B-V color index character*1 r_B_V ! [ed] Origin of B-V (2) integer*4 OGLE ! OGLE II Number SMC-SC7 (<OGLE SMC-SC7 NNNNNN> * in Simbad) character*1 f_OGLE ! [fg] Flag on OGLE (3) real*4 Imag ! (mag) I-band mean magnitude real*4 Isig ! (mag) Standard deviation of the normalized light curve character*11 Notes ! Note(s) on individual sources (4) *Note (2): Flag as follows: * d = From Grebel et al. (1996A&A...311..470G) * e = From Momany et al. (2001A&A...379..436M) *Note (3): Flag as follows: * f = Same as OGLE SMC-SC7 206271 * g = Same as OGLE SMC-SC7 206788 *Note (4): Notes as follows: * 1 = identified as a Be star by one or more authors; * 2 = identified as a {lambda} Eri variable (small-amplitude pulsator) * by Balona (1992MNRAS.256..425B); * 3 = studied by Martayan et al. (2007, Cat. J/A+A/472/577); * 4 = see text for B224 and B317. * stats = Stars with SigI lying along the "non-variable" (lower) edge of * the relation sigI vs Imag were not analyzed for possible periods. * For those stars we only looked at the statistics of their photometry * (the standard deviation), but we made no full analysis for possible * periods. See section 3 for more details. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Photometric periods for stars in NGC 330 integer*4 nr__1 parameter (nr__1=38) ! Number of records character*92 ar__1 ! Full-size record character*5 Name_1 ! Name from Balona, 1992MNRAS.256..425B, except * for 2 stars (G1) character*18 XID_1 ! Other identification(s) (G1) real*4 Imag_1 ! (mag) I-band mean magnitude (1) real*4 Iamp ! (mag) I-band amplitude (1) character*1 f_Per1 ! Flag on Per1 real*8 Per1 ! (d) Photometric period character*1 u_Per1 ! Uncertainty flag on Per1 real*8 Per2 ! (d) ? 2d photometric period character*1 u_Per2 ! Uncertainty flag on Per2 real*4 Per3 ! (d) ? 3d photometric period character*3 Var ! Variable type (NRP, ecl, bur) (2) character*1 f_Var ! [de] Flag on Vartype (3) character*25 Comm ! Comments *Note (1): Imag = approximate mean magnitude; DeltaI = amplitude of sine curve * fit or primary eclipse depth. *Note (2): Variable type as follows: * NRP = Nonradial pulsations; * ecl = eclipses; * bur = outbursts. *Note (3): Flag as follows: * d = Balona (1992MNRAS.256..425B) and/or Sebo & Wood (1994, * Cat. J/AJ/108/932) noted this as an eclipsing binary * e = Alternatively, this source might be eclipsing with double * the period listed C============================================================================= C Loading file 'table1.dat' ! Sample of stars in NGC 330 C Format for file interpretation 1 format( + A5,1X,A18,1X,F5.2,1X,A1,1X,F5.2,1X,A1,1X,I6,A1,1X,F6.3,2X, + F5.3,1X,A11) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,150 read(1,'(A74)')ar__ read(ar__,1) + Name,XID,Vmag,r_Vmag,B_V,r_B_V,OGLE,f_OGLE,Imag,Isig,Notes if (idig(ar__(34:38)).EQ.0) B_V = rNULL__ c ..............Just test output........... write(6,1) + Name,XID,Vmag,r_Vmag,B_V,r_B_V,OGLE,f_OGLE,Imag,Isig,Notes c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Photometric periods for stars in NGC 330 C Format for file interpretation 2 format( + A5,1X,A18,1X,F4.1,1X,F5.3,1X,A1,F7.3,A1,1X,F7.3,A1,1X,F5.3,1X, + A3,1X,A1,1X,A25) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,38 read(1,'(A92)')ar__1 read(ar__1,2) + Name_1,XID_1,Imag_1,Iamp,f_Per1,Per1,u_Per1,Per2,u_Per2,Per3, + Var,f_Var,Comm if(ar__1(47:53) .EQ. '') Per2 = rNULL__ if(ar__1(56:60) .EQ. '') Per3 = rNULL__ c ..............Just test output........... write(6,2) + Name_1,XID_1,Imag_1,Iamp,f_Per1,Per1,u_Per1,Per2,u_Per2,Per3, + Var,f_Var,Comm 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