## calculate ZHR for observations of 1997 Perseids, time period
## 27th July to 16th August, radiant elevation higher than 20 degrees,
## total correction factor smaller than 5, bin size 1 degree, population index 2.2
## First select rate data for Perseids activity - time period 15th July to 24th August,
## radiant elevation higher than 20 degrees, total correction factor smaller than 5
## data(rate97)
## rate<-filter(rate97,year=1997,month.beg=7,month.end=8,day.beg=27,day.end=16,
## shw="PER",h.low=20)
## zhr(rate,year=1997,month.beg=7,month.end=8,day.beg=27,day.end=16,
## shw="PER",r=2.2,k1=1,num=300)
## make graphic of ZHR
## x-axis limits: min(sollong)=124.549, max(sollong)=144.110
## y-axis limits: min(ZHR-st.err)=5.1,max(ZHR+st.err)=68.6
## zhr(rate,year=1997,month.beg=7,month.end=8,day.beg=27,day.end=16,shw="PER",r=2.2,
## k1=1,num=300,add.plot=TRUE,xlim1=124,xlim2=145,xinc=1,ylim1=5,ylim2=70,yinc=5)
## calculate ZHR around maximum activity of 1997 Perseids, time period 10th August 19h
## to 14th August 7h, radiant elevation higher than 20 degrees, total correction
## factor smaller than 5 and population index calculated from magnitude data
## data(magn97)
## magn<-filter(magn97,year=1997,month.beg=7,month.end=8,day.beg=15,day.end=24,
## shw="PER",h.low=20)
## zhr(rate,year=1997,month.beg=8,day.beg=10,day.end=14,time.beg=1900,time.end=700,
## shw="PER",data2=magn,num=300)
## make graphic of ZHR around max activity of 1997 Perseids
## x-axis limits: min(sollong)=138.252, max(sollong)=141.471
## y-axis limits: min(ZHR-st.err)=24.7,max(ZHR+st.err)=141.4
## zhr(rate,year=1997,month.beg=8,day.beg=10,day.end=14,time.beg=1900,time.end=700,
## shw="PER",data2=magn,num=300,add.plot=TRUE,xlim1=138.2,xlim2=141.5,xinc=0.1,
## ylim1=20,ylim2=150,yinc=10)
Run the code above in your browser using DataLab