Changeset 8718
- Timestamp:
- Feb 26, 2013, 7:04:13 PM (12 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/file_function.py
r8149 r8718 189 189 fid.close() 190 190 191 # FIXME SR: This test doesn't seem to work with netcdf4 191 192 if line[:3] == 'CDF': 192 193 return get_netcdf_file_function(filename, … … 250 251 251 252 if interpolation_points is not None: 253 254 #interpolation_points = num.array(interpolation_points, num.float) 252 255 interpolation_points = ensure_absolute(interpolation_points) 253 256 msg = 'Points must by N x 2. I got %d' % interpolation_points.shape[1] … … 294 297 # Get first timestep 295 298 try: 296 starttime = fid.starttime [0]299 starttime = fid.starttime 297 300 except ValueError: 298 301 msg = 'Could not read starttime from file %s' % filename … … 335 338 if spatial: 336 339 # Get origin 337 xllcorner = fid.xllcorner[0] 338 yllcorner = fid.yllcorner[0] 339 zone = fid.zone[0] 340 #xllcorner = fid.xllcorner[0] 341 #yllcorner = fid.yllcorner[0] 342 #zone = fid.zone[0] 343 344 xllcorner = fid.xllcorner 345 yllcorner = fid.yllcorner 346 zone = fid.zone 340 347 341 348 x = fid.variables['x'][:] -
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/gauge.py
r8615 r8718 223 223 224 224 if quake_offset_time is None: 225 quake_offset_time = callable_sww.starttime 225 quake_offset_time = callable_sww.starttime[0] 226 226 227 227 for point_i, point in enumerate(points_array): … … 230 230 quake_time = time + quake_offset_time 231 231 point_quantities = callable_sww(time, point_i) # __call__ is overridden 232 232 233 233 234 if point_quantities[0] != NAN: -
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/test_gauge.py
r8716 r8718 132 132 line=[] 133 133 for i,row in enumerate(point1_reader): 134 #print 'i',i,'row',row134 #print 'i',i,'row',row 135 135 line.append([float(row[0]),float(row[1]),float(row[2]),float(row[3]), 136 136 float(row[4]),float(row[5]),float(row[6])]) -
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r8690 r8718 43 43 time_thinning, time_limit, verbose, use_cache, 44 44 boundary_polygon, output_centroids) 45 46 45 47 46 48 def multiple_replace(text, dictionary): -
trunk/anuga_core/source/anuga/coordinate_transforms/geo_reference.py
r8125 r8718 136 136 """ 137 137 138 self.xllcorner = float(infile.xllcorner[0]) 139 self.yllcorner = float(infile.yllcorner[0]) 140 self.zone = int(infile.zone[0]) 138 #self.xllcorner = float(infile.xllcorner[0]) 139 #self.yllcorner = float(infile.yllcorner[0]) 140 #self.zone = int(infile.zone[0]) 141 142 143 self.xllcorner = float(infile.xllcorner) 144 self.yllcorner = float(infile.yllcorner) 145 self.zone = int(infile.zone) 141 146 142 147 try: 143 self.false_easting = int(infile.false_easting[0]) 144 self.false_northing = int(infile.false_northing[0]) 148 #self.false_easting = int(infile.false_easting[0]) 149 #self.false_northing = int(infile.false_northing[0]) 150 151 self.false_easting = int(infile.false_easting) 152 self.false_northing = int(infile.false_northing) 145 153 146 154 self.datum = infile.datum
Note: See TracChangeset
for help on using the changeset viewer.