ebas-plot 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ebas-plot
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Plotting utilities for EBAS netCDF datasets.
5
5
  Author-email: Lise Eder Murberg <lemu@nilu.no>, Marthe Brevig <mbre@nilu.no>, Jonathan Elias Holme <jhol@nilu.no>
6
6
  License-Expression: AGPL-3.0-or-later
@@ -0,0 +1,7 @@
1
+ ebas_plot.py,sha256=eP8j1zpbKbe1Vxqb9Q47TyAl4-7YPUwB4OBe_3SE0SA,41735
2
+ ebas_plot-0.2.2.dist-info/licenses/LICENSE,sha256=7ZpO8LOz0uwP0ZXf1VdifRWnVKK6wPAICJ9ULsrndDs,840
3
+ ebas_plot-0.2.2.dist-info/METADATA,sha256=hQK50GDnBsGlYR-uzePm3X4DMx6F6PWr0FUswc7UkPY,3758
4
+ ebas_plot-0.2.2.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
5
+ ebas_plot-0.2.2.dist-info/entry_points.txt,sha256=pOXlW0kxym2YdjkQw2HxLtHgXoaLOgQBzxZ78uVovn0,45
6
+ ebas_plot-0.2.2.dist-info/top_level.txt,sha256=EcUPwQUC64wFbj_S3eIgWmItisCrkva69sjFY-5ywd4,10
7
+ ebas_plot-0.2.2.dist-info/RECORD,,
ebas_plot.py CHANGED
@@ -8,7 +8,7 @@ import requests
8
8
  from netCDF4 import date2num, num2date
9
9
  import pandas as pd
10
10
 
11
- __version__ = "0.2.1"
11
+ __version__ = "0.2.2"
12
12
 
13
13
 
14
14
  class DatasetAccessError(Exception):
@@ -212,7 +212,9 @@ def _open_dataset(url: str, token: str | None) -> xr.Dataset:
212
212
  if token:
213
213
  session = requests.Session()
214
214
  session.headers["Authorization"] = f"Bearer {token}"
215
- return xr.open_dataset(opendap_url, engine="pydap", session=session)
215
+ # dap2:// pins the protocol (silences pydap's fallback warning); pydap maps it back to https.
216
+ dap_url = opendap_url.replace("https://", "dap2://", 1)
217
+ return xr.open_dataset(dap_url, engine="pydap", session=session)
216
218
 
217
219
  try:
218
220
  return xr.open_dataset(opendap_url, engine="netcdf4")
@@ -1,7 +0,0 @@
1
- ebas_plot.py,sha256=6F0coXZ2XHFuPj8kCUTGZ5gGyZGOMflcFmpfRJQF_yI,41573
2
- ebas_plot-0.2.1.dist-info/licenses/LICENSE,sha256=7ZpO8LOz0uwP0ZXf1VdifRWnVKK6wPAICJ9ULsrndDs,840
3
- ebas_plot-0.2.1.dist-info/METADATA,sha256=WTwbaDW_vUZhKiaJKRAuUYFfyMOl5GlVba5OtEvM7VI,3758
4
- ebas_plot-0.2.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
5
- ebas_plot-0.2.1.dist-info/entry_points.txt,sha256=pOXlW0kxym2YdjkQw2HxLtHgXoaLOgQBzxZ78uVovn0,45
6
- ebas_plot-0.2.1.dist-info/top_level.txt,sha256=EcUPwQUC64wFbj_S3eIgWmItisCrkva69sjFY-5ywd4,10
7
- ebas_plot-0.2.1.dist-info/RECORD,,