Changeset 4283


Ignore:
Timestamp:
Feb 27, 2007, 9:40:26 AM (18 years ago)
Author:
duncan
Message:

working on updated urs2sww

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/data_manager.py

    r4281 r4283  
    44054405    geo.export_points_file(file_name)
    44064406   
    4407 def URS_points_needed(boundary_polygon, ll_lat, ll_long, grid_spacing,
    4408                       lat_amount, long_amount, zone=None):
     4407def URS_points_needed(boundary_polygon, ll_lat=-50.0,
     4408                      ll_long=80.0, grid_spacing=1.0/60.0,
     4409                      lat_amount=4800, long_amount=3600, zone=None):
    44094410    """
    44104411
     
    44854486    #print "last_row",last_row_lat
    44864487
    4487     ul_lat = ll_lat + grid_spacing*lat_amount
    4488     ul_lat_close = ul_lat - grid_spacing
    4489     ll_long_close = ll_long + grid_spacing   
    4490     _ , x, y = redfearn(ul_lat, ll_long)   
    4491     _ , _, y_close = redfearn(ul_lat_close, ll_long)   
    4492     _ , x_close, _ = redfearn(ul_lat, ll_long_close)
    4493 
    4494    
    4495     max_distance = sqrt_2_rounded_up * max(x-x_close,y - y_close)
     4488    # to work out the max distance -
     4489    # 111120 - horizontal distance between 1 deg latitude.
     4490    #max_distance = sqrt_2_rounded_up * 111120 * grid_spacing
     4491    max_distance = 157147.4112 * grid_spacing
     4492    #print "max_distance", max_distance #2619.12 m for 1 minute
    44964493    points_lat_long = []
    44974494    # Create a list of the lat long points to include.
Note: See TracChangeset for help on using the changeset viewer.