Class: CMORizer::Step::SET_GLOBAL_ATTRIBUTES

Inherits:
IndividualBaseStep show all
Defined in:
lib/step.rb

Instance Attribute Summary

Attributes inherited from BaseStep

#forbid_inplace, #initial_prefix, #needs_to_run, #resultpath

Instance Method Summary collapse

Methods inherited from IndividualBaseStep

#can_process?

Methods inherited from BaseStep

#add_input, #create_outpath, #initialize, #set_info, #truncate_string

Constructor Details

This class inherits a constructor from CMORizer::Step::BaseStep

Instance Method Details

#file_commandsObject



292
293
294
295
296
297
298
299
300
301
# File 'lib/step.rb', line 292

def file_commands
  cmds = []
  cmds << NCATTED_DELETE_GLOBAL_ATTRIBUTES_cmd.new(%w(output_schedule history CDO CDI Conventions))

  global_attributes_hash = @global_attributes.as_hash

  # apply global attributes
  cmds << NCATTED_ADD_GLOBAL_ATTRIBUTES_cmd.new(global_attributes_hash)
  cmds
end