Class: NCATTED_APPEND_COORDINATES_VALUE_cmd
- Inherits:
-
InplaceCommand
- Object
- FileCommand
- InplaceCommand
- NCATTED_APPEND_COORDINATES_VALUE_cmd
- Includes:
- NCO_warning_filter
- Defined in:
- lib/file_command.rb
Instance Method Summary collapse
- #cmd_txt_inplace(file) ⇒ Object
-
#initialize(variable_id) ⇒ NCATTED_APPEND_COORDINATES_VALUE_cmd
constructor
A new instance of NCATTED_APPEND_COORDINATES_VALUE_cmd.
Methods included from NCO_warning_filter
Methods inherited from InplaceCommand
Methods inherited from FileCommand
Constructor Details
#initialize(variable_id) ⇒ NCATTED_APPEND_COORDINATES_VALUE_cmd
Returns a new instance of NCATTED_APPEND_COORDINATES_VALUE_cmd.
359 360 361 |
# File 'lib/file_command.rb', line 359 def initialize(variable_id) @variable_id = variable_id end |
Instance Method Details
#cmd_txt_inplace(file) ⇒ Object
363 364 365 366 |
# File 'lib/file_command.rb', line 363 def cmd_txt_inplace(file) # this does not seem to create a temporary file, but no mention of in-place operation in the ncatted docs %Q(#{SYSTEM_COMMANDS::NCATTED} -h --create_ram -a coordinates,#{@variable_id},a,c,'lat lon' #{file}) end |