cdm_reader_mapper.correct_pt#
- cdm_reader_mapper.correct_pt(data, imodel, log_level='INFO', _base='cdm_reader_mapper.metmetpy')[source]#
Apply ICOADS deck specific platform ID corrections.
- Parameters:
data (
pandas.DataFrameorIterable[pd.DataFrame]) – Input dataset.imodel (
str) – Name of internally available data model. e.g. icoads_d300_704log_level (
str) – level of logging information to save. Default: INFO
- Return type:
- Returns:
pandas.DataFrameorIterable[pd.DataFrame]– A pandas.DataFrame or Iterable[pd.DataFrame] with the adjusted data.- Raises:
ValueError – If _correct_pt raises an error during correction. If platform column is not defined in properties file.
TypeError – If data is not a pd.DataFrame or an Iterable[pd.DataFrame]. If data is a pd.Series.