Cchdo.hydro

Latest version: v1.0.2.8

Safety actively analyzes 623936 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.0.2.7

=====================
* (Bug) fix to_exchange accessor failing for variables with seconds and the unit
* (Bug) fix to_coards accessor failing for variables with seconds and the unit
* Add status-cf-derived command that tests all all public CF files at CCHDO going from netCDF to every other supported format

1.0.2.6

=====================
* Support for duplicate parameters
* (Bug) fix to_exchange accessor failing with a Dataset containing CDOM variables
* (Bug) fix for the flag column getting lost when alternate units for the same parameter were present in one file
If, for example, a file had CTDTMP [ITS-90] and CTDTMP [IPTS-68] and both had CTDTMP_FLAG_W columns, only one of the parameters would get a flag column
* Added "coards" and "woce" file name generation support to `gen_fname()` accessor
* `to_woce()` now always returns zipfile bytes for ctd data
* Omit the "STAMP" text from generated WOCE files
* (changed) Bump min `cchdo.params` version to 2024.3

1.0.2.5

=====================
* Rewrite the COARDS netCDF output to create xarray objects rather than netCDF datasets directly.
In some quick testing, this results in about a 3x speed up, this depends more on variable count vs data length, so most of the performance increase is actually in the bottle output
* Fixed a bug in COARDS where the fill value was not being set in the bottom depth variable
* Add `fill_values` and `precision_source` arguments to `read_csv`
* Add string literal types for the `ftype` parameter of `read_csv`
* CLI improvements:
* made "precision_source" and option rather than positional argument
* added a `--comments` option to allow the override of comments from either a string or file path prefixed with .
* Add a convert_csv subcommand which takes an additional ftype option to specify (C)TD or (B)ottle
* Removed the `matlab` optional install extra, this previously had a single dependency of "scipy" in it.
Scipy is used by xarray for netCDF3 output so this dependency has been moved to the `netcdf` optional install extra.

1.0.2.4

=====================
* (improved) the read_csv method now handles ctd data better, specifically you do not need to include a SAMPNO column if the FileType is CTD.
* Switched linting in pre-commit and CI to use ruff
* (changed) Bump min `cchdo.params` version to 2023.9

1.0.2.3

=====================
* Add `read_csv` method
* (bug) Remove the `C_format` and `C_format_source` attributes for non floating point variables. Integer and string values are exact so do not need any sort of format hint. Including a format string for non floating point values is undefined behavior in the netCDF-C Library and can result in crashing.
* (new) Add `to_coards()` and `to_woce()` accessors to maintain legacy formats at CCHDO.
* (new) All the `to_*` accessors now support a path argument that will accept a writeable binary mode file like object or a filesystem path to write to.
* (new) Add a `compact_profile()` accessor that drops the trailing fill values from a profile
* (new) Add the a `file_seperator` and `keep_seperator` to `cchdo.hydro.exchange.read_exchange()`.
The `keep_seperator` argument defaults to True.
This is specifically to allow the reading of CTD exchange files that have been concatenated together (rather than zipped).
Assuming there is nothing after "END_DATA" and you cat a bunch of _ct1.csv files together, they should be readable if "END_DATA" is passed into the `file_seperator` argument.
* (new) Add `--dump-data-counts` option to the exchange status generator which will dump a json document containing a object with nc_var name strings to count integers of how many
variables with this name actually contain any data (i.e. are not just entirely fill value).
* Add a `--version` option to the cli interface
* (changed) Export `read_exchange` from the top level `cchdo.hydro` namespace.
* (changed) Bump min `cchdo.params` version to 0.1.21
* (changed) Dropped netCDF4 as required for installation, if netCDF4 isn't installed already you can install with the `cchdo.hydro[netcdf4]` optional.

* While this might seem like an odd choice for a library that started as one to convert WHP Exchange files to netCDf, netCDF
itself is not called until the very end of the conversion process. Internally, everything is an `xarray.Dataset`. This means you can
install this library to read exchange files in tricky environments like pyodide or jupyterlite which already tend to have pandas and numpy in them.

* (bug) fix `pressure` variable not having a `_FillValue` attribute

1.0.2.2

=====================
* Support for time values that are equal to 2400, when this is encountered, the date will be set to midnight of the next day.
* `read_exchange()` will now accept bytes and bytearray objects as input, wrapping data in an `io.BytesIO` is not needed anymore.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.