LSST Applications
21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
LSST Data Management Base Package
|
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.