Changeset 6942


Ignore:
Timestamp:
May 1, 2009, 1:37:13 PM (16 years ago)
Author:
myall
Message:
 
Location:
anuga_work/production/australia_ph2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/albany/Arc_asc2raster_GDA94z50.py

    r6842 r6942  
    2929time_dir3 = '20090409_010309_run_final_0_46697_1330_Tb__mhingee'
    3030
    31 events = [[time_dir1,0.395764],[time_dir2,0.390969],[time_dir3,0.392536]]
     31time_dir4 = '20090421_165204_run_final_0_64344_1330_Tb_internal_mhingee'
    3232
    33 for event in events:
    34 ##for time_dir in time_dirs:
    35     time_dir = event[0]
    36     max_wave = event[1]
    37     print time_dir
    38     print max_wave
     33##time_dirs = [time_dir1, time_dir2]#, time_dir3]
     34time_dirs = [time_dir2]
     35
     36for time_dir in time_dirs:
    3937    # Local variables...
    4038    folder = scenario_dir + output_dir +  time_dir +'\\'
     
    4341##    ocean = scenario_dir + "map_work\\\port_hedland.gdb\\outlines\\initial_conditions_ocean"
    4442
    45     print 'Process: Create File GDB'
    46     gp.CreateFileGDB_management(folder, "raster")
     43##    print 'Process: Create File GDB'
     44##    gp.CreateFileGDB_management(folder, "raster")
    4745
    4846    gp.Workspace = raster_gbd
     
    5755
    5856    generate_filename = []
    59     input_ascii = glob.glob(folder + '*stage.asc')
     57    input_ascii = glob.glob(folder + '*elevation.asc')
    6058
    6159    for infile in input_ascii:
     
    7573
    7674        print 'Process: Define Projection'
    77         # GDA_1994_MGA_Zone_54
     75        #GDA_1994_MGA_Zone_54
    7876        gp.DefineProjection_management(output_DEM, "PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]"
    7977                                                   ",PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996]"
     
    8381##        print 'Process: Extract by Mask'
    8482##        gp.ExtractByMask_sa(output_DEM, land, output_extract)
    85        
    86         div_file = output_DEM.replace('stage','div_stage')
    87         if not div_file == output_DEM:
    88             print 'divide', output_DEM,' by', max_wave,' and call',div_file
    89             gp.Divide_sa(output_DEM,max_wave,div_file)
    9083
     84
  • anuga_work/production/australia_ph2/perth/Arc_asc2raster_GDA94z50.py

    r6842 r6942  
    2525output_dir="anuga\\outputs\\"
    2626
    27 time_dir1 = '20090414_110305_run_final_0_26978_803_Tb__kvanputt'
    28 time_dir2 = '20090415_090717_run_final_0_64479_803_Tb__kvanputt'
    29 time_dir3 = '20090416_050507_run_final_0_70921_803_Tb__kvanputt'
     27time_dir1 = '20090415_090717_run_final_0_64479_803_Tb__kvanputt'
     28time_dir2 = '20090416_050507_run_final_0_70921_803_Tb__kvanputt'
    3029
    31 events = [[time_dir1,0.658849],[time_dir2,0.543065],[time_dir3,0.52893]]
     30time_dir4 = '20090421_170526_run_final_0_64479_803_Tb_internal_mhingee'
    3231
    33 for event in events:
    34 ##for time_dir in time_dirs:
    35     time_dir = event[0]
    36     max_wave = event[1]
    37     print time_dir
    38     print max_wave
     32##time_dirs = [time_dir1, time_dir2]#, time_dir3]
     33time_dirs = [time_dir1]
     34
     35for time_dir in time_dirs:
    3936    # Local variables...
    4037    folder = scenario_dir + output_dir +  time_dir +'\\'
     
    4340##    ocean = scenario_dir + "map_work\\\port_hedland.gdb\\outlines\\initial_conditions_ocean"
    4441
    45     print 'Process: Create File GDB'
    46     gp.CreateFileGDB_management(folder, "raster")
     42##    print 'Process: Create File GDB'
     43##    gp.CreateFileGDB_management(folder, "raster")
    4744
    4845    gp.Workspace = raster_gbd
     
    5754
    5855    generate_filename = []
    59     input_ascii = glob.glob(folder + '*stage_max.asc')
     56    input_ascii = glob.glob(folder + '*elevation.asc')
    6057
    6158    for infile in input_ascii:
     
    7572
    7673        print 'Process: Define Projection'
    77         # GDA_1994_MGA_Zone_54
     74        #GDA_1994_MGA_Zone_54
    7875        gp.DefineProjection_management(output_DEM, "PROJCS['GDA_1994_MGA_Zone_50',GEOGCS['GCS_GDA_1994',DATUM['D_GDA_1994',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]]"
    7976                                                   ",PROJECTION['Transverse_Mercator'],PARAMETER['False_Easting',500000.0],PARAMETER['False_Northing',10000000.0],PARAMETER['Central_Meridian',117.0],PARAMETER['Scale_Factor',0.9996]"
     
    8380##        print 'Process: Extract by Mask'
    8481##        gp.ExtractByMask_sa(output_DEM, land, output_extract)
    85        
    86         div_file = output_DEM.replace('stage','div_stage')
    87         if not div_file == output_DEM:
    88             print 'divide', output_DEM,' by', max_wave,' and call',div_file
    89             gp.Divide_sa(output_DEM,max_wave,div_file)
    9082
     83
Note: See TracChangeset for help on using the changeset viewer.