Changeset 7328
- Timestamp:
- Aug 7, 2009, 12:47:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DVD_images/update_DVD_images.py
r7322 r7328 42 42 'viz_src_path': 'data/tasmania/hobart_tsunami_scenario_2009/visualisations', 43 43 'proj_src_path': 'sandpits/kvanputten/ANUGA/anuga_work/production/hobart_2009/For_DVD', 44 'report_src_path': 'data/four_east_coast_communities_reporting', 44 45 45 46 # paths to destination directories (under 'jurisdiction' root) … … 48 49 'viz_dst_path': 'documents', 49 50 'arcgis_dst_path': 'data/tasmania/hobart_tsunami_scenario_2009/ArcGIS', 50 51 'report_dst_path': 'documents', 52 51 53 # copy or create whole directories 52 54 'make_dst_dirs': ['outputs', 'topographies'], … … 72 74 73 75 # copy 'arcgis' files or directories 74 'copy_arc_files': [] 76 'copy_arc_files': [], 77 78 # copy 'report' file 79 'copy_report_files': ['professionalopinion_2009_modelling_FINAL_TAS.doc'] 75 80 } 76 81 … … 83 88 'viz_src_path': 'data/new_south_wales/batemans_bay_tsunami_scenario_2009/visualisations', 84 89 'proj_src_path': 'sandpits/jgriffin/ANUGA/anuga_work/production/new_south_wales/batemans_bay', 90 'report_src_path': 'data/four_east_coast_communities_reporting', 85 91 86 92 # paths to destination directories (under 'jurisdiction' root) … … 89 95 'viz_dst_path': 'documents', 90 96 'arcgis_dst_path': 'data/new_south_wales/batemans_bay_tsunami_scenario_2009/ArcGIS', 97 'report_dst_path': 'documents', 91 98 92 99 # copy or create whole directories 93 'make_dst_dirs': [' meshes', 'outputs', 'topographies'],94 'copy_data_dirs': [' boundaries', 'polygons', 'gauges'],100 'make_dst_dirs': ['boundaries', 'meshes', 'outputs', 'topographies'], 101 'copy_data_dirs': ['polygons', 'gauges'], 95 102 96 103 # copy 'data' files or directories … … 110 117 'outputs/New_Hebrides_2000yr', 111 118 'outputs/New_Hebrides_5000yr', 112 'outputs/elevation'], 119 'outputs/elevation', 120 'boundaries/51077', 121 'boundaries/51204', 122 'boundaries/51292', 123 'boundaries/51347', 124 'boundaries/51378', 125 'boundaries/51424', 126 'boundaries/51436', 127 'boundaries/51445', 128 'boundaries/58115', 129 'boundaries/58129', 130 'boundaries/58226', 131 'boundaries/58272', 132 'boundaries/58284', 133 'boundaries/58286', 134 'boundaries/58346', 135 'boundaries/58368', 136 'boundaries/boundaries.gdb', 137 'boundaries/landward_boundary_extend.csv', 138 'boundaries/thinned_boundary_ordering_extend.csv' 139 ], 113 140 114 141 # copy 'visualisations' files or directories … … 122 149 123 150 # copy 'arcgis' files or directories 124 'copy_arc_files': ['BB_cbd_figure_template.mxd'] 151 'copy_arc_files': ['BB_cbd_figure_template.mxd'], 152 153 # copy 'report' file 154 'copy_report_files': ['professionalopinion_2009_modelling_FINAL_NSW.doc'] 155 125 156 } 126 157 … … 141 172 142 173 # copy or create whole directories 143 'make_dst_dirs': [' meshes', 'outputs', 'topographies', 'gauges'],144 'copy_data_dirs': [' boundaries', 'polygons'],174 'make_dst_dirs': ['boundaries', 'meshes', 'outputs', 'topographies'], 175 'copy_data_dirs': ['polygons', 'gauges'], 145 176 146 177 # copy 'data' files or directories … … 155 186 'outputs/Puysegur_1000yr', 156 187 'outputs/Puysegur_5000yr', 157 'outputs/elevation' 188 'outputs/elevation', 189 'boundaries/51436', 190 'boundaries/58025', 191 'boundaries/58113', 192 'boundaries/58187', 193 'boundaries/58242', 194 'boundaries/58284', 195 'boundaries/58349', 196 'boundaries/boundaries.gdb', 197 'boundaries/landward_boundary.csv', 198 'boundaries/urs_order.csv' 158 199 ], 159 200 … … 269 310 arcgis_src_path = os.path.join(main_path, j_dict['arcgis_src_path']) 270 311 arcgis_dst_path = os.path.join(os.getcwd(), j_name, j_dict['arcgis_dst_path']) 271 312 report_src_path = os.path.join(main_path, j_dict['report_src_path']) 313 report_dst_path = os.path.join(os.getcwd(), j_name, j_dict['report_dst_path']) 314 272 315 # tell where all stuff is coming from 273 316 log('Getting data from: %s' % data_src_path) 274 317 log('Getting project from: %s' % proj_src_path) 275 318 log('Getting ArcGIS from: %s' % arcgis_src_path) 319 log('Getting report from: %s' % report_src_path) 276 320 log('') 277 321 … … 327 371 src_file = os.path.join(arcgis_src_path, copy_file) 328 372 new_file = os.path.join(arcgis_dst_path, copy_file) 373 log('Copying: %s' % copy_file) 374 copy_file_or_dir(src_file, new_file) 375 376 # copy report 377 log('Creating directory: %s' % report_dst_path) 378 for copy_file in j_dict['copy_report_files']: 379 src_file = os.path.join(report_src_path, copy_file) 380 new_file = os.path.join(report_dst_path, copy_file) 329 381 log('Copying: %s' % copy_file) 330 382 copy_file_or_dir(src_file, new_file) … … 376 428 elapsed_time = stop_time - start_time 377 429 log('Elapsed time is %.1fs' % elapsed_time) 430 print 'completed'
Note: See TracChangeset
for help on using the changeset viewer.