Changeset 6969


Ignore:
Timestamp:
May 5, 2009, 3:06:24 PM (11 years ago)
Author:
jgriffin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/maningrida/Arc_asc2raster_GDA94z53.py

    r6964 r6969  
    2222gp.overwriteoutput = 0
    2323
    24 scenario_dir = "\\\\nas2\\gemd\\georisk_models\\inundation\\data\\australia_ph2\\ceduna\\"
     24scenario_dir = "\\\\nas2\\gemd\\georisk_models\\inundation\\data\\australia_ph2\\maningrida\\"
    2525output_dir="anuga\\outputs\\"
    2626
    27 time_dir1 = '20090225_153629_run_final_0_64469_mhingee'
     27time_dir1 = '20090415_123320_run_final_0_64970_1878_Tb__kvanputt'
     28time_dir2 = '20090418_092859_run_final_0_71078_1878_Tb__kvanputt'
     29time_dir3 = '20090421_012030_run_final_0_71141_1878_Tb__kvanputt'
     30time_dir4 = '20090422_115416_run_final_0_64970_1878_Tb_internal_mhingee'
    2831
    29 time_dirs = [time_dir1] #, time_dir2] #4, time_dir5] #, time_dir3, time_dir4, time_dir5, time_dir6]
    30  
    31 for time_dir in time_dirs:
    3232
     33events = [[time_dir1,0.430643],[time_dir2,0.462943],[time_dir3,0.418183],[time_dir4,0.418183]]
     34
     35for event in events:
     36##for time_dir in time_dirs:
     37    time_dir = event[0]
     38    max_wave = event[1]
    3339    # Local variables...
    3440    folder = scenario_dir + output_dir + time_dir +'\\'
    3541    raster_gbd = folder + 'raster.gdb'
    36     land = scenario_dir + "map_work\\Busselton.gdb\\Internal_polygons\\initial_conditions_extend_Di"
    37     ocean = scenario_dir + "map_work\\Busselton.gdb\\input_boundaries\\Ocean"
     42##    land = scenario_dir + "map_work\\Busselton.gdb\\Internal_polygons\\initial_conditions_extend_Di"
     43##    ocean = scenario_dir + "map_work\\Busselton.gdb\\input_boundaries\\Ocean"
    3844
    3945   
     
    4652   
    4753    #replication dictionary
    48     replicate = (('ceduna', ''),('_', ''),
     54    replicate = (('maningrida', ''),('_', ''),
    4955                 ('depth','_depth'),('speed', '_speed'),
    5056                 ('elevation', '_ele_'), ('stage','_stage'))
     
    7682##        print 'Process: Extract by Mask'
    7783##        gp.ExtractByMask_sa(output_DEM, land, output_extract)
     84        # do this bit only if there are only stage asc files
     85div_file = output_DEM.replace('stage','div_stage')
     86print 'divide', output_DEM,' by', max_wave,' and call',div_file
     87gp.Divide_sa(output_DEM,max_wave,div_file)
    7888
    7989
     90
Note: See TracChangeset for help on using the changeset viewer.