mss_dataserver.postprocess.util

General utilities for the postprocessing.

Functions

compute_pgv_krigging(x, y, z[, nlags, …])

Kriging of the pgv data.

contourset_to_shapely(cs)

Convert a matplotlib contourset to shapely data.

event_dir_from_publicid(public_id)

Build the event directory from the public id.

get_supplement_data(public_id, category, …)

Load the data from a supplement file.

get_supplement_map()

Create the dictionary of the supplement data structure.

intensity_to_pgv([intensity])

Compute the pgv and intensity values based on the MSS relationship.

isoformat_tz(utcdatetime)

Convert a obspy UTCDateTime instance to a isoformat string including the UTC Timezone specifier +00:00.

pgv_to_intensity([pgv])

Compute the pgv and intensity values based on the MSS relationship.

read_geojson(filepath)

Read data from a geojson file.

reproject_polygons(df, src_proj, dst_proj)

Reproject the coordinates of shapely polygons.

save_supplement(public_id, df, output_dir, …)

Save a geopandas dataframe to geojson file.

write_geojson_file(geojson_instance, …[, …])

Write a geojson data file.