obspy.io.css.station._write_css
- _write_css(inventory, basename)[source]
Writes an inventory object to a CSS database.
The
Inventory,Network,Station, andChannelobjects are included in the resulting database. AnyCommentobjects are only saved for the network. AnyResponseobjects are not saved. For fields that are saved, most of the important information is used, but any extra metadata that cannot be represented in CSS will be lost.Note
Because CSS stores data in multiple files, you cannot write to a file-like object. You should specify the basename of the CSS database only.
Warning
This function should NOT be called directly, it registers via the the
write()method of an ObsPyInventoryobject, call this instead.- Parameters:
inventory (
Inventory) – The inventory instance to be written.basename (str) –
The base name of the files to be written. This export format currently writes to the following files (“relations” in CSS terms):
basename.affiliationClusters seismic stations into networks.
basename.networkDescribes general information about seismic networks.
basename.siteContains site names and locations on the Earth where seismic measurements are made.
basename.sitechanDescribes the orientation of recording channels at a site.
basename.remarkStores free-form comments that embellish records of other relations.