Changeset 939


Ignore:
Timestamp:
Feb 22, 2005, 3:06:37 PM (20 years ago)
Author:
ole
Message:

Added optional zscale to conversion from ferret2sww

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/data_manager.py

    r930 r939  
    10961096               minlon = None, maxlon =None,
    10971097               mint = None, maxt = None, mean_stage = 0,
    1098                origin = None):
     1098               origin = None, zscale = 1):
    10991099    """Convert 'Ferret' NetCDF format for wave propagation to
    11001100    sww format native to pyvolution.
     
    11091109    min's and max's: If omitted - full extend is used.
    11101110    To include a value min may equal it, while max must exceed it.
     1111    Lat and lon are assuemd to be in decimal degrees
    11111112
    11121113    origin is a 5-tuple with geo referenced
     
    13401341        for k in range(number_of_latitudes):
    13411342            for l in range(number_of_longitudes):                   
    1342                 h = amplitudes[j,k,l]/100 + mean_stage
     1343                h = zscale*amplitudes[j,k,l]/100 + mean_stage
    13431344                stage[j,i] = h
    13441345                xmomentum[j,i] = xspeed[j,k,l]/100*h
Note: See TracChangeset for help on using the changeset viewer.