Ejemplo n.º 1
0
 def get_ref_value(self, variable_name, data):
     reference_dimensions = data.get_reference_dimensions(variable_name)
     if len(reference_dimensions) == 1:
         return data.read_reference(variable_name, [self.__reference_record.record_number])
     else:
         cell_position_copy = self.cell_position[:]
         if self.__reference_record.time is None:
             cell_position_copy[0] = None
         if self.__reference_record.depth is None:
             cell_position_copy[1] = None
         origin = list(retrieve_origin(cell_position_copy))
         return data.read_reference(variable_name, origin)
Ejemplo n.º 2
0
 def get_ref_value(self, variable_name, data):
     reference_dimensions = data.get_reference_dimensions(variable_name)
     if len(reference_dimensions) == 1:
         return data.read_reference(variable_name,
                                    [self.__reference_record.record_number])
     else:
         cell_position_copy = self.cell_position[:]
         if self.__reference_record.time is None:
             cell_position_copy[0] = None
         if self.__reference_record.depth is None:
             cell_position_copy[1] = None
         origin = list(retrieve_origin(cell_position_copy))
         return data.read_reference(variable_name, origin)
Ejemplo n.º 3
0
 def get_model_value(self, variable_name, data):
     origin = list(retrieve_origin(self.cell_position))
     return data.read_model(variable_name, origin)
Ejemplo n.º 4
0
 def get_model_value(self, variable_name, data):
     origin = list(retrieve_origin(self.cell_position))
     return data.read_model(variable_name, origin)