Ignore:
Timestamp:
Nov 5, 2011, 6:54:37 PM (13 years ago)
Author:
aslmd
Message:

PYTHON GRAPHICS: A REFERENCE VERSION FOR BOTH GCM AND MESOSCALE USE!

Merged recent changes by TN for better GCM handling + 1D/2D plots with AS mesoscale version [winds.py]

Now

  • there is a common function named planetoplot in planetoplot.py which supports both GCM and mesoscale plots

    this will be a common reference for future development

  • mesoscale users might want to use the script meso.py
  • GCM users might want to use the script gcm.py

Todo

  • a few capabilities that were in winds.py are broken in meso.py, this will be fixed soon. the 'old' reference script winds.py is still here anyway!
  • there is still a bug with 'ortho' projection with GCM fields. still searching...

Misc

  • A few modifications were done in myplot.py and mymath.py
  • Added a simple stupid little.py script illustrating very simple use of Python graphics
  • Added the script doing statistical analysis for dust devils
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/PYTHON/mymath.py

    r345 r349  
    11def min (field,axis=None):
    22        import numpy as np
    3         return np.array(field).min(axis=axis)
     3        if field is None: return None
     4        else: return np.array(field).min(axis=axis)
    45
    56def max (field,axis=None):
     
    1011def mean (field,axis=None):
    1112        import numpy as np
    12         return np.array(field).mean(axis=axis)
     13        if field is None: return None
     14        else: return np.array(field).mean(axis=axis)
    1315
    1416def deg ():
Note: See TracChangeset for help on using the changeset viewer.