array out of bounds with weighted average resample
Posted: Fri Dec 22, 2017 5:24 pm
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
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