This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> > On May 9, 2011, at 9:28 AM, Unidata IDV Support wrote: > > > Hi Dave, > > The problem here is the difference in the height, the advection formula > > in the derived does not work in this case. > > You can add a local formula to do this: > > > > def surfaceHorizontalAdvection(aFF, uFF, vFF): > > udtdx=GridMath.multiply(GridMath.ddx(aFF),uFF); > > vdtdy=GridMath.multiply(GridMath.ddy(aFF),vFF); > > advgrid=GridMath.add(udtdx,vdtdy); > > return advgrid.negate(); > > > > I tested this in my machine and worked. I will probably make some changes > > in the source code, so you will not need to do this in the future. > > Yuan, > > I'll certainly appreciate having the code built into the advection > formula--thanks! > > -- Dave > > I checked in the changes, you can try the nightly tomorrow. Yuan > ************************************************************ > * Dr. Dave Dempsey | ^ ___ \|/ * > * Dept. of Geosciences | ) ^ /||_||\ --0-- * > * San Francisco State University | ) ) / ||_|| \ /|\ * > * 1600 Holloway Ave. | ) ) / ||_|| \ * > * San Francisco, CA 94132 | ) ) / ||_|| \ ^ * > * | ) ) ) > ||_|| \ * > * Phone: (415) 338-7716 | ) ) )~||~||~~~~ \~~* > * FAX: (415) 338-7705 | ) ) ) ) ~ ~ ~ ~ ~ ~* > * Email: address@hidden | ) ) ) ) ) ~ ~ ~ ~ * > ************************************************************ > > > > > Ticket Details =================== Ticket ID: RWC-894290 Department: Support IDV Priority: Normal Status: Closed