Changeset 1233 in lmdz_wrf for trunk/tools/generic_tools.py


Ignore:
Timestamp:
Oct 26, 2016, 3:37:25 PM (8 years ago)
Author:
lfita
Message:

Improving `compute_opersvarsfiles' with more operations and options and clarity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1232 r1233  
    98929892
    98939893    matAshape = list(matA.shape)
    9894     print fname + '; Lluis matAshape:', matAshape
    98959894
    98969895    # From: https://en.wikipedia.org/wiki/Finite_difference_coefficient
     
    1029310292
    1029410293    return newmat, Lopn[opn]
    10295 print matoperations('centerderiv,1,8,0',np.arange(81.).reshape(9,9))
    10296 print matoperations('forwrdderiv,2,2,0',np.arange(81.).reshape(9,9))
    10297 print matoperations('upthres,4,3',np.arange(81).reshape(9,9))
    10298 print matoperations('lowthres@oper,37,divc,7',np.arange(81).reshape(9,9))
    1029910294
    1030010295#quit()
Note: See TracChangeset for help on using the changeset viewer.