Class: NCATTED_SET_VARIABLE_CELL_METHODS_CELL_MEASURES_cmd

Inherits:
InplaceCommand show all
Includes:
NCO_warning_filter
Defined in:
lib/file_command.rb

Instance Method Summary collapse

Methods included from NCO_warning_filter

#command_success?

Methods inherited from InplaceCommand

#cmd_txt, #inplace?

Methods inherited from FileCommand

#run

Constructor Details

#initialize(var_name, cell_methods, cell_measures) ⇒ NCATTED_SET_VARIABLE_CELL_METHODS_CELL_MEASURES_cmd

Returns a new instance of NCATTED_SET_VARIABLE_CELL_METHODS_CELL_MEASURES_cmd.



267
268
269
# File 'lib/file_command.rb', line 267

def initialize(var_name, cell_methods, cell_measures)
  @var_name, @cell_methods, @cell_measures = var_name, cell_methods, cell_measures
end

Instance Method Details

#cmd_txt_inplace(file) ⇒ Object



271
272
273
# File 'lib/file_command.rb', line 271

def cmd_txt_inplace(file)
  %Q(#{SYSTEM_COMMANDS::NCATTED} --create_ram -h -a cell_methods,#{@var_name},o,c,"#{@cell_methods}" -a cell_measures,#{@var_name},o,c,"#{@cell_measures}" #{file})
end