Changeset 8845


Ignore:
Timestamp:
Apr 20, 2013, 12:48:13 PM (12 years ago)
Author:
steve
Message:

Small change to plot_util to use both netcdf from scientific python and netcdf4

Location:
trunk/anuga_core/source
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/compile_all.py

    r8843 r8845  
    6363
    6464#====================================================================
    65 os.chdir('..')
    66 os.chdir('utilities')
    67 try:
    68     from anuga.utilities.system_tools  import store_version_info
    69     store_version_info()
    70     print
    71     print "---------------------------------"
    72     print 'Storing of version info succeeded'
    73     print "---------------------------------"
    74     print
    75 except:
    76     print
    77     print "----------------------------------------------------------------"
    78     print 'Storage of version info failed (just means svn is not available)'
    79     print "----------------------------------------------------------------"
    80     print
     65#os.chdir('..')
     66#os.chdir('utilities')
     67#try:
     68#    from anuga.utilities.system_tools  import store_version_info
     69#    store_version_info(verbose=True)
     70#    print
     71#    print "---------------------------------"
     72#    print 'Storing of version info succeeded'
     73#    print "---------------------------------"
     74#    print
     75#except:
     76#    print
     77#    print "----------------------------------------------------------------"
     78#    print 'Storage of version info failed (just means svn is not available)'
     79#    print "----------------------------------------------------------------"
     80#    print
    8181
    8282os.chdir(BUILDROOT)
  • trunk/anuga_core/source/anuga/utilities/plot_utils.py

    r8780 r8845  
    152152
    153153    # Read variables
    154     x=fid.variables['x']
    155     x=x.getValue()
    156     y=fid.variables['y']
    157     y=y.getValue()
    158 
    159     stage=fid.variables['stage']
    160     stage=stage.getValue()
    161 
    162     elev=fid.variables['elevation']
    163     elev=elev.getValue()
    164 
    165     xmom=fid.variables['xmomentum']
    166     xmom=xmom.getValue()
    167 
    168     ymom=fid.variables['ymomentum']
    169     ymom=ymom.getValue()
    170 
    171     time=fid.variables['time']
    172     time=time.getValue()
    173 
    174     vols=fid.variables['volumes']
    175     vols=vols.getValue()
     154    x=fid.variables['x'][:]
     155    #x=x.getValue()
     156    y=fid.variables['y'][:]
     157    #y=y.getValue()
     158
     159    stage=fid.variables['stage'][:]
     160    #stage=stage.getValue()
     161
     162    elev=fid.variables['elevation'][:]
     163    #elev=elev.getValue()
     164
     165    xmom=fid.variables['xmomentum'][:]
     166    #xmom=xmom.getValue()
     167
     168    ymom=fid.variables['ymomentum'][:]
     169    #ymom=ymom.getValue()
     170
     171    time=fid.variables['time'][:]
     172    #time=time.getValue()
     173
     174    vols=fid.variables['volumes'][:]
     175    #vols=vols.getValue()
    176176
    177177
Note: See TracChangeset for help on using the changeset viewer.