Method: NumRu::VArrayNetCDF#initialize
- Defined in:
- lib/numru/gphys/varraynetcdf.rb
#initialize(aNetCDFVar) ⇒ VArrayNetCDF
< initialization redefined > ##
131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/numru/gphys/varraynetcdf.rb', line 131 def initialize(aNetCDFVar) @name = aNetCDFVar.name @mapping = nil @varray = nil raise ArgumentError,"Not a NetCDVAr" if ! aNetCDFVar.is_a?(NetCDFVar) @ary = aNetCDFVar @ary.extend(NetCDFVarDeferred) @ary.file.extend(NetCDFDeferred) @attr = AttributeNetCDF.new(aNetCDFVar) @convention = NetCDF_Conventions.find(aNetCDFVar.file) extend( @convention::VArray_Mixin ) end |