LSST Applications
21.0.0+75b29a8a7f,21.0.0+e70536a077,21.0.0-1-ga51b5d4+62c747d40b,21.0.0-10-gbfb87ad6+3307648ee3,21.0.0-15-gedb9d5423+47cba9fc36,21.0.0-2-g103fe59+fdf0863a2a,21.0.0-2-g1367e85+d38a93257c,21.0.0-2-g45278ab+e70536a077,21.0.0-2-g5242d73+d38a93257c,21.0.0-2-g7f82c8f+e682ffb718,21.0.0-2-g8dde007+d179fbfa6a,21.0.0-2-g8f08a60+9402881886,21.0.0-2-ga326454+e682ffb718,21.0.0-2-ga63a54e+08647d4b1b,21.0.0-2-gde069b7+26c92b3210,21.0.0-2-gecfae73+0445ed2f95,21.0.0-2-gfc62afb+d38a93257c,21.0.0-27-gbbd0d29+ae871e0f33,21.0.0-28-g5fc5e037+feb0e9397b,21.0.0-3-g21c7a62+f4b9c0ff5c,21.0.0-3-g357aad2+57b0bddf0b,21.0.0-3-g4be5c26+d38a93257c,21.0.0-3-g65f322c+3f454acf5d,21.0.0-3-g7d9da8d+75b29a8a7f,21.0.0-3-gaa929c8+9e4ef6332c,21.0.0-3-ge02ed75+4b120a55c4,21.0.0-4-g3300ddd+e70536a077,21.0.0-4-g591bb35+4b120a55c4,21.0.0-4-gc004bbf+4911b9cd27,21.0.0-4-gccdca77+f94adcd104,21.0.0-4-ge8fba5a+2b3a696ff9,21.0.0-5-gb155db7+2c5429117a,21.0.0-5-gdf36809+637e4641ee,21.0.0-6-g00874e7+c9fd7f7160,21.0.0-6-g4e60332+4b120a55c4,21.0.0-7-gc8ca178+40eb9cf840,21.0.0-8-gfbe0b4b+9e4ef6332c,21.0.0-9-g2fd488a+d83b7cd606,w.2021.05
LSST Data Management Base Package
|
Public Member Functions | |
def | metadata (self) |
def | readMetadata (self) |
def | stripMetadata (self) |
def | readComponent (self, component, parameters=None) |
def | readFull (self, parameters=None) |
def | read (self, component=None) |
def | write (self, inMemoryDataset) |
def | getImageCompressionSettings (self, recipeName) |
def | validateWriteRecipes (cls, recipes) |
Static Public Attributes | |
supportedExtensions = frozenset({".fits", ".fits.gz", ".fits.fz", ".fz", ".fit"}) | |
string | extension = ".fits" |
supportedWriteParameters = frozenset({"recipe"}) | |
dictionary | unsupportedParameters = {} |
Specialisation for `~lsst.afw.image.Image` reading.
Definition at line 421 of file fitsExposure.py.
|
inherited |
Retrieve the relevant compression settings for this recipe. Parameters ---------- recipeName : `str` Label associated with the collection of compression parameters to select. Returns ------- settings : `dict` The selected settings.
Definition at line 304 of file fitsExposure.py.
|
inherited |
The metadata read from this file. It will be stripped as components are extracted from it (`lsst.daf.base.PropertyList`).
Definition at line 95 of file fitsExposure.py.
|
inherited |
Read data from a file. Parameters ---------- component : `str`, optional Component to read from the file. Only used if the `StorageClass` for reading differed from the `StorageClass` used to write the file. Returns ------- inMemoryDataset : `object` The requested data as a Python object. The type of object is controlled by the specific formatter. Raises ------ ValueError Component requested but this file does not seem to be a concrete composite. KeyError Raised when parameters passed with fileDescriptor are not supported.
Definition at line 242 of file fitsExposure.py.
|
inherited |
Read a component held by the Exposure. Parameters ---------- component : `str`, optional Component to read from the file. parameters : `dict`, optional If specified, a dictionary of slicing parameters that overrides those in ``fileDescriptor``. Returns ------- obj : component-dependent In-memory component object. Raises ------ KeyError Raised if the requested component cannot be handled.
Reimplemented in lsst.obs.base._fitsRawFormatterBase.FitsRawFormatterBase.
Definition at line 145 of file fitsExposure.py.
|
inherited |
Read the full Exposure object. Parameters ---------- parameters : `dict`, optional If specified a dictionary of slicing parameters that overrides those in ``fileDescriptor``. Returns ------- exposure : `~lsst.afw.image.Exposure` Complete in-memory exposure.
Reimplemented in lsst.obs.base._fitsRawFormatterBase.FitsRawFormatterBase.
Definition at line 219 of file fitsExposure.py.
|
inherited |
Read all header metadata directly into a PropertyList. Returns ------- metadata : `~lsst.daf.base.PropertyList` Header metadata.
Reimplemented in lsst.obs.decam.rawFormatter.DarkEnergyCameraRawFormatter.
Definition at line 104 of file fitsExposure.py.
|
inherited |
Remove metadata entries that are parsed into components. This is only called when just the metadata is requested; stripping entries there forces code that wants other components to ask for those components directly rather than trying to extract them from the metadata manually, which is fragile. This behavior is an intentional change from Gen2. Parameters ---------- metadata : `~lsst.daf.base.PropertyList` Header metadata, to be modified in-place.
Reimplemented in lsst.obs.base._fitsRawFormatterBase.FitsRawFormatterBase.
Definition at line 116 of file fitsExposure.py.
|
inherited |
Validate supplied recipes for this formatter. The recipes are supplemented with default values where appropriate. TODO: replace this custom validation code with Cerberus (DM-11846) Parameters ---------- recipes : `dict` Recipes to validate. Can be empty dict or `None`. Returns ------- validated : `dict` Validated recipes. Returns what was given if there are no recipes listed. Raises ------ RuntimeError Raised if validation fails.
Definition at line 341 of file fitsExposure.py.
|
inherited |
Write a Python object to a file. Parameters ---------- inMemoryDataset : `object` The Python object to store.
Reimplemented in lsst.obs.base._fitsRawFormatterBase.FitsRawFormatterBase.
Definition at line 280 of file fitsExposure.py.
|
staticinherited |
Definition at line 86 of file fitsExposure.py.
|
staticinherited |
Definition at line 85 of file fitsExposure.py.
|
staticinherited |
Definition at line 88 of file fitsExposure.py.
|
staticinherited |
Definition at line 91 of file fitsExposure.py.