Nctoolkit

Latest version: v1.1.10

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

Scan your dependencies

Page 4 of 11

0.8.4

This is a minor update that improves the ability to handle missing values.

A new method is introduced for changing the fill value of missing values, `set_fill`.

Another method `missing_as` is introduced. This will be the opposite of `as_missing`. It will set missing values to a constant value.

Dataset `contents` will now show the fill value for variables. Furthermore, `open_data` will now check if the fill value is zero, which can cause problems for logical comparisons etc.

0.8.3

This is a minor release. Improvements have been made to the way warnings from CDO are translated to nctoolkit warnings.

Methods remain the same as before.

0.8.2

This release changes plotting so that it does not show coastlines by default.

Plotting with coastlines was causing plotting to crash on some systems due to issues with how nctoolkit's Python dependencies work with non-Python dependencies. These were not a problem with nctoolkit installations from conda, which will install non-Python dependencies, but some non-conda insttallations would no longer plot maps as a Python dependency could be incompatible with the non-Python dependencies on user systems.

If you want to plot the coastline, do the following

ds.plot(coast=True)

0.8.1

This is a minor release that modifies version pinning for a couple of dependencies.

0.8.0

This is a major release that introduces some breaking changes.

The major improvement in this release will be to vertical methods. All vertical methods should now work with files with vertical axes that are either consistent or vary spatially. Before some methods only worked with z-levels, i.e. files with fixed vertical levels.

This change will result in a requirement that `vertical_mean`, `vertical_interp` and` vertical_integration` need users to specify whether the vertical levels are fixed spatially, using the `fixed` arg. As a result, calls to these methods without this argument will throw an error.

0.7.6

This is a minor release that significantly simplifies basic arithmetic and logical operations.

Simple methods such as `+`, `-` etc. can now use standard python syntax.

For example, if you wanted to add 2 to a dataset you can now do the following:

`ds.add(2)`

as this instead

`ds+2`

The same goes for logical operators. You can do the following to identify if the values in a datset are below 2:

`ds<2`

whereas you previously had to do this:

`ds.compare("<2")

Note: because nctoolkit methods only modify datasets and do not return datasets, the following will not work:

`ds1+ds2+2`

Instead, you would need to do:

`ds1+ds2`
`ds1+2`

Page 4 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.