Changeset 1235 in lmdz_wrf for trunk/tools/nc_var_tools.py


Ignore:
Timestamp:
Oct 26, 2016, 4:00:03 PM (8 years ago)
Author:
lfita
Message:

Adding opernS' to search the right operation name for inimat' in 'compute_opersvarsfiles'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r1234 r1235  
    69806980        varn = varns[ifv]
    69816981        rng = ranges[ifv].split(';')
     6982        if opern.find(',') != -1:
     6983            oprenS = opern.split(',')[0]
     6984        else:
     6985            oprenS = opern
    69826986
    69836987        opervars.append(varn)
     
    70827086            if prevalues is None:
    70837087                # Creation of an empty variable to start with
    7084                 if gen.searchInlist(opinizero,opern):
     7088                if gen.searchInlist(opinizero,opernS):
    70857089                    inimat = np.zeros(varvals.shape, dtype=varobj.dtype)
    7086                 elif gen.searchInlist(opinione,opern):
     7090                elif gen.searchInlist(opinione,opernS):
    70877091                    inimat = np.ones(varvals.shape, dtype=varobj.dtype)
    70887092
Note: See TracChangeset for help on using the changeset viewer.