Changeset 9478
- Timestamp:
- Jan 21, 2015, 8:35:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file_conversion/test/test_urs2sww.py
r9475 r9478 16 16 from anuga.coordinate_transforms.redfearn import redfearn 17 17 18 from urs2sww import urs2sww, urs_ungridded2sww19 import urs18 from anuga.file_conversion.urs2sww import urs2sww, urs_ungridded2sww 19 import anuga.file.urs as urs 20 20 21 21 from anuga.file.mux import WAVEHEIGHT_MUX_LABEL, EAST_VELOCITY_LABEL, \ … … 435 435 os.remove( base_name + '.sww') 436 436 437 def cache_test_URS_points_needed_and_urs_ungridded2sww(self):438 439 ll_lat = -21.5440 ll_long = 114.5441 grid_spacing = 1./60.442 lat_amount = 30443 long_amount = 30444 time_step_count = 2445 time_step = 400446 tide = -200000447 zone = 50448 449 boundary_polygon = [[250000,7660000],[270000,7650000],450 [280000,7630000],[250000,7630000]]451 geo=URS_points_needed(boundary_polygon, zone,452 ll_lat, ll_long, grid_spacing,453 lat_amount, long_amount, use_cache=True,454 verbose=True)455 456 def visual_test_URS_points_needed_and_urs_ungridded2sww(self):457 458 ll_lat = -21.5459 ll_long = 114.5460 grid_spacing = 1./60.461 lat_amount = 30462 long_amount = 30463 time_step_count = 2464 time_step = 400465 tide = -200000466 zone = 50467 468 boundary_polygon = [[250000,7660000],[270000,7650000],469 [280000,7630000],[250000,7630000]]470 geo=URS_points_needed(boundary_polygon, zone,471 ll_lat, ll_long, grid_spacing,472 lat_amount, long_amount)473 lat_long = geo.get_data_points(as_lat_long=True)474 base_name, files = self.write_mux(lat_long,475 time_step_count, time_step)476 urs2sww(base_name, mean_stage=tide)477 self.delete_mux(files)478 os.remove( base_name + '.sww')479 # extend this so it interpolates onto the boundary.480 # have it fail if there is NaN481 437 482 438
Note: See TracChangeset
for help on using the changeset viewer.