Ignore:
Timestamp:
Mar 17, 2006, 3:38:41 PM (19 years ago)
Author:
nick
Message:

new onslow with metadata control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/onslow_2006/run_onslow.py

    r2554 r2556  
    3131from smf import slump_tsunami  # Function for submarine mudslide
    3232
     33from shutil import copy
     34from os import mkdir, access, F_OK
    3335
    3436#------------------------------------------------------------------------------
     
    4850
    4951source_dir = project.boundarydir
     52
     53#if dir doesn't exists then makes dir
     54if access(project.outputdir,F_OK) == 0 :
     55    mkdir (project.outputdir)
     56# creates copy of code in output dir
     57copy (project.codedirname, project.outputdir + project.codename)
     58copy (project.codedir + 'run_onslow.py', project.outputdir + 'run_onlsow.py')
     59print "copied to"+ project.outputdir + project.codename + 'and run_onlsow.py'
    5060
    5161# coarse data
     
    6575
    6676# combining the coarse and fine data
    67 combine_rectangular_points_files(project.coarsedemname + '.pts',
     77# NOTE MUST HAVE FINE FIRST!
     78combine_rectangular_points_files(
    6879                                 project.onshore_dem_name + '.pts',
     80                                 project.coarsedemname + '.pts',
    6981                                 project.combineddemname + '.pts')
    7082
    7183
    72 #------------------------------------------------------------------------------
     84
     85#-------------------------------------------------------------------------------                                 
    7386# Create the triangular mesh based on overall clipping polygon with a tagged
    7487# boundary and interior regions defined in project.py along with
     
    164177       source_dir + project.boundary_basename),
    165178      {'verbose': True,
     179# note didn't work with the below
    166180#       'minlat': south - 1,
    167181#       'maxlat': north + 1,
Note: See TracChangeset for help on using the changeset viewer.