Class: NCRENAME_DIMENSION_NODES_XD_TO_NCELLS_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

Instance Method Details

#cmd_txt_inplace(file) โ‡’ Object

[View source]

334
335
336
337
# File 'lib/file_command.rb', line 334

def cmd_txt_inplace(file)
  # from the docs: "ncrename will change the names of the input-file in place"
  %Q(#{SYSTEM_COMMANDS::NCRENAME} -h -d .nodes_2d,ncells -d .nodes_3d,ncells #{file}) # the dot '.' prefix tells ncrename that it is an optional rename
end