Changeset 9403


Ignore:
Timestamp:
Jan 14, 2015, 10:20:39 AM (10 years ago)
Author:
steve
Message:

Zip barthymetry file

Location:
trunk/anuga_core/validation_tests/experimental_data/okushiri
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/validation_tests/experimental_data/okushiri/create_okushiri.py

    r9273 r9403  
    159159    prepare_timeboundary(project.boundary_filename, verbose)
    160160
     161   
    161162
     163   
    162164
    163165    meshname = project.mesh_filename + '.msh'
     
    175177    if elevation_in_mesh is True:
    176178        from anuga.fit_interpolate.fit import fit_to_mesh_file
     179
     180
     181        if verbose: print 'Reading xya from zip'
     182        import zipfile as zf
     183        zf.ZipFile(project.bathymetry_filename_stem+'.zip').\
     184          extract(project.bathymetry_filename_stem+'.xya')
     185
     186        if verbose: print 'Reading pts from xya'
     187        anuga.xya2pts(project.bathymetry_filename_stem+'.pts', verbose = verbose)
     188       
    177189        fit_to_mesh_file(project.mesh_filename, project.bathymetry_filename,
    178190                         project.mesh_filename, verbose = verbose)
  • trunk/anuga_core/validation_tests/experimental_data/okushiri/plot_results.py

    r9345 r9403  
    3737
    3838try:
    39     from matplotlib import pyplot
    40     from pyplot import ion, hold, plot, title, legend
    41     from pyplot import xlabel, ylabel, savefig
     39    import matplotlib
     40    from matplotlib.pyplot import ion, hold, plot, title, legend
     41    from matplotlib.pyplot import xlabel, ylabel, savefig
    4242    hold(False)  # Check if this command can be issued
    4343except:
  • trunk/anuga_core/validation_tests/experimental_data/okushiri/project.py

    r8676 r9403  
    1111
    1212# Digital Elevation Model
    13 bathymetry_filename = 'Benchmark_2_Bathymetry.pts'
     13bathymetry_filename_stem = 'Benchmark_2_Bathymetry'
     14bathymetry_filename = bathymetry_filename_stem + '.pts'
    1415
    1516# Triangular mesh
Note: See TracChangeset for help on using the changeset viewer.