Page 1 of 1

array out of bounds with weighted average resample

Posted: Fri Dec 22, 2017 5:24 pm
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

Re: array out of bounds with weighted average resample

Posted: Fri Dec 22, 2017 5:34 pm
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