Changeset 3669
- Timestamp:
- Sep 26, 2006, 11:30:09 AM (18 years ago)
- Location:
- anuga_work/production
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/MOST_example/project.py
r3608 r3669 48 48 home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'2'+sep+'cit'+sep+'inundation'+sep+'data') 49 49 user = getenv('LOGNAME') 50 50 51 # INUNDATIONHOME is the inundation directory, not the data directory. 52 home += sep +'data' 53 51 54 #Derive subdirectories and filenames 52 55 time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir -
anuga_work/production/broome_2006/project.py
r3535 r3669 42 42 home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'2'+sep+'cit'+sep+'inundation'+sep+'data') 43 43 user = getenv('LOGNAME') 44 45 # INUNDATIONHOME is the inundation directory, not the data directory. 46 home += sep +'data' 44 47 45 48 #Derive subdirectories and filenames -
anuga_work/production/hobart_2006/project.py
r3668 r3669 65 65 #time = strftime('%Y%m%d_%H%M%S',localtime()) #gets time for new dir 66 66 local_time = strftime('%Y%m%d_%H%M%S',gmtime()) #gets time for new dir 67 67 print 'home', home 68 68 meshdir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'meshes'+sep 69 69 datadir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'topographies'+sep 70 70 gaugedir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'gauges'+sep 71 71 polygondir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'polygons'+sep 72 boundarydir = home+sep+s tate+sep+scenario_dir_name+sep+'anuga'+sep+'boundaries'+sep72 boundarydir = home+sep+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'boundaries'+sep 73 73 #output dir without time 74 74 outputdir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'outputs'+sep -
anuga_work/production/hobart_2006/run_hobart.py
r3661 r3669 69 69 70 70 # creates DEM from asc data - 12.5m 71 convert_dem_from_ascii2netcdf(onshore_dem_name, use_cache=True, verbose=True)71 #convert_dem_from_ascii2netcdf(onshore_dem_name, use_cache=True, verbose=True) 72 72 73 73 #creates pts file for onshore DEM - 12.5 74 dem2pts(onshore_dem_name,75 easting_min=project.eastingmin,76 easting_max=project.eastingmax,77 northing_min=project.northingmin,78 northing_max= project.northingmax,79 use_cache=True, verbose=True)74 #dem2pts(onshore_dem_name, 75 # easting_min=project.eastingmin, 76 # easting_max=project.eastingmax, 77 # northing_min=project.northingmin, 78 # northing_max= project.northingmax, 79 # use_cache=True, verbose=True) 80 80 81 81 # create DEM from asc data - 25m data … … 83 83 84 84 #creates pts file for onshore DEM - 25 85 dem2pts(onshore_dem_name_25, use_cache=True, verbose=True) 86 87 combine_rectangular_points_files(project.onshore_dem_name + '.pts', 88 project.onshore_dem_name_25 + '.pts', 89 project.all_onshore_dem_name + '.pts') 85 dem2pts(onshore_dem_name_25, 86 easting_min=project.eastingmin25, 87 easting_max=project.eastingmax25, 88 northing_min=project.northingmin25, 89 northing_max= project.northingmax25, 90 use_cache=True, verbose=True) 91 92 #combine_rectangular_points_files(project.onshore_dem_name + '.pts', 93 # project.onshore_dem_name_25 + '.pts', 94 # project.all_onshore_dem_name + '.pts') 90 95 91 96 print 'adding data sets' … … 110 115 Geospatial_data(file_name = project.offshore_dem_name_aho15 + '.xya')+\ 111 116 Geospatial_data(file_name = project.offshore_dem_name_aho16 + '.xya')+\ 112 Geospatial_data(file_name = project. all_onshore_dem_name+ '.pts')117 Geospatial_data(file_name = project.onshore_dem_name_25 + '.pts') 113 118 G.export_points_file(project.combined_dem_name + '.pts') 114 119 #Geospatial_data(file_name = project.all_onshore_dem_name + '.pts') 115 120 #---------------------------------------------------------------------------- 116 121 # Create the triangular mesh based on overall clipping polygon with a tagged … … 134 139 _ = cache(create_mesh_from_regions, 135 140 project.polyAll, 136 {'boundary_tags': {'bottom': [0], ' right': [1],137 'top ': [2], 'left': [3]},138 'maximum_triangle_area': 100000,141 {'boundary_tags': {'bottom': [0], 'bright': [1], 142 'topr': [2], 'top': [3], 'left': [4]}, 143 'maximum_triangle_area': 250000, 139 144 'filename': meshname}, 140 145 #'interior_regions': interior_regions}, … … 230 235 231 236 # for testing 232 domain.set_boundary( {'top ': Bd, 'left': Bd,233 'bottom': Bd, ' right': Bw} )237 domain.set_boundary( {'topr': Bd, 'left': Bd, 'top': Bd, 238 'bottom': Bd, 'bright': Bw} ) 234 239 235 240 #------------------------------------------------------------------------------- -
anuga_work/production/karratha_2006/project.py
r3627 r3669 32 32 user = getenv('LOGNAME') 33 33 34 # INUNDATIONHOME is the inundation directory, not the data directory. 35 home += sep +'data' 34 36 35 37 #Derive subdirectories and filenames -
anuga_work/production/onslow_2006/project.py
r3650 r3669 49 49 user = getenv('LOGNAME') 50 50 print 'USER:', user 51 52 # INUNDATIONHOME is the inundation directory, not the data directory. 53 home += sep +'data' 51 54 52 55 #Derive subdirectories and filenames … … 134 137 n_max_area = 7610000 135 138 136 # region to export to make elevation map: JS 22/9/06 139 # region to export to make elevation map: JS 22/9/06 - NOTE, this won't 140 # work as region needs to be inside bounding box (polyAll)!! 137 141 138 142 e_min_area = 240000 … … 140 144 n_min_area = 7580000 141 145 n_max_area = 7690000 142 146 export_region = [[e_min_area, n_min_area], 147 [e_min_area, n_max_area], 148 [e_max_area, n_max_area], 149 [e_max_area, n_min_area]] 143 150 #Georeferencing 144 151 from anuga.coordinate_transforms.redfearn import degminsec2decimal_degrees … … 157 164 polyAll = [d0, d1, d2, d3, d4, d5, d6] 158 165 166 polygons = [polyAll, export_region] 167 figname = 'checking.png' 168 from anuga.utilities.polygon import plot_polygons 169 plot_polygons(polygons, figname, verbose = False) 170 print figname 159 171 #Interior region - Onslow town 160 172 -
anuga_work/production/pt_hedland_2006/project.py
r3535 r3669 49 49 home = getenv('INUNDATIONHOME', sep+'d'+sep+'cit'+sep+'2'+sep+'cit'+sep+'inundation'+sep+'data') 50 50 user = getenv('LOGNAME') 51 52 # INUNDATIONHOME is the inundation directory, not the data directory. 53 home += sep +'data' 51 54 52 55 #Derive subdirectories and filenames -
anuga_work/production/sydney_2006/project.py
r3535 r3669 39 39 else: 40 40 home = expanduser('~') 41 41 42 # INUNDATIONHOME is the inundation directory, not the data directory. 43 home += sep +'data' 44 42 45 #Derive subdirectories and filenames 43 46 meshdir = home+sep+state+scenario_dir_name+sep+'anuga'+sep+'meshes'+sep
Note: See TracChangeset
for help on using the changeset viewer.