erbox doesn't work on the events after removing the data from TM5 and TM7

searches the input images for sources that are brighter than the expected background fluctuations at a given image position.
Post Reply
tatsumikon
Posts: 13
Joined: Wed Feb 09, 2022 6:52 am

erbox doesn't work on the events after removing the data from TM5 and TM7

Post by tatsumikon »

Hello everyone:

When I run "erbox" on the events after removing the data from TM5 and TM7, it doesn't work.



erbox: eSASS4EDR Feb 23 10:30:53 2022
erbox/SORT_IMA: **ERROR3** No detection mask for exposure
At line 844 of file task/erbox/eboxdet_mod.f90
Fortran runtime error: Index '-1' of dimension 1 of array 'detmask%arr' below lower bound of 1

Error termination. Backtrace:
#0 0x55a81eeb076d in ???
#1 0x55a81eeb09a5 in ???
#2 0x55a81eeb0d77 in ???
#3 0x55a81ee19a03 in __eboxdet_MOD_mdetec
at task/erbox/eboxdet_mod.f90:844
#4 0x55a81ee097f9 in erbox
at task/erbox/erbox_main.f90:85
#5 0x55a81ee097f9 in main
at task/erbox/erbox_main.f90:30
MiriamRamos
Posts: 24
Joined: Wed Jun 23, 2021 11:46 am

Re: erbox doesn't work on the events after removing the data from TM5 and TM7

Post by MiriamRamos »

Hi,

The error seems to indicate that you are not providing a detection mask, i.e. by using the "detmasks" option that erbox requires.

Please copy and paste the whole command you are trying to execute so it is easy for us to understand better your problem.

Best wishes,
Miriam
tatsumikon
Posts: 13
Joined: Wed Feb 09, 2022 6:52 am

Re: erbox doesn't work on the events after removing the data from TM5 and TM7

Post by tatsumikon »

Here are the commands:

evtool eventfiles="../fm00_300007_020_EventList_c001.fits" outfile="events_image_300007.fits" image=yes emin=0.5 emax=2.0 region="fk5;circle(128.35,1,2.8)";

radec2xy "events_image_300007.fits" "128.35" "1";

evtool eventfiles="events_image_300007.fits" outfile="events_image_300007.fits" image=yes emin=0.5 emax=2.0 center_position="0 0" telid='1 2 3 4 6';

expmap inputdatasets="events_image_300007.fits" emin=0.5 emax=2.0 templateimage="events_image_300007.fits" mergedmaps="output_expmap_300007.fits";

ermask expimage="output_expmap_300007.fits" detmask="detmask_300007.fits";

erbox images="events_image_300007.fits" boxlist="boxlist_local_300007.fits" emin=500 emax=2000 expimages="output_expmap_300007.fits" detmasks="detmask_300007.fits" bkgima_flag=N ecf=1;
MiriamRamos
Posts: 24
Joined: Wed Jun 23, 2021 11:46 am

Re: erbox doesn't work on the events after removing the data from TM5 and TM7

Post by MiriamRamos »

HI,

At first glance, I see an error: radec2xy does not work on images, but in event files (see https://erosita.mpe.mpg.de/edr/DataAnal ... ub_Point_6). Before creating an image you must recenter your event file.

Best wishes,
Miriam
tatsumikon
Posts: 13
Joined: Wed Feb 09, 2022 6:52 am

Re: erbox doesn't work on the events after removing the data from TM5 and TM7

Post by tatsumikon »

Hi,

Indeed, it worked if adopting all of the TMs.
Post Reply