Ignore:
Timestamp:
Apr 10, 2006, 9:39:39 AM (19 years ago)
Author:
nick
Message:

updates to onslow
add print outs to least_squares and mesh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • production/onslow_2006/export_results.py

    r2543 r2682  
    11import project, os
     2from os import sep
    23
    34from pyvolution.data_manager import sww2dem
    45from pyvolution.ermapper_grids import read_ermapper_grid
    56
    6 #name = project.outputname
    7 name = project.outputname
     7#name = project.outputname
    88
     9time_dir = "20060328_094539_alpha_0.1"
     10directory = project.outputdir
     11name = directory + time_dir +sep + "source"
     12
     13print'output dir:', name
    914#print 'Which variable do you want to export?'
    1015#which_var = int(raw_input('Stage = 0, Absolute Momentum = 1, Depth = 2, Speed = 3  '  ))
    11 which_var = 2
     16which_var = 4
    1217
    1318if which_var == 0:  # Stage
     
    2934    quantityname = '(xmomentum**2 + ymomentum**2)**0.5/(stage-elevation+1.e-30)'  #Speed
    3035
     36if which_var == 4:  # Elevation
     37    outname = name + '_elevation'
     38    quantityname = 'elevation'  #Elevation
     39
    3140   
    3241sww2dem(name, basename_out = outname,
    3342            quantity = quantityname,
    34             cellsize = 25,       # Trevor would like this at 25
     43            cellsize = 30,       # Trevor would like this at 25
    3544            # define region for viz purposes
    36             easting_min = project.eminviz,
    37             easting_max = project.emaxviz,
    38             northing_min = project.nminviz,
    39             northing_max = project.nmaxviz,       
     45            easting_min = project.e_min_area,
     46            easting_max = project.e_max_area,
     47            northing_min = project.n_min_area,
     48            northing_max = project.n_max_area,       
    4049            reduction = max, #this is because we want max quantityname
    4150            verbose = True,
Note: See TracChangeset for help on using the changeset viewer.