Commit 2346cc51 authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Improve input data preparation (closes #111)

parent 0e92f6d1
......@@ -6,6 +6,7 @@ import os
import time
import iris
from iris.experimental.equalise_cubes import equalise_attributes
import numpy as np
import pkg_resources
import yaml
......@@ -116,8 +117,9 @@ def prepare_indices(index_definitions, requested_indices):
def prepare_input_data(datafiles):
datacube = iris.load(datafiles, callback=ignore_cb)
datacube = iris.load_raw(datafiles, callback=ignore_cb)
iris.util.unify_time_units(datacube)
equalise_attributes(datacube)
cube = datacube.concatenate_cube()
return cube
......
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