setenv SAS_ODF /path_to_my_ODF_directory/my_ODF_directory
setenv SAS_CCF /path_to_my_CIF/ccf.cif
evselect table='pn.evt:EVENTS' imagebinning='binSize' imageset='image.fits' withimageset=yes xcolumn='X' ycolumn='Y' ximagebinsize=80 yimagebinsize=80
imgdisplay withimagefile=true imagefile=image.fits
evselect table='pn.evt:EVENTS' expression='#XMMEA_EP&&(PI>10000)&&(PATTERN==0)' rateset="background_lightcurve.fits" timebinsize=10 withrateset=yes maketimecolumn=yes
tabgtigen table=background_lightcurve.fits expression="COUNTS<15" gtiset=background_gti.fits
evselect table="pn.evt:EVENTS" energycolumn='PI' expression='#XMMEA_EP&&(PATTERN<=4)&>i(background_gti.fits,TIME)&&((X,Y) IN circle(25880,25920,840))' spectrumset=source_spectrum.fits withspectrumset=yes
evselect table="pn.evt:EVENTS" energycolumn='PI' expression='#XMMEA_EP&&(PATTERN<=4)&>i(background_gti.fits,TIME)&&((X,Y) IN circle(22120,23240,840))' spectrumset=background_spectrum.fits withspectrumset=yes
rmfgen spectrumset=source_spectrum.fits rmfset=response.rmf pnline=190
arfgen spectrumset=source_spectrum.fits arfset=ancillary.arf rmfset=response.rmf withrmfset=yes