Ignore:
Timestamp:
Apr 28, 2008, 8:00:14 AM (17 years ago)
Author:
sexton
Message:

(1) update of production processes document (2) test for generating points for URS output (3) update of graduate proposal

Location:
anuga_work/production/west_tas_2008
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/west_tas_2008/convert2eastnorth.py

    r4968 r5245  
    3131#filename = project_smf.polygondir + 'domain.txt'
    3232#filename = project_smf.polygondir + 'local.txt'
    33 filename = project_smf.polygondir + 'region.txt'
     33#filename = project_smf.polygondir + 'region.txt'
     34#filename = project_smf.datadir + 'Sorell_Basin_150m_DD_Interp.txt'
     35#filename = project_smf.datadir + 'S_Tasman_Rise_150m_DD_Interp.txt'
     36filename = project_smf.polygondir + 'origin.txt'
    3437#filename_out = project_smf.polygondir + 'domain.csv'
    3538#filename_out = project_smf.polygondir + 'local.csv'
    36 filename_out = project_smf.polygondir + 'region.csv'
     39#filename_out = project_smf.polygondir + 'region.csv'
     40#filename_out = project_smf.datadir + 'Sorell_Basin_150m_EN_Interp.txt'
     41#filename_out = project_smf.datadir + 'S_Tasman_Rise_150m_EN_Interp.txt'
     42filename_out = project_smf.polygondir + 'origin_EN.csv'
    3743alter_file(filename,filename_out)
  • anuga_work/production/west_tas_2008/project_smf.py

    r4968 r5245  
    2424state = 'tasmania'
    2525scenario_dir_name = 'smf_scenario_2008'
    26 '''
    27 # onshore data provided by NSW LPI, Krishna merged with existing
    28 # PMD data to make 100m DEM
    29 on_offshore_name100 = 'bathyland100'
     26
     27# onshore data sourced from 250m grid
     28onshore_name250 = 'bathyland250'
     29
     30# coastline from GA
     31coast_line_name = 'aus_cst'
    3032
    3133# survey data
    32 offshore_name1 = 'surveyAreaA'
    33 offshore_name2 = 'surveyAreaB'
    34 offshore_name3 = 'surveyAreaC'
     34offshore_name1 = 'S_Tasman_Rise_150m_EN_Interp'
     35offshore_name2 = 'Sorell_Basin_150m_EN_Interp'
     36offshore_name3 = 'West_Tas_EastNorth_z'
    3537
    36 # AHO data
    37 offshore_name4 = '1000003611export'
    38 offshore_name5 = '1000003613export'
    39 offshore_name6 = '1000003614export'
    40 offshore_name7 = '1000003627export'
    41 offshore_name8 = '1000003628export'
    42 offshore_name9 = 'AHDexport'
    43 '''
    4438#swollen/ all data output
    4539basename = 'source'
     
    6155codedirname = codedir + 'project_smf.py'
    6256meshname = outputtimedir + 'mesh_' + basename
    63 '''
     57
    6458# Necessary if using point datasets, rather than grid
    65 on_offshore100_dem_name = datadir + on_offshore_name100
     59onshore_250_dem_name = datadir + onshore_name250
    6660offshore_dem_name1 = datadir + offshore_name1
    6761offshore_dem_name2 = datadir + offshore_name2
    6862offshore_dem_name3 = datadir + offshore_name3
     63coast_line = datadir + coast_line_name
    6964
    7065combined_dem_name   = datadir + 'west_tas_combined_elevation'
    71 '''
     66
    7267###############################
    7368# Domain definitions
     
    9489###################################################################
    9590
    96 
    9791# exporting asc grid
    9892eastingmin = 333000
     
    107101
    108102# historical slides
    109 #slide_origin = [,]
     103slide_origin = [338270.5407, 5217273.89]
    110104
    111105depth = 1750.0
  • anuga_work/production/west_tas_2008/run_west_tas_smf.py

    r4968 r5245  
    5454
    5555# filenames
    56 on_offshore25_dem_name = project_smf.on_offshore25_dem_name
     56onshore_250_dem_name = project_smf.onshore_250_dem_name
    5757meshname = project_smf.meshname+'.msh'
    5858
    5959# creates DEM from asc data
    60 convert_dem_from_ascii2netcdf(on_offshore25_dem_name, use_cache=True, verbose=True)
     60convert_dem_from_ascii2netcdf(onshore_250_dem_name, use_cache=True, verbose=True)
    6161
    6262#creates pts file for onshore DEM
    63 dem2pts(on_offshore25_dem_name,
    64         easting_min=project_smf.eastingmin25,
    65         easting_max=project_smf.eastingmax25,
    66         northing_min=project_smf.northingmin25,
    67         northing_max= project_smf.northingmax25,
    68         use_cache=True, verbose=True)
     63dem2pts(onshore_250_dem_name, use_cache=True, verbose=True)
    6964
    7065print 'create offshore'
    71 G1 = Geospatial_data(file_name = project_smf.offshore_dem_name1 + '.xya')+\
    72      Geospatial_data(file_name = project_smf.offshore_dem_name2 + '.xya')+\
    73      Geospatial_data(file_name = project_smf.offshore_dem_name3 + '.xya')
     66G1 = Geospatial_data(file_name = project_smf.offshore_dem_name1 + '.txt')+\
     67     Geospatial_data(file_name = project_smf.offshore_dem_name2 + '.txt')+\
     68     Geospatial_data(file_name = project_smf.offshore_dem_name3 + '.txt')
    7469
    7570print 'create onshore'
    76 G2 = Geospatial_data(file_name = project_smf.on_offshore25_dem_name + '.pts')
     71G2 = Geospatial_data(file_name = project_smf.onshore_250_dem_name + '.pts')
     72
     73print 'create coastline'
     74G3 = Geospatial_data(file_name = project_smf.coast_line + '.txt')
    7775
    7876print 'add'
    79 G = G1 + G2
     77G = G1.clip(Geospatial_data(project_smf.polyAll)) + G2 + G3
    8078
    8179print 'export points'
Note: See TracChangeset for help on using the changeset viewer.