Changeset 1103


Ignore:
Timestamp:
Mar 17, 2005, 7:20:38 PM (20 years ago)
Author:
ole
Message:

small change in ferret2sww

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/data_manager.py

    r1102 r1103  
    13821382           
    13831383    #Start time in seconds since the epoch (midnight 1/1/1970)
    1384     outfile.starttime = times[0]
     1384    outfile.starttime = starttime = times[0]
     1385    times = times - starttime  #Store relative times
    13851386   
    13861387    # dimension definitions
     
    14881489    outfile.variables['z'][:] = z
    14891490    outfile.variables['elevation'][:] = z  #FIXME HACK
    1490     outfile.variables['time'][:] = times - times[0] #Store time relative
     1491    outfile.variables['time'][:] = times   #Store time relative
    14911492    outfile.variables['volumes'][:] = volumes.astype(Int32) #On Opteron 64
    14921493   
     
    15241525        print '    Lower left corner: [%f, %f]'\
    15251526              %(xllcorner, yllcorner)
    1526         print '    Start time: %f' %times[0]
     1527        print '    Start time: %f' %starttime
    15271528        print '  Extent:'
    15281529        print '    x [m] in [%f, %f], len(x) == %d'\
Note: See TracChangeset for help on using the changeset viewer.