ocmw.dataproc.processModelData module

A set of functions that run a series of processes defined in ocmw_extract to apply standard post-processing to model extract data.

hub_height_data

Extract TEC hub-height data from a timeseries of model profiles extracted at a specific location.

hab_data

Extract data at a specified height-above-bed from a timeseries of model profiles extracted at a specific location.

dbs_data

Extract data at a specified depth-below-surface from a timeseries of model profiles extracted at a specific location.

dav_data

Extract depth-averaged data from a timeseries of model profiles extracted at a specific location.

srf_data

Extract data at the sea surface from a timeseries of model profiles extracted at a specific location.

merge_model_daily_files

Merge daily model extract data into single a file for post-processing.

merge_model_daily_poly_files

Merge daily model data extracted from within a polygon into a single file for post-processing.

Tools for post-processing Open Telemac-Mascaret model data extract to OCMW format.

Chris Old IES, School of Engineering, University of Edinburgh Sep 2023

ocmw.dataproc.processModelData.locDataExists(datapath, filename)[source]

Determine whether a data file exists

Parameters:
  • datapath (str) – Full path to the data file.

  • filename (str) – Name of data file.

Returns:

dataExists (bool) – Flag indicating file existence.

ocmw.dataproc.processModelData.hub_height_data(modelpath, filename, datasrc, dataset, tec, outfile)[source]

Extract TEC hub-height data from a timeseries of model profiles extracted at a specific location.

ocmw.dataproc.processModelData.hab_data(modelpath, filename, datasrc, dataset, z, outfile)[source]

Extract data at a specified height-above-bed from a timeseries of model profiles extracted at a specific location.

ocmw.dataproc.processModelData.dbs_data(modelpath, filename, datasrc, dataset, d, outfile)[source]

Extract data at a specified depth-below-surface from a timeseries of model profiles extracted at a specific location.

ocmw.dataproc.processModelData.dav_data(modelpath, filename, datasrc, dataset, outfile)[source]

Extract depth-averaged data from a timeseries of model profiles extracted at a specific location.

ocmw.dataproc.processModelData.srf_data(modelpath, filename, datasrc, dataset, outfile)[source]

Extract data at the sea surface from a timeseries of model profiles extracted at a specific location.

ocmw.dataproc.processModelData.merge_model_daily_files(datapath, srchstr, outfile)[source]

Merge daily model extract data into single a file for post-processing.

ocmw.dataproc.processModelData.merge_model_daily_poly_files(datapath, srchstr, outfile)[source]

Merge daily model data extracted from within a polygon into a single file for post-processing.