Changeset 7799
- Timestamp:
- Jun 7, 2010, 11:41:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/anuga_1_1/anuga_work/production/bunbury_storm_surge_2009/process_gems_grids.py
r7794 r7799 122 122 # print 'third block' 123 123 124 if i > 13 + 3*nrowsand i < (14 + 4*nrows):124 if i > (13 + 3*nrows) and i < (14 + 4*nrows): 125 125 d += L.strip().split() 126 126 … … 158 158 no_value_index = numpy.where(((depth < -9000) + (current_x < -9000) + (current_y < -9000)) == True)[0] 159 159 160 numpy.put(stage, no_value_index, -9999)161 numpy.put(current_x, no_value_index, -9999)162 numpy.put(current_y, no_value_index, -9999)163 numpy.put(depth, no_value_index, 0)160 #numpy.put(stage, no_value_index, -9999) 161 #numpy.put(current_x, no_value_index, -9999) 162 #numpy.put(current_y, no_value_index, -9999) 163 #numpy.put(depth, no_value_index, 0) 164 164 165 165 # Taking absolute value is to account for -ve depths obtained when depth-elevation … … 174 174 ymomentum = current_y*depth #momentum*numpy.cos(numpy.radians(current_y)) 175 175 176 numpy.put(stage, no_value_index, 0) 176 177 numpy.put(xmomentum, no_value_index, 0) 177 178 numpy.put(ymomentum, no_value_index, 0)
Note: See TracChangeset
for help on using the changeset viewer.