Conversion of standardized ReadMe file for
catalog 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.5, on 2013-May-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__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/AcA/51/175 OGLE-II DIA microlensing events (Wozniak+, 2001)
*================================================================================
*Difference Image Analysis of the OGLE-II bulge data. II. Microlensing events.
* Wozniak P.R., Udalski A., Szymanski M., Kubiak M., Pietrzynski G.,
* Soszynski I., Zebrun K.
* <Acta Astron., 51, 175 (2001)>
* =2001AcA....51..175W
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'crossid.dat' ! DIA-OGLE corresponding numbers
integer*4 nr__
parameter (nr__=520) ! Number of records
character*30 ar__ ! Full-size record
character*4 Field ! Field number (SCNN)
integer*4 DIA ! DIA star number in the field
integer*4 OGLE ! ? OGLE number
real*4 Dist ! (pix) ? Distance between identified positions (1pix=0.4")
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! OGLE-II bulge fields
integer*4 nr__1
parameter (nr__1=49) ! Number of records
character*47 ar__1 ! Full-size record
real*8 RA_ ! (deg) Right Ascension J2000
real*8 Dec ! (deg) Declination J2000
character*4 Field_1 ! Field number (scNN)
integer*4 RAh ! (h) Right ascension (J2000)
integer*4 RAm ! (min) Right ascension (J2000)
real*4 RAs ! (s) Right ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
integer*4 DEs ! (arcsec) Declination (J2000)
real*4 GLON ! (deg) [-12/11] Galactic longitude
real*4 GLAT ! (deg) Galactic latitude
integer*4 Nobs ! Number of observations
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablesa.dat' ! All microlensing events, positions
integer*4 nr__2
parameter (nr__2=520) ! Number of records
character*70 ar__2 ! Full-size record
real*8 RA__1 ! (deg) Right Ascension J2000
real*8 Dec_1 ! (deg) Declination J2000
character*4 Field_2 ! Field designation (scNN)
integer*4 DIA_1 ! DIA star number in the field (1)
real*8 Xpos ! (pix) X position (2)
real*8 Ypos ! (pix) Y position (2)
integer*4 RAh_1 ! (h) Right ascension (J2000)
integer*4 RAm_1 ! (min) Right ascension (J2000)
real*4 RAs_1 ! (s) Right ascension (J2000)
character*1 DE__1 ! Declination sign (J2000)
integer*4 DEd_1 ! (deg) Declination (J2000)
integer*4 DEm_1 ! (arcmin) Declination (J2000)
real*4 DEs_1 ! (arcsec) Declination (J2000)
real*4 Dist1 ! Centroid distance between the variable and
* the nearest object on the reference frame
* detected with DoPhot
real*8 Flux1 ! Flux of the nearest star on the reference frame
real*4 m_OGLE ! (mag) Zero point offset between DIA fluxes and OGLE
* database (varies with X, Y)
* m(OGLE)=m(Zero)-2.5*log(flux)
character*1 Det ! [234] Flag for detection method (3)
*Note (1): Number in the database of candidate variable objects from DIA
*Note (2): 0.0 for the center of the pixel in lower left corner
*Note (3): Method of detection as follows:
* 2 = Microlensing events found in the algorithmic search
* 3 = Microlensing events recovered in the visual search
* 4 = Events recovered by cross identification with the OGLE catalog
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablesb.dat' ! All microlensing events, parameters
integer*4 nr__3
parameter (nr__3=520) ! Number of records
character*68 ar__3 ! Full-size record
character*4 Field_3 ! Field number (scNN)
integer*4 DIA_2 ! DIA star number in the field
real*8 F0 ! Baseline difference flux
real*8 F1 ! Lensed flux
real*8 u0 ! Impact parameter (units of Einstein radius)
real*8 t0 ! (s) Einstein ring crossing time
real*8 tmax ! (d) Moment of maximum light (HJD-2450000)
character*1 l_I0 ! Limit flag on I0
real*4 I0 ! (mag) Baseline I magnitude
real*8 f ! Ratio of the lensed flux to the total baseline flux
C=============================================================================
C Loading file 'crossid.dat' ! DIA-OGLE corresponding numbers
C Format for file interpretation
1 format(A4,4X,I4,4X,I6,3X,F5.3)
C Effective file loading
open(unit=1,file='crossid.dat', status='old')
write(6,*) '....Loading file: crossid.dat'
do i__=1,520
read(1,'(A30)')ar__
read(ar__,1)Field,DIA,OGLE,Dist
if(ar__(17:22) .EQ. '') OGLE = iNULL__
if(ar__(26:30) .EQ. '') Dist = rNULL__
c ..............Just test output...........
write(6,1)Field,DIA,OGLE,Dist
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table1.dat' ! OGLE-II bulge fields
C Format for file interpretation
2 format(
+ 4X,A4,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F6.2,1X,
+ F5.2,2X,I3)
C Effective file loading
open(unit=1,file='table1.dat', status='old')
write(6,*) '....Loading file: table1.dat'
do i__=1,49
read(1,'(A47)')ar__1
read(ar__1,2)
+ Field_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,Nobs
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_ = RAh
if(RAh .GE. 0) RA_=RAh*15.
if(RAm .GE. 0) RA_=RA_+RAm/4.
if(RAs .GE. 0) RA_=RA_+RAs/240.
Dec = DEd
if(DEm .GE. 0) Dec=Dec+DEm/60.
if(DEs .GE. 0) Dec=Dec+DEs/3600.
if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c ..............Just test output...........
write(6,2)
+ Field_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,Nobs
write(6,'(6H Pos: 2F8.4)') RA_,Dec
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablesa.dat' ! All microlensing events, positions
C Format for file interpretation
3 format(
+ A4,1X,I4,1X,F7.2,1X,F7.2,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,
+ 1X,F4.1,1X,F4.2,1X,F7.2,1X,F5.2,1X,A1)
C Effective file loading
open(unit=1,file='tablesa.dat', status='old')
write(6,*) '....Loading file: tablesa.dat'
do i__=1,520
read(1,'(A70)')ar__2
read(ar__2,3)
+ Field_2,DIA_1,Xpos,Ypos,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
+ DEs_1,Dist1,Flux1,m_OGLE,Det
c Derive coordinates RA__1 and Dec_1 from input data
c (RA__1 and Dec_1 are set to rNULL_ when unknown)
RA__1 = RAh_1
if(RAh_1 .GE. 0) RA__1=RAh_1*15.
if(RAm_1 .GE. 0) RA__1=RA__1+RAm_1/4.
if(RAs_1 .GE. 0) RA__1=RA__1+RAs_1/240.
Dec_1 = DEd_1
if(DEm_1 .GE. 0) Dec_1=Dec_1+DEm_1/60.
if(DEs_1 .GE. 0) Dec_1=Dec_1+DEs_1/3600.
if(DE__1.EQ.'-'.AND.Dec_1.GE.0) Dec_1=-Dec_1
c ..............Just test output...........
write(6,3)
+ Field_2,DIA_1,Xpos,Ypos,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
+ DEs_1,Dist1,Flux1,m_OGLE,Det
write(6,'(6H Pos: 2F8.4)') RA__1,Dec_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablesb.dat' ! All microlensing events, parameters
C Format for file interpretation
4 format(
+ A4,1X,I4,1X,F8.2,1X,F8.2,1X,F7.5,1X,F7.2,1X,F7.2,1X,A1,F6.3,
+ 1X,F8.3)
C Effective file loading
open(unit=1,file='tablesb.dat', status='old')
write(6,*) '....Loading file: tablesb.dat'
do i__=1,520
read(1,'(A68)')ar__3
read(ar__3,4)Field_3,DIA_2,F0,F1,u0,t0,tmax,l_I0,I0,f
c ..............Just test output...........
write(6,4)Field_3,DIA_2,F0,F1,u0,t0,tmax,l_I0,I0,f
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end