Add support for user defined analysis extents

See also #441 #1288 and #709