Changeset 6592


Ignore:
Timestamp:
Mar 24, 2009, 12:13:42 PM (15 years ago)
Author:
ole
Message:

Made changes to Patong so that STS files are stored at mean sea level.
The tidal correction should happen in Field_boundary only.
Also added notes about the danger of not recomputing the STS file.

Location:
anuga_work/production/patong/new_version
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/patong/new_version/build_urs_boundary.py

    r6418 r6592  
    140140                weights=mux_weights,
    141141                zone=project.zone,
    142                 mean_stage=project.tide,
     142                mean_stage=0.0, # NOTE: This has to be 0.0 if we use mean_stage in Field_boundary
    143143                verbose=True)
    144144    else:                           # a single mux stem file, assume 1.0 weight
     
    158158                ordering_filename=order_filename,
    159159                weights=mux_weights,
    160                 mean_stage=project.tide,
     160                mean_stage=0.0,  # NOTE: This has to be 0.0 if we use mean_stage in Field_boundary
    161161                verbose=True)
    162162
  • anuga_work/production/patong/new_version/run_model.py

    r6542 r6592  
    6868
    6969# Create the STS file
     70# FIXME (Ole): This is deadly dangerous if buildcode changes (as was the case 24th March 2009)
     71# We need to use caching instead!
     72
    7073print 'project.mux_data_folder=%s' % project.mux_data_folder
    7174if not os.path.exists(project.event_sts + '.sts'):
     
    140143    #clipping_polygons=project.building_area_polygons)
    141144
    142     print 'Creating %d building polygons' % len(building_polygons)
    143145    def create_polygon_function(building_polygons, geo_reference=None):
    144146        L = []
     
    153155        return buildings
    154156
     157    print 'Creating %d building polygons' % len(building_polygons)
    155158    buildings = cache(create_polygon_function,
    156159                      building_polygons,
Note: See TracChangeset for help on using the changeset viewer.