Changeset 941
- Timestamp:
- Feb 22, 2005, 3:23:43 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/data_manager.py
r939 r941 1349 1349 outfile.close() 1350 1350 1351 1352 1351 1352 def extent_sww(file_name): 1353 """ 1354 Read in an sww file. 1355 1356 Input; 1357 file_name - the sww file 1358 1359 Output; 1360 z - Vector of bed elevation 1361 volumes - Array. Each row has 3 values, representing 1362 the vertices that define the volume 1363 time - Vector of the times where there is stage information 1364 stage - array with respect to time and vertices (x,y) 1365 """ 1366 1367 1368 from Scientific.IO.NetCDF import NetCDFFile 1369 1370 #Check contents 1371 #Get NetCDF 1372 fid = NetCDFFile(file_name, 'r') 1373 1374 # Get the variables 1375 x = fid.variables['x'][:] 1376 y = fid.variables['y'][:] 1377 return [min(x),max(x),min(y),max(y)] 1353 1378 1354 1379
Note: See TracChangeset
for help on using the changeset viewer.