LSSTApplications
19.0.0-14-gb0260a2+72efe9b372,20.0.0+7927753e06,20.0.0+8829bf0056,20.0.0+995114c5d2,20.0.0+b6f4b2abd1,20.0.0+bddc4f4cbe,20.0.0-1-g253301a+8829bf0056,20.0.0-1-g2b7511a+0d71a2d77f,20.0.0-1-g5b95a8c+7461dd0434,20.0.0-12-g321c96ea+23efe4bbff,20.0.0-16-gfab17e72e+fdf35455f6,20.0.0-2-g0070d88+ba3ffc8f0b,20.0.0-2-g4dae9ad+ee58a624b3,20.0.0-2-g61b8584+5d3db074ba,20.0.0-2-gb780d76+d529cf1a41,20.0.0-2-ged6426c+226a441f5f,20.0.0-2-gf072044+8829bf0056,20.0.0-2-gf1f7952+ee58a624b3,20.0.0-20-geae50cf+e37fec0aee,20.0.0-25-g3dcad98+544a109665,20.0.0-25-g5eafb0f+ee58a624b3,20.0.0-27-g64178ef+f1f297b00a,20.0.0-3-g4cc78c6+e0676b0dc8,20.0.0-3-g8f21e14+4fd2c12c9a,20.0.0-3-gbd60e8c+187b78b4b8,20.0.0-3-gbecbe05+48431fa087,20.0.0-38-ge4adf513+a12e1f8e37,20.0.0-4-g97dc21a+544a109665,20.0.0-4-gb4befbc+087873070b,20.0.0-4-gf910f65+5d3db074ba,20.0.0-5-gdfe0fee+199202a608,20.0.0-5-gfbfe500+d529cf1a41,20.0.0-6-g64f541c+d529cf1a41,20.0.0-6-g9a5b7a1+a1cd37312e,20.0.0-68-ga3f3dda+5fca18c6a4,20.0.0-9-g4aef684+e18322736b,w.2020.45
LSSTDataManagementBasePackage
|
Classes | |
class | PosixStorage |
Functions | |
def | readConfigStorage (butlerLocation) |
def | writeConfigStorage (butlerLocation, obj) |
def | readFitsStorage (butlerLocation) |
def | writeFitsStorage (butlerLocation, obj) |
def | readParquetStorage (butlerLocation) |
def | writeParquetStorage (butlerLocation, obj) |
def | writeYamlStorage (butlerLocation, obj) |
def | readPickleStorage (butlerLocation) |
def | writePickleStorage (butlerLocation, obj) |
def | readFitsCatalogStorage (butlerLocation) |
def | writeFitsCatalogStorage (butlerLocation, obj) |
def | readMatplotlibStorage (butlerLocation) |
def | writeMatplotlibStorage (butlerLocation, obj) |
def | readYamlStorage (butlerLocation) |
def lsst.daf.persistence.posixStorage.readConfigStorage | ( | butlerLocation | ) |
Read an lsst.pex.config.Config from a butlerLocation. Parameters ---------- butlerLocation : ButlerLocation The location for the object(s) to be read. Returns ------- A list of objects as described by the butler location. One item for each location in butlerLocation.getLocations()
Definition at line 511 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.readFitsCatalogStorage | ( | butlerLocation | ) |
Read a catalog from a FITS table specified by ButlerLocation. Parameters ---------- butlerLocation : ButlerLocation The location for the object(s) to be read. Returns ------- A list of objects as described by the butler location. One item for each location in butlerLocation.getLocations()
Definition at line 768 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.readFitsStorage | ( | butlerLocation | ) |
Read objects from a FITS file specified by ButlerLocation. The object is read using class or static method ``readFitsWithOptions(path, options)``, if it exists, else ``readFits(path)``. The ``options`` argument is the data returned by ``butlerLocation.getAdditionalData()``. Parameters ---------- butlerLocation : ButlerLocation The location for the object(s) to be read. Returns ------- A list of objects as described by the butler location. One item for each location in butlerLocation.getLocations()
Definition at line 557 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.readMatplotlibStorage | ( | butlerLocation | ) |
Read from a butlerLocation (always fails for this storage type). Parameters ---------- butlerLocation : ButlerLocation The location for the object(s) to be read. Returns ------- A list of objects as described by the butler location. One item for each location in butlerLocation.getLocations()
Definition at line 823 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.readParquetStorage | ( | butlerLocation | ) |
Read a catalog from a Parquet file specified by ButlerLocation. The object returned by this is expected to be a subtype of `ParquetTable`, which is a thin wrapper to `pyarrow.ParquetFile` that allows for lazy loading of the data. Parameters ---------- butlerLocation : ButlerLocation The location for the object(s) to be read. Returns ------- A list of objects as described by the butler location. One item for each location in butlerLocation.getLocations()
Definition at line 640 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.readPickleStorage | ( | butlerLocation | ) |
Read an object from a pickle file specified by ButlerLocation. Parameters ---------- butlerLocation : ButlerLocation The location for the object(s) to be read. Returns ------- A list of objects as described by the butler location. One item for each location in butlerLocation.getLocations()
Definition at line 717 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.readYamlStorage | ( | butlerLocation | ) |
Read an object from a YAML file specified by a butlerLocation. Parameters ---------- butlerLocation : ButlerLocation The location for the object(s) to be read. Returns ------- A list of objects as described by the butler location. One item for each location in butlerLocation.getLocations()
Definition at line 868 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.writeConfigStorage | ( | butlerLocation, | |
obj | |||
) |
Writes an lsst.pex.config.Config object to a location specified by ButlerLocation. Parameters ---------- butlerLocation : ButlerLocation The location for the object to be written. obj : object instance The object to be written.
Definition at line 540 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.writeFitsCatalogStorage | ( | butlerLocation, | |
obj | |||
) |
Writes a catalog to a FITS table specified by ButlerLocation. Parameters ---------- butlerLocation : ButlerLocation The location for the object to be written. obj : object instance The object to be written.
Definition at line 802 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.writeFitsStorage | ( | butlerLocation, | |
obj | |||
) |
Writes an object to a FITS file specified by ButlerLocation. The object is written using method ``writeFitsWithOptions(path, options)``, if it exists, else ``writeFits(path)``. The ``options`` argument is the data returned by ``butlerLocation.getAdditionalData()``. Parameters ---------- butlerLocation : ButlerLocation The location for the object to be written. obj : object instance The object to be written.
Definition at line 614 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.writeMatplotlibStorage | ( | butlerLocation, | |
obj | |||
) |
Writes a matplotlib.figure.Figure to a location, using the template's filename suffix to infer the file format. Parameters ---------- butlerLocation : ButlerLocation The location for the object to be written. obj : matplotlib.figure.Figure The object to be written.
Definition at line 839 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.writeParquetStorage | ( | butlerLocation, | |
obj | |||
) |
Writes pandas dataframe to parquet file. Parameters ---------- butlerLocation : ButlerLocation The location for the object(s) to be read. obj : `lsst.qa.explorer.parquetTable.ParquetTable` Wrapped DataFrame to write.
Definition at line 680 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.writePickleStorage | ( | butlerLocation, | |
obj | |||
) |
Writes an object to a pickle file specified by ButlerLocation. Parameters ---------- butlerLocation : ButlerLocation The location for the object to be written. obj : object instance The object to be written.
Definition at line 750 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.writeYamlStorage | ( | butlerLocation, | |
obj | |||
) |
Writes an object to a YAML file specified by ButlerLocation. Parameters ---------- butlerLocation : ButlerLocation The location for the object to be written. obj : object instance The object to be written.
Definition at line 699 of file posixStorage.py.