Commit 2e7e0d0c authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Turn print into debug in VPRM flux

parent 795b49d5
......@@ -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, ...],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment