Changeset 989 in lmdz_wrf


Ignore:
Timestamp:
Aug 9, 2016, 2:23:26 PM (9 years ago)
Author:
lfita
Message:

Adding `variables' on 'model_characteristics' to print or not the result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r987 r989  
    1607616076        self.vardimensions = [self.vardxn, self.vardyn, self.vardzn, self.vardtn, self.vardsn]
    1607716077
    16078 def model_characteristics(values, ncfile):
     16078def model_characteristics(values, ncfile, variables):
    1607916079    """ Functino to provide major characterisitcs of a given model output
    1608016080      values= [model]
    1608116081        model: name of the model
     16082      variables= i whether should the output be printed or not ('true/false')
    1608216083      ncfile= name of the file to use to check
    1608316084    """
     
    1609416095
    1609516096    modchar = ModelChar(model,ncfile)
    16096     gen.printing_class(modchar)
    16097     gen.singleline_printing_class(modchar)
     16097    if gen.Str_Bool(variables):
     16098        gen.printing_class(modchar)
     16099        gen.singleline_printing_class(modchar)
    1609816100
    1609916101    return modchar
Note: See TracChangeset for help on using the changeset viewer.