[gradsusr] Plotting zero for undefined values (as an image)
Matt Bunkers - WFO UNR
matthew.bunkers at noaa.gov
Wed May 20 13:37:49 EDT 2015
Thanks Jeff! That worked perfectly.
-- Matt
On Wed, May 20, 2015 at 10:54 AM, Jeff Duda <jeffduda319 at gmail.com> wrote:
> Use const(precip,0.0,-u) to set missing data to a value of 0.0.
>
> The const and maskout functions are very useful when thresholding or
> working with undefined data points.
>
> Jeff Duda
>
> On Wed, May 20, 2015 at 11:37 AM, Matt Bunkers - WFO UNR <
> matthew.bunkers at noaa.gov> wrote:
>
>> Hi,
>>
>> I am adding observed precipitation from 3 consecutive days and on
>> occasion there will be undefined areas in small portions of my grid files.
>> Instead of having nothing (or blank spaces) plotted when I sum the three
>> files, I would like to change the undefined values to zero (basically
>> assuming no precip) and then add the files. I used the "set undef 0.0"
>> command but I still don't get the data to plot (i.e., I have blank/missing
>> areas). Is there a way I can get the undef to be 0.0 so they will not plot
>> as blank spaces and instead sum with the regular defined values?
>>
>> Thanks,
>>
>> -- Matt
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
> --
> Jeff Duda
> Graduate research assistant
> University of Oklahoma School of Meteorology
> Center for Analysis and Prediction of Storms
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150520/2e033266/attachment.html
More information about the gradsusr
mailing list