LSSTApplications
17.0+11,17.0+34,17.0+56,17.0+57,17.0+59,17.0+7,17.0-1-g377950a+33,17.0.1-1-g114240f+2,17.0.1-1-g4d4fbc4+28,17.0.1-1-g55520dc+49,17.0.1-1-g5f4ed7e+52,17.0.1-1-g6dd7d69+17,17.0.1-1-g8de6c91+11,17.0.1-1-gb9095d2+7,17.0.1-1-ge9fec5e+5,17.0.1-1-gf4e0155+55,17.0.1-1-gfc65f5f+50,17.0.1-1-gfc6fb1f+20,17.0.1-10-g87f9f3f+1,17.0.1-11-ge9de802+16,17.0.1-16-ga14f7d5c+4,17.0.1-17-gc79d625+1,17.0.1-17-gdae4c4a+8,17.0.1-2-g26618f5+29,17.0.1-2-g54f2ebc+9,17.0.1-2-gf403422+1,17.0.1-20-g2ca2f74+6,17.0.1-23-gf3eadeb7+1,17.0.1-3-g7e86b59+39,17.0.1-3-gb5ca14a,17.0.1-3-gd08d533+40,17.0.1-30-g596af8797,17.0.1-4-g59d126d+4,17.0.1-4-gc69c472+5,17.0.1-6-g5afd9b9+4,17.0.1-7-g35889ee+1,17.0.1-7-gc7c8782+18,17.0.1-9-gc4bbfb2+3,w.2019.22
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 | readPafStorage (butlerLocation) |
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 510 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 767 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 556 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 822 of file posixStorage.py.
def lsst.daf.persistence.posixStorage.readPafStorage | ( | butlerLocation | ) |
Read a policy from a PAF 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 867 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 639 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 716 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 889 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 539 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 801 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 613 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 838 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 679 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 749 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 698 of file posixStorage.py.