Ignore:
Timestamp:
Mar 29, 2006, 8:42:34 AM (18 years ago)
Author:
nick
Message:

fixed geospatial_data to not use point_dict in export and updated onslow run to use new geospatial_data methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/onslow_2006/run_onslow.py

    r2616 r2624  
    5555source_dir = project.boundarydir
    5656
    57 # creates copy of code in output dir
     57# creates copy of code in output dir if dir doesn't exist
    5858if access(project.outputdir,F_OK) == 0 :
    5959    mkdir (project.outputdir)
    6060copy (project.codedirname, project.outputdir + project.codename)
    6161copy (project.codedir + 'run_onslow.py', project.outputdir + 'run_onslow.py')
    62 
     62print'hello'
     63print' most file', project.MOST_dir + project.boundary_basename+'_ha.nc'
     64if access(project.MOST_dir + project.boundary_basename+'_ha.nc',F_OK) == 1 :
     65    print' most file', project.MOST_dir + project.boundary_basename
    6366
    6467'''
     
    7982
    8083        '''
     84'''
    8185print'create G1'
    8286G1 = Geospatial_data(file_name = project.offshore_dem_name + '.xya')
     
    9195G.new_export_points_file(project.combined_dem_name + '.pts')
    9296
    93 '''
    94 add_points_files(
    95                   project.offshore_dem_name + '.xya',
    96                   project.onshore_dem_name + '.pts',
    97                   project.combined_dem_name + '.pts')
    9897'''
    9998#-------------------------------------------------------------------------------                                 
     
    106105
    107106# original
    108 interior_res = 5000
     107interior_res = 50000
    109108interior_regions = [[project.poly_onslow, interior_res],
    110109                    [project.poly_thevenard, interior_res],
     
    119118                             'left': [2], 'bottom': [3],
    120119                             'bottomright': [4], 'topright': [5]},
    121            'maximum_triangle_area': 100000,
     120           'maximum_triangle_area': 1000000,
    122121           'filename': meshname,           
    123122           'interior_regions': interior_regions},
     
    167166domain.set_quantity('friction', 0.0)
    168167print 'hi and file',project.combined_dem_name + '.pts'
     168
    169169domain.set_quantity('elevation',
    170170#                    0.
     
    176176                    alpha = 0.1
    177177                    )
     178
    178179print 'hi1'
    179180
     
    190191
    191192cache(ferret2sww,
    192       (source_dir + project.boundary_basename,
     193#      (source_dir + project.boundary_basename,
     194#       source_dir + project.boundary_basename),
     195      (project.MOST_dir + project.boundary_basename,
    193196       source_dir + project.boundary_basename),
    194197      {'verbose': True,
Note: See TracChangeset for help on using the changeset viewer.