Changeset 6028


Ignore:
Timestamp:
Nov 28, 2008, 11:50:28 AM (16 years ago)
Author:
kristy
Message:

general maintenance of scripts

Location:
anuga_work/production/patong
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/patong/asc2raster_WGS84z47N.py

    r5971 r6028  
    2626
    2727
    28 time_dir1 = '20081113_153848_run_final_0_kvanputt'
     28time_dir1 = '20081117_142008_run_final_0_kvanputt'
    2929
    3030time_dirs = [time_dir1]
     
    3838   
    3939    # Process: Create File GDB...
    40     gp.CreateFileGDB_management(folder, "raster")
     40   # gp.CreateFileGDB_management(folder, "raster")
    4141
    4242    gp.Workspace = raster_gbd
     
    4949
    5050    generate_filename = []
    51     input_ascii = glob.glob(folder + '*.asc')
     51    input_ascii = glob.glob(folder + '*ion.asc')
    5252
    5353    for infile in input_ascii:
  • anuga_work/production/patong/build_patong.py

    r5971 r6028  
    8282
    8383print 'clipping outside extents'
    84 G3_clip1 = G3.clip_outside(project.extent_elev_dir1, verbose=True)
     84G1_clip = G1.clip(project.extent_elev_dir4, verbose=True)
     85G3_clip1 = G3.clip_outside(project.extent_elev_dir4, verbose=True)
    8586G3_clip2 =G3_clip1.clip_outside(project.extent_elev_dir2, verbose=True)
    8687G4_clip = G4.clip_outside(project.extent_elev_dir3, verbose=True)
     
    8889#print 'hello', dir(G3_clip1), dir(G3_clip1), dir(G4_clip)
    8990print'add all geospatial objects'
    90 G = G1 + G2 + G3_clip1 + G3_clip2 + G4_clip
     91G = G1_clip + G2 + G3_clip1 + G3_clip2 + G4_clip
    9192
    9293print'clip combined geospatial object by bounding polygon'
  • anuga_work/production/patong/export_results_max.py

    r5971 r6028  
    1313import project, os
    1414import sys
     15from anuga.lib.maxasc.maxasc import MaxAsc
    1516from anuga.shallow_water.data_manager import convert_dem_from_ascii2netcdf, dem2pts
    1617from anuga.shallow_water.data_manager import sww2dem
    1718from os import sep
    18 import maxasc
    1919
    2020directory = project.output_dir
    2121
    22 time_dir1 = '20081113_153848_run_final_0_kvanputt'
     22time_dir1 = '20081126_141801_run_final_0.8_kvanputt'
    2323
    2424time_dirs = [time_dir1]
     
    4949
    5050# one or more key strings from var_equations above
    51 var = ['stage', 'elevation']
     51var = ['stage', 'elevation', 'depth', 'speed']
    5252
    5353######
     
    110110##            print 'asc_name ', str(asc_name)
    111111##           
    112 ##            maxasc.MaxAsc(maxasc_outname, asc_name)
     112##            MaxAsc(maxasc_outname, asc_name)
  • anuga_work/production/patong/project.py

    r5971 r6028  
    4242# Model specific parameters. One or all can be changed each time the
    4343# run_scenario script is executed
    44 tide = 0               #0.8
     44tide = 0.8               #0.8
    4545alpha = 0.1             # smoothing parameter for mesh
    4646friction=0.01           # manning's friction coefficient
     
    163163extent_elev_dir2 = read_polygon(polygons_dir + 'saddle_10m.txt')
    164164extent_elev_dir3 = read_polygon(polygons_dir + 'patong_1s.txt')
     165extent_elev_dir4 = read_polygon(polygons_dir + 'patong_10m_aos.txt')
    165166
    166167#Land, to set the initial stage/water to be offcoast only
     
    179180res_aos1 = 1000*res_factor
    180181
     182# Area of Shallow water and coastal land that needs a finer res than 1000000
     183poly_sw = read_polygon(polygons_dir+'sw.csv')
     184res_sw = 2000*res_factor
     185
    181186# Combined all regions, must check that all are included!
    182 interior_regions = [[poly_aoi1,res_aoi1],[poly_aos1,res_aos1]]
     187interior_regions = [[poly_aoi1,res_aoi1],[poly_aos1,res_aos1]
     188                    ,[poly_sw,res_sw]]
    183189                 
    184190   
  • anuga_work/production/patong/run_patong.py

    r5971 r6028  
    224224   
    225225    kwargs={}
     226    kwargs['file_name']=project.dir_comment
    226227    kwargs['finaltime']=project.finaltime
    227228    kwargs['output_dir']=project.output_run_time_dir
Note: See TracChangeset for help on using the changeset viewer.