subroutine esplinemap 1) If out-of-time events flag is set: Calculate background due to OOT events and subtract from image. 2) Remove source count dependent circular area around EBOXDETECT (local mode) sources which have detection likelihoods greater than a specifiable threshold from the image. 3) If exposure flag is set, divide image by exposure map. 4) Perform spline fit of image, using a user-specifiable number of spline nodes. If detection mask flag is set, only use image regions marked by detection mask. 5) If exposure flag is set, multiply spline image by exposure map. 6) IF rebinned image pixels contain excesses above spline fit THEN remove excesses from image and repeat (2) - (5) a specifiable number of times END IF 7) If out-of-time events flag is set: Add OOT events background to background map. end subroutine esplinemap