stilt.storage.SimulationFiles#

class stilt.storage.SimulationFiles(directory: 'Path', sim_id: 'str') None[source]#

Local paths and output keys for one simulation’s standard outputs.

Parameters

directory

Simulation output directory on the local filesystem.

sim_id

Canonical simulation identifier.

Methods#

clear_empty_footprint_marker([footprint_name])

Remove the empty-footprint marker for one named footprint.

empty_footprint_path([footprint_name])

Return the local path to one named empty-footprint marker.

footprint_path([footprint_name])

Return the local path to one named footprint netCDF file.

key(filename)

Return the canonical output key for a file under this simulation.

key_for(sim_id, filename)

Return the canonical store key for one simulation-relative filename.

key_prefix_for(sim_id)

Return the canonical store prefix for one simulation id.

write_empty_footprint_marker([footprint_name])

Create the empty-footprint marker for one named footprint.

Attributes#

directory

sim_id

error_trajectory_path

Return the local path to the error-trajectory parquet file.

key_prefix

Return this simulation's canonical output-key prefix.

log_path

Return the local path to the simulation log file.

met_dir

Return the local path to the staged meteorology directory.

trajectory_path

Return the local path to the main trajectory parquet file.