polaris.tasks.ocean.analysis.accumulate.stamp_attrs

polaris.tasks.ocean.analysis.accumulate.stamp_attrs(stamp)[source]

Get the global attributes a provenance stamp is written to a file as

The product a step publishes carries the same stamp as the cache behind it, so that a plot says what it was computed from without anyone having to find the cache.

Parameters:

stamp (dict) – The stamp

Returns:

attrs (dict) – The attributes, each prefixed so that reading the stamp back finds exactly what was written