Ignore:
Timestamp:
Nov 23, 2011, 4:39:01 PM (13 years ago)
Author:
acolaitis
Message:

PYTHON. Moved the nolow mode to an option (--nolow) and re-arranged the way -H worked in planetoplot, by introducing a new function (hole_bounds). Bounds is called in normal cases and hole_bounds in -H cases. Minor corrections in mcs.py for missing values comming from zrecast.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UTIL/PYTHON/myplot.py

    r409 r418  
    651651    return what_I_plot
    652652
     653
     654## Author : AC
     655def hole_bounds(what_I_plot,zevmin,zevmax):
     656    import numpy as np
     657    zi=0
     658    for i in what_I_plot:
     659        zj=0
     660        for j in i:
     661            if ((j < zevmin) or (j > zevmax)):what_I_plot[zi,zj]=np.NaN
     662            zj=zj+1
     663        zi=zi+1
     664
     665    return what_I_plot
     666
    653667## Author: AS
    654668def zoomset (wlon,wlat,zoom):
Note: See TracChangeset for help on using the changeset viewer.