nctoolkit 1.2.6__tar.gz → 1.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/PKG-INFO +2 -2
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/verticals.py +5 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/setup.py +2 -2
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/CITATION.cff +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/CODE_OF_CONDUCT.md +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/CONTRIBUTIONS.md +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/LICENSE +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/MANIFEST.in +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/README.md +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/benchmarks/benchmark_nctoolkit_versus_xarray.ipynb +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/cheatsheet/nctoolkit_cheatsheet.pdf +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/cheatsheet/nctoolkit_cheatsheet.pptx +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/checklists/api_checker.ipynb +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/data/geotiff.tif +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/data/pubplot_test.png +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/data/test1.html +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/data/test2.html +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/__init__.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/add_etc.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/anomaly.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/api.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/append.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/assign.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/cdo_command.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/cellareas.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/centres.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/checks.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/cleanup.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/clear.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/compare.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/compare_data.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/corr.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/create_ensemble.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/crop.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/deprecated.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/distgrid.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/drop.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/ensembles.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/esoteric.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/experimental.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/fill.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/flatten.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/fldstat.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/format.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/generate_grid.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/inttime.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/invert.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/masking.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/matchpoint.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/mergers.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/meridonials.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/mp_adders.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/mp_matchers.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/mp_matchups.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/nco_command.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/phenology.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/plot.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/reduce.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/reduce_grid.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/regrid.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/remove.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/rename.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/resample.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/rollstat.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/run.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/runners.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/runthis.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/session.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/set.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/setters.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/shape.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/shift.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/show.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/split.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/static_plot.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/strip_vars.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/subset.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/sumall.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/temp_file.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/temporal_stat.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/temporals.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/thresholds.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/to_lonlat.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/to_nc.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/toxarray.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/tozlev.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/unify.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/utils.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/validator.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/validator_funs.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/zip.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit/zonals.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/nctoolkit.egg-info/SOURCES.txt +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/pyproject.toml +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/requirements.txt +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/setup.cfg +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/testing/test_parallel.py +0 -0
- {nctoolkit-1.2.6 → nctoolkit-1.2.7}/testing/test_scripting.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nctoolkit
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.7
|
|
4
4
|
Summary: A Python package for netCDF analysis and post-processing
|
|
5
5
|
Home-page: https://github.com/pmlmodelling/nctoolkit
|
|
6
6
|
Author: Robert Wilson
|
|
@@ -52,7 +52,7 @@ Dynamic: summary
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
**nctoolkit** is a comprehensive Python (3.
|
|
55
|
+
**nctoolkit** is a comprehensive Python (3.10 and above) package for analyzing netCDF data on Linux and macOS.
|
|
56
56
|
|
|
57
57
|
Core abilities of nctoolkit include:
|
|
58
58
|
|
|
@@ -314,6 +314,11 @@ def vertical_mean(self, thickness=None, depth_range=None, fixed=None):
|
|
|
314
314
|
ds_thick = open_data(thickness)
|
|
315
315
|
if len(ds_thick.variables) != 1:
|
|
316
316
|
raise ValueError("Please provide a thickness file with 1 variable!")
|
|
317
|
+
ds_mask = open_data(self[0])
|
|
318
|
+
ds_mask.subset(variables=ds_mask.variables[0], time = 0)
|
|
319
|
+
ds_mask.abs()
|
|
320
|
+
ds_mask > 0
|
|
321
|
+
ds_thick * ds_mask
|
|
317
322
|
|
|
318
323
|
thick_var = ds_thick.variables[0]
|
|
319
324
|
# modify the depth if it is a list
|
|
@@ -4,7 +4,7 @@ import sys
|
|
|
4
4
|
DESCRIPTION = "A Python package for netCDF analysis and post-processing"
|
|
5
5
|
LONG_DESCRIPTION = """
|
|
6
6
|
|
|
7
|
-
**nctoolkit** is a comprehensive Python (3.
|
|
7
|
+
**nctoolkit** is a comprehensive Python (3.10 and above) package for analyzing netCDF data on Linux and macOS.
|
|
8
8
|
|
|
9
9
|
Core abilities of nctoolkit include:
|
|
10
10
|
|
|
@@ -46,7 +46,7 @@ extras_require["complete"] = ["geoviews", "rioxarray", "cfchecker", "geocube", "
|
|
|
46
46
|
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
|
|
47
47
|
|
|
48
48
|
setup(name='nctoolkit',
|
|
49
|
-
version='1.2.
|
|
49
|
+
version='1.2.7',
|
|
50
50
|
description=DESCRIPTION,
|
|
51
51
|
description_content_type='text/plain',
|
|
52
52
|
long_description=LONG_DESCRIPTION,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|