MongoDB databases for storing references to mosaic image products (at the stack, block and mosaic level).
The databases are backed by the Mo’Astro ImageLog API. Most of the additional methods provided for each database are to preserve backwards compatibility. These subclasses provide additional functionality for storing footprints within a common resampled pixel space.
Database interface for resampled mosaics.
Parameters: | dbname : str
cname : str
server : str
url : str
port : int
|
---|
Create a footprint from the WCS embedded in a astropy.io.fits header for the named (pre-existing) mosaic document.
The footprint is stored under the field footprint in the mosaic’s document.
Parameters: | mosaic_name : str
header : astropy.io.fits.Header instance
|
---|
Create a footprint from the WCS embedded in a astropy.io.fits header for the named (pre-existing) mosaic document.
The footprint is stored under the field footprint in the mosaic’s document.
In a sense, this is an attempt to persist a WCS instance. Note that we only save a subset of the astropy.wcs data; that is, we’re built around simple WCS with no PV, etc. This could be fixed though...
Note
By default astropy.wcs is 1 based (ie, origins of CRPIX are 1 and not zero; may need to subtract 1 from crpix when used in numpy arrays
Parameters: | mosaic_name : str
wcs : astropy.wcs.WCS instance
|
---|
Returns a list of mosaic names (_id) for mosaics overlapping the principal mosaic, and the fractional area of the overlap compared to the area of the principal footprint.
Parameters: | mosaic_name : str
selector : dict
|
---|---|
Returns: | overlaps : list
|
Make a list (or one) ResampledWCS object(s) for footprints given by the selector.
Parameters: | selector : dict
|
---|---|
Returns: | resampled_wcs : list or skyoffset.difftools.ResampledWCS
|