Index
These CLI tools are used to manage hazard datasets and their metadata.
Please see Hazard dataset overview for context about the hazard datasets themselves.
Import workflow¶
For hazard calculations:
ths_compatto list or maintain compatablity keys (these hopefully rarely change)ths_import producersto ensure latest producer configs are available in THS/resources.ths_import rlzsto extract openquake hazard curves as a parquet dataset.ths_sanity count_rlzsto count realisations in a parquet dataset.
See cli usage for a detailed example of the above.
Migration workflow¶
For migrating from older NSHM_v1.0.* calcuations we use the same Import workflow (see above) , then:
ths_sanity random_rlz_newto compare random hazard curves in AWS DynamodDB with new datasets
Utilities:¶
ths_defragto reorganise and optimise hazard datasets.ths_checkto verify equivalence of two hazard datasetsths_filterto create a subset dataset from a larger one.ths_queryrun simple queries on a hazdard dataset.
History¶
About the the old (DynamoDB/Caching/Localstorage) ways.