Ignore:
Timestamp:
Jul 20, 2011, 4:11:27 PM (13 years ago)
Author:
aslmd
Message:

MESOSCALE: small adjustments to graphical Python routines (to make nice cloud plots)

Location:
trunk/MESOSCALE_DEV/PLOT/PYTHON
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE_DEV/PLOT/PYTHON/mylib/myplot.py

    r233 r237  
    165165    from numpy import array
    166166    nc  = Dataset(namefile)
     167    zetime = None
    167168    if 'Times' in nc.variables:
    168169        zetime = nc.variables['Times'][0]
     
    476477             "HFX":          "%.0f",\
    477478             "ICETOT":       "%.1e",\
     479             "TAU_ICE":      "%.2f",\
    478480                    }
    479481    if whichvar not in fmtvar:
     
    492494             "HFX":          "RdYlBu",\
    493495             "ICETOT":       "YlGnBu",\
     496             "TAU_ICE":      "YlGnBu",\
    494497                     }
    495498    if whichone not in whichcolorb:
  • trunk/MESOSCALE_DEV/PLOT/PYTHON/scripts/makefig.sh

    r233 r237  
    44 file1="$fold/POLAR_THOMAS_ls50/wrfout_d03_2024-02-45_06:00:00"
    55 file2="$fold/POLAR_THOMAS_ls20/wrfout_d03_2024-01-42_06:00:00"
    6  file3="$fold/POLAR_THOMAS_ls0/wrfout_d03_2024-01-06_06:00:00"
    7  file4="$fold/POLAR_THOMAS_ls10/wrfout_d03_2024-01-19_06:00:00"
     6 #file3="$fold/POLAR_THOMAS_ls0/wrfout_d03_2024-01-06_06:00:00"
     7 file3="$fold/POLAR_THOMAS_ls10/wrfout_d03_2024-01-19_06:00:00"
    88 dest="/u/aslmd/WWW/antichambre/thomas/"
    99
     
    1313           -v USTM -m   0. -M 0.8 \
    1414           -v HGT  -m   0  -M 0 \
    15            -f $file1 -f $file2 -f $file3 -f $file4 \
     15           -f $file1 -f $file2 -f $file3 \
    1616           -d
  • trunk/MESOSCALE_DEV/PLOT/PYTHON/scripts/winds.py

    r233 r237  
    3333    ### Load librairies and functions
    3434    from netCDF4 import Dataset
    35     from myplot import getcoord2d,define_proj,makeplotpng,simplinterv,vectorfield,ptitle,latinterv,getproj,wrfinterv,dumpbdy,\
     35    from myplot import getcoord2d,define_proj,makeplotpng,makeplotpngres,simplinterv,vectorfield,ptitle,latinterv,getproj,wrfinterv,dumpbdy,\
    3636                       fmtvar,definecolorvec,defcolorb,getprefix,putpoints,calculate_bounds,errormess,definesubplot,\
    3737                       zoomset,getcoorddef,getwinddef,whatkindfile,reducefield,bounds,getstralt,getfield
     
    8787
    8888       ### Which local time ?
    89        print interv[0], interv[1], itime
     89       #print interv[0], interv[1], itime
    9090       ltst = ( interv[0] + 0.5*(wlon[0]+wlon[1])/15.) + itime*interv[1]
    9191       ltst = int (ltst * 10) / 10.
     
    122122               palette = get_cmap(name=colorb)
    123123               if not tile:
    124                    hole = True
    125                    hole = None
     124                   if var in ["TAU_ICE","ICETOT"]: hole = True #nice plots with vis img
    126125                   if not hole:  what_I_plot = bounds(what_I_plot,zevmin,zevmax)
    127126                   zelevels = np.linspace(zevmin,zevmax)
     
    178177    else:               zeplot = target + "/" + zeplot 
    179178    ###
    180     if found_lct:     makeplotpng(zeplot,pad_inches_value=0.35,disp=display)   
     179    #if found_lct:     makeplotpng(zeplot,pad_inches_value=0.35,disp=display)   
     180    if found_lct:     makeplotpng(zeplot,disp=display)
     181    #if found_lct:     makeplotpngres(zeplot,200,disp=display)
    181182    else:             print "Local time not found"
    182183
Note: See TracChangeset for help on using the changeset viewer.