Changeset 9078


Ignore:
Timestamp:
Apr 10, 2014, 3:01:05 PM (11 years ago)
Author:
davies
Message:

Forcing 'height' to be non-negative for plot_utils.Make_Geotif
(Tsunami algorithm would not necessarily do this automatically)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/utilities/plot_utils.py

    r9075 r9078  
    738738                if(output_quantity=='depth'):
    739739                    gridq=p2.height[myTS,:][gridqInd]
     740                    gridq=gridq*(gridq>=0.) # Force positive depth (tsunami alg)
    740741                if(output_quantity=='velocity'):
    741742                    gridq=p2.vel[myTS,:][gridqInd]
     
    751752                if(output_quantity=='depth'):
    752753                    gridq=p2.height.max(axis=0)[gridqInd]
     754                    gridq=gridq*(gridq>=0.) # Force positive depth (tsunami alg)
    753755                if(output_quantity=='velocity'):
    754756                    gridq=p2.vel.max(axis=0)[gridqInd]
Note: See TracChangeset for help on using the changeset viewer.