Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
data-infrastructure-services
tzis
Commits
4652f47d
Commit
4652f47d
authored
Sep 09, 2021
by
Fabian Wachsmann
Browse files
Update tzis.py
parent
6e5c0a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tzis/tzis.py
View file @
4652f47d
...
...
@@ -34,7 +34,8 @@ class Tzis():
#if type(mf) != list and type(mf) != str :
# raise ValueError("Dataset '{0}' must either be a string or a list of strings")
if
mf
:
mf_dset
=
xarray
.
open_mfdataset
(
mf
,
if
xarray_kwargs
:
mf_dset
=
xarray
.
open_mfdataset
(
mf
,
decode_cf
=
True
,
use_cftime
=
True
,
concat_dim
=
"time"
,
...
...
@@ -42,6 +43,15 @@ class Tzis():
coords
=
'minimal'
,
compat
=
'override'
,
**
xarray_kwargs
)
else
:
mf_dset
=
xarray
.
open_mfdataset
(
mf
,
decode_cf
=
True
,
use_cftime
=
True
,
concat_dim
=
"time"
,
data_vars
=
'minimal'
,
coords
=
'minimal'
,
compat
=
'override'
)
if
not
self
.
varname
:
self
.
varname
=
mf_dset
.
variables
[
0
]
if
self
.
verbose
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment