Skip to content

Commit

Permalink
Marked issue #17
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Dec 7, 2015
1 parent 9d7a802 commit dd42b3d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cablab/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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, \
Expand Down

0 comments on commit dd42b3d

Please sign in to comment.