Class: NetCDF::GroupWriter

Inherits:
Group show all
Defined in:
lib/netcdf/group.rb

Overview

GroupWriter is a group that allows for writing data on it.

Instance Attribute Summary

Attributes inherited from CDMNode

#netcdf_elmt

Instance Method Summary collapse

Methods inherited from Group

#attributes, #common_parent, #find_attribute, #find_dimension, #find_group, #find_variable, #to_string

Methods inherited from CDMNode

#get_full_name, #get_short_name, #initialize

Constructor Details

This class inherits a constructor from NetCDF::CDMNode

Instance Method Details

#add_attribute(attribute) ⇒ Object




125
126
127
# File 'lib/netcdf/group.rb', line 125

def add_attribute(attribute)
  @netcdf_elmt.addAttribute(attribute.netcdf_elmt)
end

#add_dimension(dimension) ⇒ Object




133
134
135
# File 'lib/netcdf/group.rb', line 133

def add_dimension(dimension)
  @netcdf_elmt.addDimension(dimension.netcdf_elmt)
end

#add_dimension_if_not_exists(dimension) ⇒ Object




141
142
143
# File 'lib/netcdf/group.rb', line 141

def add_dimension_if_not_exists(dimension)
  @netcdf_elmt.addDimensionIfNotExists(dimension.netcdf_elmt)
end

#add_group(group) ⇒ Object




149
150
151
# File 'lib/netcdf/group.rb', line 149

def add_group(group)
  @netcdf_elmt.addGroup(group.netcdf_elmt)
end

#add_variable(variable) ⇒ Object




157
158
159
# File 'lib/netcdf/group.rb', line 157

def add_variable(variable)
  @netcdf_elmt.addVariable(variable.netcdf_elmt)
end

#name=(name) ⇒ Object




189
190
191
# File 'lib/netcdf/group.rb', line 189

def name=(name)
  @netcdf_elmt.setName(name)
end

#parent_group=(parent) ⇒ Object


Set the Group's parent Group



197
198
199
# File 'lib/netcdf/group.rb', line 197

def parent_group=(parent)
  @netcdf_elmt.setParentGroup(parent.netcdf_elmt)
end

#remove(elmt) ⇒ Object




165
166
167
# File 'lib/netcdf/group.rb', line 165

def remove(elmt)
  @netcdf_elmt.remove(elmt.netcdf_elmt)
end

#remove_dimension(name) ⇒ Object


remove a Dimension using its name, in this group only



173
174
175
# File 'lib/netcdf/group.rb', line 173

def remove_dimension(name)
  @netcdf_elmt.removeDimension(name)
end

#remove_variable(name) ⇒ Object


remove a Variable using its (short) name, in this group only



181
182
183
# File 'lib/netcdf/group.rb', line 181

def remove_variable(name)
  @netcdf_elmt.removeVariable(name)
end