Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VERIFY
CIF
Commits
2e7e0d0c
Commit
2e7e0d0c
authored
Jan 14, 2022
by
Antoine Berchet
Browse files
Turn print into debug in VPRM flux
parent
795b49d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycif/plugins/datastreams/fluxes/VPRM_nc/read.py
View file @
2e7e0d0c
...
...
@@ -6,7 +6,7 @@ import xarray as xr
from
netCDF4
import
Dataset
from
.....utils.netcdf
import
readnc
from
logging
import
info
from
logging
import
info
,
debug
def
read
(
self
,
...
...
@@ -29,16 +29,17 @@ def read(
info
(
files
)
outdate
=
[]
for
dd
,
ff
in
zip
(
dates
,
files
):
print
(
'Here put the reading of '
,
[
varnames
],
' in '
,
ff
,
' for '
,
dd
)
debug
(
'Here put the reading of '
,
[
varnames
],
' in '
,
ff
,
' for '
,
dd
)
nc
=
xr
.
open_dataset
(
ff
[
0
],
decode_times
=
False
)
read_field
=
nc
[
varnames
][
dd
[
0
].
hour
].
values
print
(
'e.g. get a 3d array read_field'
)
debug
(
'e.g. get a 3d array read_field'
)
data
.
append
(
read_field
)
outdate
.
append
(
dd
[
0
])
info
(
"check"
)
info
(
dates
)
info
(
len
(
data
[
0
]))
info
(
np
.
array
(
data
).
shape
)
debug
(
"check"
)
debug
(
dates
)
debug
(
len
(
data
[
0
]))
debug
(
np
.
array
(
data
).
shape
)
# if only one level for emissions, create the axis:
xmod
=
xr
.
DataArray
(
np
.
array
(
data
)[:,
np
.
newaxis
,
...],
...
...
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