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.
>From: "J. Correia" <address@hidden> >Organization: UCAR/Unidata >Keywords: 200209052145.g85LjYZ22491 >Is there any way within GEMPAK to change negative grid values and set them >to zero? For example, I calculate a parameter over many times, and then >run gdstat to compute the average. But I only want the average of all >positive values. Can you think of any way, besides ouputting all the >seperate grids, running a seperate program to change the values and then >run gdstat? >James Correia Jr > > James, You should be able to use the SGT(S1,S2) function to only consider values greater than S2=0. Steve Chiswell