Changeset 7328


Ignore:
Timestamp:
Aug 7, 2009, 12:47:06 PM (15 years ago)
Author:
kristy
Message:

updated by Kristy and Jonathan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DVD_images/update_DVD_images.py

    r7322 r7328  
    4242 'viz_src_path':    'data/tasmania/hobart_tsunami_scenario_2009/visualisations',
    4343 'proj_src_path':   'sandpits/kvanputten/ANUGA/anuga_work/production/hobart_2009/For_DVD',
     44 'report_src_path': 'data/four_east_coast_communities_reporting',
    4445
    4546 # paths to destination directories (under 'jurisdiction' root)
     
    4849 'viz_dst_path':    'documents',
    4950 'arcgis_dst_path': 'data/tasmania/hobart_tsunami_scenario_2009/ArcGIS',
    50 
     51 'report_dst_path': 'documents',
     52 
    5153 # copy or create whole directories
    5254 'make_dst_dirs':   ['outputs', 'topographies'],
     
    7274
    7375 # 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']
    7580}
    7681
     
    8388 'viz_src_path':    'data/new_south_wales/batemans_bay_tsunami_scenario_2009/visualisations',
    8489 'proj_src_path':   'sandpits/jgriffin/ANUGA/anuga_work/production/new_south_wales/batemans_bay',
     90 'report_src_path': 'data/four_east_coast_communities_reporting',
    8591
    8692 # paths to destination directories (under 'jurisdiction' root)
     
    8995 'viz_dst_path':    'documents',
    9096 'arcgis_dst_path': 'data/new_south_wales/batemans_bay_tsunami_scenario_2009/ArcGIS',
     97 'report_dst_path': 'documents',
    9198
    9299 # 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'],
    95102
    96103 # copy 'data' files or directories
     
    110117                     'outputs/New_Hebrides_2000yr',
    111118                     '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                     ],
    113140
    114141 # copy 'visualisations' files or directories
     
    122149
    123150 # 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
    125156}
    126157
     
    141172
    142173 # 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'],
    145176
    146177 # copy 'data' files or directories
     
    155186                     'outputs/Puysegur_1000yr',
    156187                     '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'
    158199                    ],
    159200
     
    269310    arcgis_src_path = os.path.join(main_path, j_dict['arcgis_src_path'])
    270311    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   
    272315    # tell where all stuff is coming from
    273316    log('Getting data from: %s' % data_src_path)
    274317    log('Getting project from: %s' % proj_src_path)
    275318    log('Getting ArcGIS from: %s' % arcgis_src_path)
     319    log('Getting report from: %s' % report_src_path)
    276320    log('')
    277321
     
    327371        src_file = os.path.join(arcgis_src_path, copy_file)
    328372        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)
    329381        log('Copying: %s' % copy_file)
    330382        copy_file_or_dir(src_file, new_file)
     
    376428elapsed_time = stop_time - start_time
    377429log('Elapsed time is %.1fs' % elapsed_time)
     430print 'completed'
Note: See TracChangeset for help on using the changeset viewer.