Skip to content

Commit 12467bd

Browse files
committed
use nctoolkit to decode times when xarray fails
1 parent 7c7b67c commit 12467bd

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

ncplot/plot.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import xarray as xr
2626
import copy
2727
import numpy as np
28+
import os
2829

2930
from ncplot.utils import get_dims, check_lon, check_lat
3031

@@ -298,19 +299,6 @@ def view(x, vars=None, autoscale=True, out=None, **kwargs):
298299
if "pole" in ds[lon_name].long_name:
299300
coastline = False
300301

301-
#print(ds.data_vars)
302-
#if lon_name is not None:
303-
# for vv in ds.data_vars:
304-
# if lon_name not in list(ds[vv].dims):
305-
# if lat_name not in list(ds[vv].dims):
306-
# [x for x in list(ds[vv].dims] if "time" in x'
307-
# if "time" not in list(ds[vv].dims):
308-
# bad += [vv]
309-
#
310-
# if len(bad) > 0:
311-
# ds = ds.drop(bad)
312-
#print(ds.data_vars)
313-
314302
if len([x for x in ds.coords if "lon" in x]) > len(
315303
[x for x in ds.dims if "lon" in x]
316304
):

0 commit comments

Comments
 (0)