I have two netcdf data (precipitation and potential evapotranspiration). I have clipped both data based on bounding box, so both has same dimension. I try to do simple calculation, but receiving an error Precipitation and PET variables contain non-matching latitudes
I have manually check the data through ArcGIS and found that PET - red color do not cover as much as precipitation - blue color data. How to solve this problem? I am sure this is will always happen if we are dealing with various data from different provider.
Should I re-gridding both data, so the coverage is adjusted well? If yes, how to do that using CDO or NCO, or maybe using other tools?
** Edit question following feedback from Adrian and Charlie
My both data (precip and evapo) has same resolution 0.05 deg/pixel, also the dimension is 2400 x 1470 (checked via ndcump -h
).
I have try recommendation using CDO and NCO, and produce same result. See picture below NCO is green and CDO is orange. And both result still not what I expected.
NCO also generate warning during the process
Grid(src): /var/folders/3r/mp8dt34s0ggc9fqt3_tn_rv40000gn/T/ncremap_tmp_grd_src.nc.pid30743
Grid(dst): /var/folders/3r/mp8dt34s0ggc9fqt3_tn_rv40000gn/T/ncremap_tmp_grd_dst.nc.pid30743
Map/Wgt : /var/folders/3r/mp8dt34s0ggc9fqt3_tn_rv40000gn/T/ncremap_tmp_map_esmf_bilinear.nc.pid30743
ncks: WARNING NC_DOUBLE version of "_FillValue" attribute for pet_thornthwaite fails isfinite(), value is NaN, which can cause unpredictable results.
HINT: If arithmetic results (e.g., from regridding) fails or values seem weird, retry after first converting _FillValue to normal number with, e.g., "ncatted -a _FillValue,pet_thornthwaite,m,f,1.0e36 in.nc out.nc"