comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Adding or averaging multiple grid arrays returns all NaNs
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Adding or averaging multiple grid arrays returns all NaNs [message #92737 is a reply to message #92732] Fri, 19 February 2016 05:05 Go to previous messageGo to previous message
Mats Löfdahl is currently offline  Mats Löfdahl
Messages: 263
Registered: January 2012
Senior Member
Make n_days an array of the same size as total_grid. Then each time you add values to some cells in total_grid, also add unity to the corresponding cells in n_days. Then do the final division by n_days only for the elements where n_days is non-zero.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Passing an array of color values into polyfill
Next Topic: Summation Image arrays

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:09:37 PDT 2025

Total time taken to generate the page: 0.00866 seconds