Spaces:
Build error
Build error
clean time
Browse files
app.py
CHANGED
|
@@ -128,7 +128,7 @@ def load_bathymetry(url):
|
|
| 128 |
@pn.cache(max_items=16,policy='LRU',per_session=True)
|
| 129 |
def load_netCDF(file_path):
|
| 130 |
fs = fsspec.filesystem("https")
|
| 131 |
-
ds
|
| 132 |
xr.open_dataset(
|
| 133 |
fs.open(file_path), decode_cf=True, decode_times=False, engine="scipy"
|
| 134 |
)
|
|
@@ -137,7 +137,7 @@ def load_netCDF(file_path):
|
|
| 137 |
.set_xindex("PROFZ")
|
| 138 |
.set_xindex("TIME")
|
| 139 |
)
|
| 140 |
-
return ds
|
| 141 |
|
| 142 |
|
| 143 |
|
|
@@ -300,7 +300,6 @@ class SADCP_Viewer(param.Parameterized):
|
|
| 300 |
]
|
| 301 |
]
|
| 302 |
|
| 303 |
-
self.ds = fix_time(self.ds)
|
| 304 |
|
| 305 |
lon_range = (
|
| 306 |
int(self.ds["LONGITUDE"].min().round() - 1),
|
|
|
|
| 128 |
@pn.cache(max_items=16,policy='LRU',per_session=True)
|
| 129 |
def load_netCDF(file_path):
|
| 130 |
fs = fsspec.filesystem("https")
|
| 131 |
+
ds = (
|
| 132 |
xr.open_dataset(
|
| 133 |
fs.open(file_path), decode_cf=True, decode_times=False, engine="scipy"
|
| 134 |
)
|
|
|
|
| 137 |
.set_xindex("PROFZ")
|
| 138 |
.set_xindex("TIME")
|
| 139 |
)
|
| 140 |
+
return fix_time(ds)
|
| 141 |
|
| 142 |
|
| 143 |
|
|
|
|
| 300 |
]
|
| 301 |
]
|
| 302 |
|
|
|
|
| 303 |
|
| 304 |
lon_range = (
|
| 305 |
int(self.ds["LONGITUDE"].min().round() - 1),
|