Nctoolkit

Latest version: v1.2.0

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

Scan your dependencies

Page 8 of 12

0.4.7

This release contains a new method called `match_points` that can do matchups with a spatiotemporal dataframe.

0.4.6

This release enhances existing methods, with a focus on improving subsetting.

The ``select`` method is replaced by ``subset``. This behaves in the way same way as ``select``, but will also allow users to subset data based on longitude and latitude using ``lon`` and ``lat`` as args. ``select`` is now deprecated.

The export methods ``to_nc``, ``to_xarray`` and ``to_dataframe`` now allow only a subset of the data to be exported. Additional arguments can be sent to the methods, and they will then be sent to the ``subset`` method.

The new matchpoint methods for matching netCDF and point data have been smoothed out with additional options.

Minor bug fix: The weights in datasets with recycled regridding weights were not copied properly. This is now fixed.

0.4.5

This is a minor release.

A couple of improvements have been made to the `matchpoint` methods.

This release is largely being made to deal with the fact that the readthedocs failed to produce the docs for version 0.4.4.

0.4.4

A minor release with enhancements.

This version introduces a new class called `Matchpoint` which will allow automated matchups between netCDF files and point observations in pandas dataframes. This class is created using ``nc.open_matchpoint``. Matchups are generated by using the ``add_data``, ``add_points``, ``add_depths``, and ``matchup`` methods.

For datasets, ``ds`` now provides a more informative summary of dataset contents.

The ``split`` method now automatically sorts the files, so that they are sorted by date when temporal splitting occurs.

The methods ``surface``, ``merge_time`` and ``tvariance have been removed after periods of deprecation. Use ``top``, ``merge`` and ``tvar`` instead.

0.4.3

This is a release with some new methods, improvements to internals and some bug fixes. Code written for previous 0.4x versions of nctoolkit will be compatible.

This version will be compatible with CDO versions 2.0.5x.

A new function ``open_geotiff`` will allow GeoTiff files to be opened. This is a wrapper around rioxarray, which will convert the GeoTiff to NetCDF. It will require rioxarray to be installed.

A new method ``surface_mask`` has been added to enable identifying top levels with data in cases when there are missing values in the actual top level.

A new method ``is_corrupt`` has been added. This can identify whether NetCDF files are likely to be corrupt. Under-the hood, methods will now suggest running ``is_corrupt`` when system errors imply the files are corrupt.

The methods ``to_xarray`` and ``to_dataframe`` no long accept the `cdo_times` argument, as this has essentially been redundant for a few nctoolkit versions.

The ``plot`` method now lets users send kwargs to hvplot to make customizations, such as log-scales an option. This will require the latest version of ncplot.

The ``select`` method now lets user select days of month, using ``ds.select(day = 1)``.

The ``split`` method now allows splitting by timestep using ``split("timestep")``.

0.4.2

This is a minor release that includes a couple of method enhancements.

You can now save plots as html file using the `out` argument. An example of how to do this is as follows:

ds.plot(out = "foo.nc")

The `nc_command` method now automatically uses multiple cores when these are set by `nc.options`. Previously it could not run in parallel on multi-file datasets.

Page 8 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.