hydro.legacy.woce¶
Attributes¶
Functions¶
|
|
|
Give the simplest string representation. |
Pad a station or cast identifier out to 5 characters. This is usually |
|
|
|
Simplistic conversion from Fortran format string to C format string. |
|
Return a dictionary of WOCE parameters allowed for Exchange conversion. |
|
|
Return the columns that belong in a WOCE data file. |
|
Return columns and base format for WOCE fixed column data. |
|
Return a new row where all items are less than or equal to column width. |
|
Write WOCE data in fixed width columns. |
|
How to write a Bottle WOCE file. |
|
How to write a CTD WOCE file. |
|
Package Contents¶
- hydro.legacy.woce._UNWRITTEN_COLUMNS = ['EXPOCODE', 'SECT_ID', 'LATITUDE', 'LONGITUDE', 'DEPTH', '_DATETIME'][source]¶
- hydro.legacy.woce.simplest_str(s)[source]¶
Give the simplest string representation.
If a float is almost equivalent to an integer, swap out for the integer.
- Return type:
- hydro.legacy.woce._pad_station_cast(x)[source]¶
Pad a station or cast identifier out to 5 characters. This is usually for use in a file name.
- hydro.legacy.woce.convert_fortran_format_to_c(ffmt)[source]¶
Simplistic conversion from Fortran format string to C format string.
This only operates on F formats.
- Parameters:
ffmt (str)
- hydro.legacy.woce.get_exwoce_params()[source]¶
Return a dictionary of WOCE parameters allowed for Exchange conversion.
- Returns:
{‘PMNEMON’: {‘unit_mnemonic’: ‘WOCE’, ‘range’: [0.0, 10.0], ‘format’: ‘%8.3f’}}
- hydro.legacy.woce.writeable_columns(ds, is_ctd=False)[source]¶
Return the columns that belong in a WOCE data file.
- Parameters:
ds (xarray.Dataset)
- hydro.legacy.woce.columns_and_base_format(dfile, is_ctd=False)[source]¶
Return columns and base format for WOCE fixed column data.
- hydro.legacy.woce.truncate_row(lll)[source]¶
Return a new row where all items are less than or equal to column width.
Warnings will be given for any truncations.
- hydro.legacy.woce.write_data(ds, columns, base_format)[source]¶
Write WOCE data in fixed width columns.
columns and base_format should be obtained from columns_and_base_format()
- hydro.legacy.woce.write_bottle(ds)[source]¶
How to write a Bottle WOCE file.
- Parameters:
ds (xarray.Dataset)
- hydro.legacy.woce.write_ctd(ds)[source]¶
How to write a CTD WOCE file.
- Parameters:
ds (xarray.Dataset)
- hydro.legacy.woce.to_woce(ds)[source]¶
- Parameters:
ds (xarray.Dataset)
- Return type: