Class: CMORizer::Step::SET_LOCAL_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



272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
# File 'lib/step.rb', line 272

def file_commands
  cmds = []
  # rename our variable
  cmds << NCRENAME_RENAME_VARIABLE_cmd.new(@fesom_variable_name, @variable_id)

  # set standard_name from the data request cmip6-cmor-tables
  cmds << NCATTED_SET_VARIABLE_STANDARD_NAME_cmd.new(@variable_id, @standard_name)
  
  # apply description
  cmds << NCATTED_SET_VARIABLE_DESCRIPTION_cmd.new(@variable_id, @description)

  # apply cell_methods and cell_measures
  cmds << NCATTED_SET_VARIABLE_CELL_METHODS_CELL_MEASURES_cmd.new(@variable_id, @out_cell_methods, @out_cell_measures)
    
  cmds
end