prophys.io#
Reading measurement records into prophys objects.
Turns the formats study data arrives in (a CSV of laboratory results with
non detects, a wind rose, a GeoTIFF of terrain, a NetCDF reanalysis extract)
into the objects the rest of the package consumes. See
prophys.io.tabular for the readers.
The CSV, table and wind rose readers need nothing beyond NumPy. The raster
and NetCDF readers need the geo extra and say so when it is missing.
Classes
One parsed column of a table: its values, unit and which entries are missing or censored. |
Functions
Read numeric columns out of a delimited text file. |
|
Parse rows held in memory into columns, the counterpart of |
|
Read one column of a CSV file as an Observations record ready to fit. |
|
Read a directional climatology (wind rose, wave rose) from a CSV file. |
|
Build a DirectionalMixture climatology from a wind rose read by |
|
Build a kernel density Empirical distribution over a column's measured values. |
|
Read a GeoTIFF (or any raster GDAL can read) into a Field. |
|
Read one variable out of a NetCDF file as a NumPy array. |
Constants and objects
Strings a CSV field may hold to mean "not measured". |
|
Prefixes marking a left-censored ("below detection limit") record, as analytical laboratories conventionally write them. |
|
|
Prefixes marking a right-censored ("above the measuring range") record, e.g. |