nctoolkit 1.1.7__tar.gz → 1.1.9__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.1.7 → nctoolkit-1.1.9}/PKG-INFO +2 -1
- nctoolkit-1.1.9/cheatsheet/nctoolkit_cheatsheet.pdf +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/static_plot.py +7 -14
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/setup.py +3 -1
- nctoolkit-1.1.7/cheatsheet/nctoolkit_cheatsheet.pdf +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/CITATION.cff +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/CODE_OF_CONDUCT.md +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/LICENSE +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/MANIFEST.in +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/README.md +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/benchmarks/benchmark_nctoolkit_versus_xarray.ipynb +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/cheatsheet/nctoolkit_cheatsheet.pptx +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/checklists/api_checker.ipynb +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/data/geotiff.tif +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/data/pubplot_test.png +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/data/test1.html +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/data/test2.html +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/__init__.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/add_etc.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/anomaly.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/api.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/append.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/assign.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/cdo_command.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/cellareas.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/centres.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/checks.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/cleanup.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/clear.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/compare.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/compare_data.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/corr.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/create_ensemble.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/crop.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/deprecated.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/distgrid.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/drop.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/ensembles.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/esoteric.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/experimental.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/fill.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/flatten.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/fldstat.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/format.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/generate_grid.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/inttime.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/invert.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/masking.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/matchpoint.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/mergers.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/meridonials.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/mp_adders.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/mp_matchers.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/mp_matchups.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/nco_command.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/phenology.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/plot.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/reduce.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/reduce_grid.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/regrid.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/remove.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/rename.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/resample.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/rollstat.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/run.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/runners.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/runthis.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/session.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/set.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/setters.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/shape.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/shift.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/show.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/split.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/strip_vars.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/subset.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/sumall.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/temp_file.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/temporal_stat.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/temporals.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/thresholds.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/to_lonlat.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/to_nc.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/toxarray.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/tozlev.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/unify.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/utils.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/validator.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/validator_funs.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/verticals.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/zip.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit/zonals.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/nctoolkit.egg-info/SOURCES.txt +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/requirements.txt +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/setup.cfg +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/testing/test_parallel.py +0 -0
- {nctoolkit-1.1.7 → nctoolkit-1.1.9}/testing/test_scripting.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: nctoolkit
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.9
|
|
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
|
|
@@ -18,6 +18,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Requires-Python: >=3.6.1
|
|
21
|
+
Description-Content-Type: text/plain
|
|
21
22
|
License-File: LICENSE
|
|
22
23
|
Requires-Dist: xarray
|
|
23
24
|
Requires-Dist: netCDF4
|
|
Binary file
|
|
@@ -242,7 +242,7 @@ def pub_plot(
|
|
|
242
242
|
norm = kwargs[kk]
|
|
243
243
|
fixed = True
|
|
244
244
|
|
|
245
|
-
#if kk.lower().startswith("mid") and kk.lower().endswith("nt"):
|
|
245
|
+
# if kk.lower().startswith("mid") and kk.lower().endswith("nt"):
|
|
246
246
|
# if mid_point is None:
|
|
247
247
|
# mid_point = kwargs[kk]
|
|
248
248
|
# fixed = True
|
|
@@ -462,7 +462,6 @@ def pub_plot(
|
|
|
462
462
|
if r_max is not None:
|
|
463
463
|
max_value = np.nanpercentile(np.ma.filled(values, np.nan), r_max)
|
|
464
464
|
|
|
465
|
-
|
|
466
465
|
# generate the figure and the axes where to plot the map. When the axes are generated (either with add_subplot or add_axes, or any other way), the projection to be used need to be specified
|
|
467
466
|
# the axes generated show the entire globe up to the cutoff latitude
|
|
468
467
|
if fig is None:
|
|
@@ -508,7 +507,7 @@ def pub_plot(
|
|
|
508
507
|
vmin = np.nanpercentile(np.ma.filled(values, np.nan), r_min)
|
|
509
508
|
if r_max is not None:
|
|
510
509
|
vmax = np.nanpercentile(np.ma.filled(values, np.nan), r_max)
|
|
511
|
-
|
|
510
|
+
|
|
512
511
|
if mid_point is None:
|
|
513
512
|
if vmin < 0 and vmax > 0:
|
|
514
513
|
mid_point = 0
|
|
@@ -538,8 +537,6 @@ def pub_plot(
|
|
|
538
537
|
except:
|
|
539
538
|
pass
|
|
540
539
|
|
|
541
|
-
|
|
542
|
-
|
|
543
540
|
if mid_point is not None:
|
|
544
541
|
val_min = values.min()
|
|
545
542
|
val_max = values.max()
|
|
@@ -558,10 +555,6 @@ def pub_plot(
|
|
|
558
555
|
adjustment = max(val_max - mid_point, mid_point - val_min)
|
|
559
556
|
vmin = mid_point - adjustment
|
|
560
557
|
vmax = mid_point + adjustment
|
|
561
|
-
# else:
|
|
562
|
-
# print(limits)
|
|
563
|
-
# vmin = limits[0]
|
|
564
|
-
# vmax = limits[1]
|
|
565
558
|
|
|
566
559
|
norm_plot = False
|
|
567
560
|
if norm in ["log", "log10"]:
|
|
@@ -591,10 +584,11 @@ def pub_plot(
|
|
|
591
584
|
if colours == "auto":
|
|
592
585
|
colours = "viridis"
|
|
593
586
|
|
|
594
|
-
if
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
587
|
+
if norm is None:
|
|
588
|
+
if vmin < 0 and vmax > 0:
|
|
589
|
+
# ensure vmin and vmax are symmetric
|
|
590
|
+
vmax = max(abs(vmin), abs(vmax))
|
|
591
|
+
vmin = -vmax
|
|
598
592
|
|
|
599
593
|
im = ax.pcolormesh(
|
|
600
594
|
lon,
|
|
@@ -608,7 +602,6 @@ def pub_plot(
|
|
|
608
602
|
vmax=vmax,
|
|
609
603
|
)
|
|
610
604
|
|
|
611
|
-
|
|
612
605
|
# add coastline and land colour. More options, including about resolution of coastline, colour and so on can be found here
|
|
613
606
|
# https://scitools.org.uk/cartopy/docs/v0.14/matplotlib/feature_interface.html
|
|
614
607
|
#
|
|
@@ -47,9 +47,11 @@ extras_require["complete"] = ["geoviews", "rioxarray", "cfchecker", "geocube", "
|
|
|
47
47
|
REQUIREMENTS = [i.strip() for i in open("requirements.txt").readlines()]
|
|
48
48
|
|
|
49
49
|
setup(name='nctoolkit',
|
|
50
|
-
version='1.1.
|
|
50
|
+
version='1.1.9',
|
|
51
51
|
description=DESCRIPTION,
|
|
52
|
+
description_content_type='text/plain',
|
|
52
53
|
long_description=LONG_DESCRIPTION,
|
|
54
|
+
long_description_content_type='text/plain',
|
|
53
55
|
python_requires='>=3.6.1',
|
|
54
56
|
classifiers=[
|
|
55
57
|
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
Binary file
|
|
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
|