I would like to calculate the max and min across many netcdf files.
I know how to create one big array and then concatenate and find the
numpy.max but when I run this on 1000's of arrays I have a memory error.
What I would prefer is to loop through the arrays and produce the maximum
without having
thank you, that makes sense.
I should have posted this on another list (which I have now). and the
change required is:
If your new array is x, you can use:
numpy.ma.masked_array(x, mask=mask.mask)
On Tue, Nov 22, 2011 at 11:48 AM, MRAB wrote:
> On 21/11/2011 21:42, questions anon wr
I am trying to mask one array using another array.
I have created a masked array using
mask=MA.masked_equal(myarray,0),
that looks something like:
[1 - - 1,
1 1 - 1,
1 1 1 1,
- 1 - 1]
I have an array of values that I want to mask whereever my mask has a a '-'.
how do I do this?
I
= plt.axes([l+w+0.025, b,
0.025, h], )
cbar=plt.colorbar(CS, cax=cax,
drawedges=True)
#save map as *.png and plot
netcdf file
plt.savefig((os.path.join(OutputFolder,
ncvariablename+date_string+'UTC.png'
Hello All,
I keep coming across a memory error when processing many netcdf files. I
assume it has something to do with how I loop things and maybe need to close
things off properly.
In the code below I am looping through a bunch of netcdf files (each file is
hourly data for one month) and within ea