Class: NCATTED_SET_VARIABLE_STANDARD_NAME_cmd
- Inherits:
-
InplaceCommand
- Object
- FileCommand
- InplaceCommand
- NCATTED_SET_VARIABLE_STANDARD_NAME_cmd
- Includes:
- NCO_warning_filter
- Defined in:
- lib/file_command.rb
Instance Method Summary collapse
- #cmd_txt_inplace(file) ⇒ Object
-
#initialize(var_name, standard_name) ⇒ NCATTED_SET_VARIABLE_STANDARD_NAME_cmd
constructor
A new instance of NCATTED_SET_VARIABLE_STANDARD_NAME_cmd.
Methods included from NCO_warning_filter
Methods inherited from InplaceCommand
Methods inherited from FileCommand
Constructor Details
#initialize(var_name, standard_name) ⇒ NCATTED_SET_VARIABLE_STANDARD_NAME_cmd
Returns a new instance of NCATTED_SET_VARIABLE_STANDARD_NAME_cmd.
294 295 296 |
# File 'lib/file_command.rb', line 294 def initialize(var_name, standard_name) @var_name, @standard_name = var_name, standard_name end |
Instance Method Details
#cmd_txt_inplace(file) ⇒ Object
[View source]
298 299 300 |
# File 'lib/file_command.rb', line 298 def cmd_txt_inplace(file) %Q(#{SYSTEM_COMMANDS::NCATTED} --create_ram -h -a standard_name,#{@var_name},o,c,"#{@standard_name}" #{file}) end |