array out of bounds with weighted average resample

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
joleenf
Posts: 1120
Joined: Mon Jan 19, 2009 7:16 pm

array out of bounds with weighted average resample

Post by joleenf »

Hi,

I was working with the CMI field for OR_ABI-L2-CMIPM1-M3C14_G16_s20173541809319_e20173541809377_c20173541809438.nc and OR_ABI-L2-CMIPM1-M3C02_G16_s20173541809319_e20173541809377_c20173541809452.nc on arcdata. I am trying to upsample the C14 channel to the C02 channel. It seems that when I try using a weighted average, sampling the C14 data to the target set from C02, I get a java array out of bounds error. However, when I use nearest neighbor, the resampling works. I am not sure where the error occurs, but I thought this code was supposed to work as a weighted average for upsampling cases. Occasionally, as in this case, array out of bounds errors occur.

Joleen
User avatar
bobc
Posts: 933
Joined: Mon Nov 15, 2010 5:57 pm

Re: array out of bounds with weighted average resample

Post by bobc »

Hi Joleen -

Thanks for mentioning this. You are correct that upsampling should be working. I had found this upsampling problem with L1b meso data, though CONUS and FD domains worked. It's good to know that this is also a problem with L2 data, as well as the problem exists with weighted average but not nearest neighbor sampling. I added this information to Inquiry 2525. I'll let you know when there are any updates on this.

Thanks again -
Bob
Post Reply