##calculate ZHR for observations of 1997 Perseids, time period 10th August 19h to
##13th August 7h, radiant elevation higher than 20 degrees, total correction smaller than 5
##select 1997 Perseids, 28th July to 16th August, radiant elevation higher than 20 degrees
## data(rate97)
## rate<-filter(rate97,year=1997,month.beg=7,month.end=8,day.beg=28,day.end=16,
## shw="PER",h.low=20)
## zhr(rate,year=1997,month.beg=8,day.beg=10,day.end=13,time.beg=1900,time.end=700,
## shw="PER",r=2.2,num=300)
##make a graphic of ZHR
##x-axis limits: min(sollong)=138.252, max(sollong)=140.561
##y-axis limits: min(ZHR-st.err)=26.2, max(ZHR+st.err)=144.6
## zhr(rate,year=1997,month.beg=8,day.beg=10,day.end=13,time.beg=1900,time.end=700,
## shw="PER",r=2.2,num=300,add.plot=TRUE,xlim1=138.2,xlim2=140.6,xinc=0.1,
## ylim1=20,ylim2=160,yinc=20)
##calculate ZHR for the same data using population index calculated from
##magnitude data
## data(magn97)
## magn<-filter(magn97,year=1997,month.beg=7,month.end=8,day.beg=28,day.end=16,
## shw="PER",h.low=20)
## zhr(rate,year=1997,month.beg=8,day.beg=10,day.end=13,time.beg=1900,time.end=700,
## shw="PER",num=300,data2=magn)
##make a graphic of ZHR
##x-axis limits: min(sollong)=138.252, max(sollong)=140.561
##y-axis limits: min(ZHR-st.err)=25.4, max(ZHR+1.96*st.err)=141.4
## zhr(rate,year=1997,month.beg=8,day.beg=10,day.end=13,time.beg=1900,time.end=700,
## shw="PER",r=2.2,num=300,data2=magn,add.plot=TRUE,xlim1=138.2,xlim2=140.6,xinc=0.1,
## ylim1=20,ylim2=160,yinc=20)Run the code above in your browser using DataLab