NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

Changeset 122

Show
Ignore:
Timestamp:
03/12/08 18:47:21
Author:
cbc
Message:

Save figures instead of show in arrayData._main.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sodar/trunk/sodar/arrayData.py

    r121 r122  
    6969    formattedDataObject = formattedData.FormattedData(rawDataObject) 
    7070    arrayDataObject = ArrayData(formattedDataObject) 
     71     
    7172    import pylab as p 
    72     p.figure() 
     73     
     74    home = '/home/cbcoasis/Plots/' 
     75     
     76    fig = p.figure() 
    7377    p.pcolor(arrayDataObject.uComponents.T) 
    7478    p.colorbar() 
    75     p.figure() 
     79    fig.savefig(home + 'uComponents.png') 
     80     
     81    fig = p.figure() 
    7682    p.pcolor(arrayDataObject.vComponents.T) 
    7783    p.colorbar() 
    78     p.figure() 
     84    fig.savefig(home + 'vComponents.png') 
     85     
     86    fig = p.figure() 
    7987    p.pcolor(arrayDataObject.wComponents.T) 
    8088    p.colorbar() 
    81     p.figure() 
     89    fig.savefig(home + 'wComponents.png') 
     90 
     91    fig = p.figure() 
    8292    p.pcolor(arrayDataObject.echoStrengths.T) 
    8393    p.colorbar() 
    84     p.figure() 
     94    fig.savefig(home + 'echoStrengths.png') 
     95 
     96    fig = p.figure() 
    8597    p.quiver(arrayDataObject.uComponents, 
    8698             arrayDataObject.vComponents, 
     
    91103    p.axis([xmin-0.1*dx, xmax+0.1*dx, ymin-0.1*dy, ymax+0.1*dy]) 
    92104    p.title('Horizontal wind vectors: time vs. altitude') 
    93     p.show(
     105    fig.savefig(home + 'quiver.png'
    94106 
    95107if __name__ == "__main__":