Changeset 9478


Ignore:
Timestamp:
Jan 21, 2015, 8:35:59 PM (10 years ago)
Author:
steve
Message:

Cleaned up file_conversion folder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion/test/test_urs2sww.py

    r9475 r9478  
    1616from anuga.coordinate_transforms.redfearn import redfearn     
    1717
    18 from urs2sww import urs2sww, urs_ungridded2sww
    19 import urs
     18from anuga.file_conversion.urs2sww import urs2sww, urs_ungridded2sww
     19import anuga.file.urs as urs
    2020
    2121from anuga.file.mux import WAVEHEIGHT_MUX_LABEL, EAST_VELOCITY_LABEL, \
     
    435435        os.remove( base_name + '.sww')
    436436   
    437     def cache_test_URS_points_needed_and_urs_ungridded2sww(self):
    438        
    439         ll_lat = -21.5
    440         ll_long = 114.5
    441         grid_spacing = 1./60.
    442         lat_amount = 30
    443         long_amount = 30
    444         time_step_count = 2
    445         time_step = 400
    446         tide = -200000
    447         zone = 50
    448 
    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.5
    459         ll_long = 114.5
    460         grid_spacing = 1./60.
    461         lat_amount = 30
    462         long_amount = 30
    463         time_step_count = 2
    464         time_step = 400
    465         tide = -200000
    466         zone = 50
    467 
    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 NaN
    481437
    482438
Note: See TracChangeset for help on using the changeset viewer.