Class: NumRu::VArrayGtool3Time

Inherits:
VArray
  • Object
show all
Defined in:
lib/numru/gphys/varraygtool3.rb

Constant Summary

Constants inherited from VArray

NumRu::VArray::Binary_operators, NumRu::VArray::Binary_operatorsL, NumRu::VArray::Binary_operatorsL_comp, NumRu::VArray::Binary_operatorsL_other, NumRu::VArray::Binary_operators_Uconv, NumRu::VArray::Binary_operators_Unone, NumRu::VArray::Binary_operators_Uop, NumRu::VArray::Math_funcs, NumRu::VArray::Math_funcs_nondim, NumRu::VArray::Math_funcs_radian, NumRu::VArray::NArray_type1_methods, NumRu::VArray::NArray_type2_methods, NumRu::VArray::NArray_type2_methods1, NumRu::VArray::NArray_type2_methods2, NumRu::VArray::NArray_type2_methods3, NumRu::VArray::NArray_type3_methods, NumRu::VArray::Unary_operators

Instance Method Summary collapse

Methods inherited from VArray

#+@, #[], #[]=, #att_names, #attr_copy, #axis_cyclic?, #axis_cyclic_extendible?, #axis_draw_positive, #axis_modulo, #bin_mean, #bin_sum, #coerce, #convert_units, #copy, #del_att, #file, #get_att, #long_name, #long_name=, #mapped?, #marshal_dump, #marshal_load, #name, #name=, new2, #ntype, #rename, #rename!, #replace_val, #reshape, #reshape!, #set_att, #sqrt, #to_g1D, #transpose, #units, #units=, #val=

Constructor Details

#initialize(hash, calendar = nil) ⇒ VArrayGtool3Time

Returns a new instance of VArrayGtool3Time.



153
154
155
156
157
158
159
160
161
# File 'lib/numru/gphys/varraygtool3.rb', line 153

def initialize(hash, calendar=nil)
  @ary = hash.delete(:val)
  @name = hash.delete("ITEM")
  @attr = Attribute.new
  @attr.update( VArrayGtool3.coord_att_conv!(hash) )
  @attr["calendar"] = calendar if calendar
  @varray = nil
  @mapping = nil
end

Instance Method Details

#inspectObject



163
164
165
# File 'lib/numru/gphys/varraygtool3.rb', line 163

def inspect
  "<'#{name}' in '#{@ary.file.path}' #{ntype}#{shape.inspect}>"
end

#valObject



167
168
169
# File 'lib/numru/gphys/varraygtool3.rb', line 167

def val
  @ary.get
end