Ignore:
Timestamp:
Nov 18, 2011, 1:51:41 PM (13 years ago)
Author:
acolaitis
Message:

PYTHON:

  • Improved handling of missing values NaN by min() and max() functions
  • Added the possibility to change the viewing angle of "ortho" projections by using --blat. Default is meanlat. (remember than in spstere and npstere projections, blat already controls the boundling latitude)
  • Changed colorbar of "operation" plots to RdBu_r, whatever the colorbar of other plots are. The thinking behind this is that this is a symmetrical colorbar, which is very usefull for difference plots. (could be changed for other operations.)
File:
1 edited

Legend:

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

    r396 r398  
    488488    meanlat = 0.5*(wlat[0]+wlat[1])
    489489    if blat is None:
     490        ortholat=meanlat
    490491        if   wlat[0] >= 80.:   blat =  40.
    491492        elif wlat[1] <= -80.:  blat = -40.
    492493        elif wlat[1] >= 0.:    blat = wlat[0]
    493494        elif wlat[0] <= 0.:    blat = wlat[1]
     495    else:  ortholat=blat
    494496    #print "blat ", blat
    495497    h = 50.  ## en km
     
    498500                              llcrnrlat=wlat[0],urcrnrlat=wlat[1],llcrnrlon=wlon[0],urcrnrlon=wlon[1])
    499501    elif char == "moll":    m = Basemap(rsphere=radius,projection='moll',lon_0=meanlon)
    500     elif char == "ortho":   m = Basemap(rsphere=radius,projection='ortho',lon_0=meanlon,lat_0=meanlat)
     502    elif char == "ortho":   m = Basemap(rsphere=radius,projection='ortho',lon_0=meanlon,lat_0=ortholat)
    501503    elif char == "lcc":     m = Basemap(rsphere=radius,projection='lcc',lat_1=meanlat,lat_0=meanlat,lon_0=meanlon,\
    502504                              llcrnrlat=wlat[0],urcrnrlat=wlat[1],llcrnrlon=wlon[0],urcrnrlon=wlon[1])
     
    605607             "T_NADIR_DAY":  "%.0f",\
    606608             "T_NADIR_NIT":  "%.0f",\
     609             "TEMP_DAY":     "%.0f",\
     610             "TEMP_NIGHT":   "%.0f",\
    607611             "tpot":         "%.0f",\
    608612             "TSURF":        "%.0f",\
Note: See TracChangeset for help on using the changeset viewer.