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
Adding or averaging multiple grid arrays returns all NaNs [message #92722] Wed, 17 February 2016 04:34 Go to previous message
Luke Conibear is currently offline  Luke Conibear
Messages: 6
Registered: February 2016
Junior Member
Hi,

I have a 2D grid array (lon, lat) for each day of my data:

GRID FLOAT = Array[3999, 1999]

This array is dispersed with values and plots to a map nicely.

When I add multiple grids together or average them (as below), every value in the 2D array turns to NaN, so the plot is blank.

TOTAL_GRID FLOAT = Array[3999, 1999]
total_grid = total_grid + grid
MEAN_GRID FLOAT = Array[3999, 1999]
mean_grid = total_grid / n_days

Does anyone know a solution, as looping for every lat and lon cell would be very computationally expensive for my large data set?

Thanks,
Luke
[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 13:57:05 PDT 2025

Total time taken to generate the page: 0.00376 seconds