Module: NumRu::NetCDF_Convention_Users_Guide

Included in:
NetCDF_Convention_CF, NetCDF_Convention_Wind_Profiler
Defined in:
lib/numru/gphys/netcdf_convention.rb

Defined Under Namespace

Modules: Attribute_Mixin, VArray_Mixin

Class Method Summary collapse

Class Method Details

.assoc_coord_names(data) ⇒ Object



303
304
305
# File 'lib/numru/gphys/netcdf_convention.rb', line 303

def assoc_coord_names(data)
  nil   # no rule for that
end

.aux_var_names(coord_var) ⇒ Object



299
300
301
# File 'lib/numru/gphys/netcdf_convention.rb', line 299

def aux_var_names(coord_var)
  nil   # no rule for that
end

.cell_bounds?(coord_var) ⇒ Boolean

Returns:

  • (Boolean)


278
279
280
281
282
283
284
285
# File 'lib/numru/gphys/netcdf_convention.rb', line 278

def cell_bounds?(coord_var)
  # whether the coordinate variale represent grid cell bounds.
  # coordvar (VArray)
  # return value:
  result = false  # Always false, because User's guide does not define it
  cell_center_name = nil
  [result, cell_center_name]
end

.cell_center?(coord_var) ⇒ Boolean

Returns:

  • (Boolean)


287
288
289
290
291
292
293
294
295
296
297
# File 'lib/numru/gphys/netcdf_convention.rb', line 287

def cell_center?(coord_var)
  # whether the coordinate variale represent grid cell centers.
  # coordvar (VArray)
  # return value:
  #    false if not
  #    true if true and the corresponding cell bounds are not identified.
  #    a VArray if true and the bounds are found (returns it)
  result = false  # Always false, because User's guide does not define it
  cell_bounds_name = nil
  [result, cell_bounds_name]
end

.coord_var_names(ncvar) ⇒ Object



273
274
275
276
# File 'lib/numru/gphys/netcdf_convention.rb', line 273

def coord_var_names(ncvar)
  # name of the coordinate variables (to be the "pos" object in Axis)
  ncvar.dim_names
end

.to_sObject



269
270
271
# File 'lib/numru/gphys/netcdf_convention.rb', line 269

def to_s
  "NetCDF User's Guide"
end