Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/112/742 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-20 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/112/742 Search for RR Lyrae Variables (Wetterer+ 1996) *================================================================================ *RR Lyrae variable stars in the CCD/Transit Instrument Survey * Wetterer C.J., McGraw J.T., Hess T.R., Grashuis R. * <Astron. J. 112, 742 (1996)> * =1996AJ....112..742W C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1' ! RR Lyrae final candidate list integer*4 nr__ parameter (nr__=65) ! Number of records character*49 ar__ ! Full-size record C 1987.5 position composed of: RAh RAm RAs DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension 1987.5 real*8 DEdeg ! (deg) Declination 1987.5 C ---------------------------------- ! (position vector(s) in degrees) integer*4 Star ! Star number integer*4 RAh ! (h) Right ascension (1987.5) integer*4 RAm ! (min) Right ascension (1987.5) real*4 RAs ! (s) Right ascension (1987.5) integer*4 DEd ! (deg) Declination (1987.5) integer*4 DEm ! (arcmin) Declination (1987.5) real*4 DEs ! (arcsec) Declination (1987.5) integer*4 o_Bmag ! Total number of B observations integer*4 o_Vmag ! Total number of V observations real*4 E_B_V ! (mag) B-V colour excess character*8 Type ! RR Lyrae type (1) character*2 Note ! [*+- ] Note (2) *Note (1): RRab: type ab RR Lyrae * RRc : type c RR Lyrae * RRab(B): type ab RR Lyrae exhibiting Blazhko effect * SX Phe: SX Phoenices type variable star * W UMa: W Ursa Majoris or other eclipsing variable *Note (2): - : not discovered in search * * : discovered in search * + : discovered in <B-V> < 0.8 limit of first search c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3' ! Original V filter observational data integer*4 nr__1 parameter (nr__1=3242) ! Number of records character*34 ar__1 ! Full-size record integer*4 Star_1 ! Star number as in table1 real*8 HJD ! (d) ? Heliocentric Julian Date (1) real*4 Vmag ! (mag) ? Instrumental V magnitude (2) real*4 e_Vmag ! (mag) ? Error in instrumental V magnitude *Note (1): Before JD 2449000 corresponds to CTI data, while * after JD 2449000 corresponds to Capilla Peak data. *Note (2): Instumental V magnitude of observation. Capilla Peak data has * been transformed to CTI instrumental magnitudes. C============================================================================= C Loading file 'table1' ! RR Lyrae final candidate list C Format for file interpretation 1 format( + I2,1X,I2,1X,I2,1X,F4.1,1X,I2,1X,I2,1X,F4.1,1X,I2,1X,I2,1X, + F5.3,1X,A8,2X,A2) C Effective file loading open(unit=1,status='old',file= +'table1') write(6,*) '....Loading file: table1' do i__=1,65 read(1,'(A49)')ar__ read(ar__,1) + Star,RAh,RAm,RAs,DEd,DEm,DEs,o_Bmag,o_Vmag,E_B_V,Type,Note RAdeg = rNULL__ DEdeg = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh .GT. -180) RAdeg=RAh*15. if(RAm .GT. -180) RAdeg=RAdeg+RAm/4. if(RAs .GT. -180) RAdeg=RAdeg+RAs/240. if(DEd .GE. 0) DEdeg=DEd if(DEm .GE. 0) DEdeg=DEdeg+DEm/60. if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600. c ..............Just test output........... write(6,1) + Star,RAh,RAm,RAs,DEd,DEm,DEs,o_Bmag,o_Vmag,E_B_V,Type,Note write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3' ! Original V filter observational data C Format for file interpretation 2 format(I2,1X,F13.5,3X,F6.3,4X,F5.3) C Effective file loading open(unit=1,status='old',file= +'table3') write(6,*) '....Loading file: table3' do i__=1,3242 read(1,'(A34)')ar__1 read(ar__1,2)Star_1,HJD,Vmag,e_Vmag if(ar__1(4:16) .EQ. '') HJD = rNULL__ if(ar__1(20:25) .EQ. '') Vmag = rNULL__ if(ar__1(30:34) .EQ. '') e_Vmag = rNULL__ c ..............Just test output........... write(6,2)Star_1,HJD,Vmag,e_Vmag c .......End.of.Just test output........... end do close(1) C============================================================================= stop end