Fortran runtime error

searches the input images for sources that are brighter than the expected background fluctuations at a given image position.
Post Reply
zhupeng
Posts: 8
Joined: Sat Oct 08, 2022 7:52 am

Fortran runtime error

Post by zhupeng »

Hello everyone,

When I tried to run the command "erbox images="image_soft.fits image_hard.fits"
boxlist="boxlist_local.fits"
expimages="A3266_soft_expmap.fits A3266_hard_expmap.fits"
detmasks="detmask.fits"
emin="500 2000"
emax="2000 5000"
hrdef="1 2"
ecf="2.0E12 1.0E12"
nruns=3
likemin=6.
boxsize=4
compress_flag="N"
bkgima_flag="N"
expima_flag="Y"
detmask_flag="Y"", I encountered an error:

erbox: eSASS4EDR Mar 29 13:59:57 2023
erbox/SORT_IMA: ERROR3 No detection mask for exposure
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 0x5571928b086d in ???
#1 0x5571928b0aa5 in ???
#2 0x5571928b0e77 in ???
#3 0x557192819b03 in __eboxdet_MOD_mdetec
at task/erbox/eboxdet_mod.f90:844
#4 0x5571928098f9 in erbox
at task/erbox/erbox_main.f90:85
#5 0x5571928098f9 in main
at task/erbox/erbox_main.f90:30

Peng
GeorgLamer
Posts: 2
Joined: Wed Mar 08, 2023 11:01 am

Re: Fortran runtime error

Post by GeorgLamer »

Dear Peng,

the input routines for erbox perform a number of keyword checks to verify that science images,
exposure maps, and detection mask(s) belong to the same observation, instrument, etc.
Please check whether the file "detmask.fits" exists and that it is derived from one of the
exposure exposure maps "A3266_soft_expmap.fits A3266_hard_expmap.fits" using the task "ermask".

Regards,
Georg
Post Reply