From dd42b3dae674d1d76035a8f35bd7da819d9a9a00 Mon Sep 17 00:00:00 2001 From: Norman Fomferra Date: Mon, 7 Dec 2015 17:50:06 +0100 Subject: [PATCH] Marked issue #17 --- src/cablab/cube.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cablab/cube.py b/src/cablab/cube.py index 299bfe4..c7de6f6 100644 --- a/src/cablab/cube.py +++ b/src/cablab/cube.py @@ -563,7 +563,9 @@ def _init_variable_dataset(self, provider, dataset, variable_name): # import time # dataset.source = 'CAB-LAB Software (module ' + __name__ + ')' # dataset.history = 'Created ' + time.ctime(time.time()) - # todo (nf 20151023) - add more global attributes from CF-conventions here + # + # check (nf 20151023) - add more global attributes from CF-conventions here + # variable_descriptors = provider.get_variable_descriptors() variable_attributes = variable_descriptors[variable_name] # Mandatory attributes @@ -702,7 +704,7 @@ def get(self, variable=None, time=None, latitude=None, longitude=None): print('dateline intersection! grid_x: %d-%d, %d-%d' % (grid_x11, grid_x12, grid_x21, grid_x22)) raise ValueError('illegal longitude: %s: dateline intersection not yet implemented' % longitude) - # todo (nf 20151102) - fill in NaN, where a variable does not provide any data + # todo (nf 20151102) - fill in NaN, where a variable does not provide any data, see issue #17 result = [] # shape = time_index_2 - time_index_1 + 1, \ # grid_y2 - grid_y1 + 1, \