Changeset 1114 for inundation/ga/storm_surge/pyvolution/data_manager.py
- Timestamp:
- Mar 22, 2005, 11:06:52 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/data_manager.py
r1113 r1114 1186 1186 fail_on_NaN = True, 1187 1187 NaN_filler = 0, 1188 elevation = -100): #FIXME: Bathymetry should be obtained 1188 elevation = -100 1189 ): #FIXME: Bathymetry should be obtained 1189 1190 #from MOST somehow. 1190 1191 #Alternatively from elsewhere … … 1495 1496 1496 1497 1497 if elevation sis not None:1498 z = elevation s1498 if elevation is not None: 1499 z = elevation 1499 1500 else: 1500 pass 1501 if inverted_bathymetry: 1502 z = -1*elevations 1503 else: 1504 z = elevations 1501 1505 #FIXME: z should be obtained from MOST and passed in here 1502 1506 … … 1513 1517 stage = outfile.variables['stage'] 1514 1518 xmomentum = outfile.variables['xmomentum'] 1515 ymomentum = outfile.variables['ymomentum'] 1519 ymomentum = outfile.variables['ymomentum'] 1520 z = outfile.variables['elevation'] 1516 1521 1517 1522 … … 1525 1530 w = zscale*amplitudes[j,k,l]/100 + mean_stage 1526 1531 stage[j,i] = w 1527 h = w - z 1532 h = w - z[j,i] 1528 1533 xmomentum[j,i] = uspeed[j,k,l]/100*h 1529 1534 ymomentum[j,i] = vspeed[j,k,l]/100*h … … 1534 1539 x = outfile.variables['x'][:] 1535 1540 y = outfile.variables['y'][:] 1536 1537 1541 print '------------------------------------------------' 1538 1542 print 'Statistics of output file:'
Note: See TracChangeset
for help on using the changeset viewer.