metno / emep-ctm

Open Source EMEP/MSC-W model
GNU General Public License v3.0
29 stars 19 forks source link

interpolation bug for fine resolutions #36

Closed gitpeterwind closed 5 years ago

gitpeterwind commented 6 years ago

When the input data has at least 10 times coarser resolution than the metdata and both are in lat lon projection, there can be an interpolation bug that give zero. Shows clearly as vertical lines. In file NetCDF_ml.f90 Lines 3190, 3198 and 3205, the number 10.0 must be multiplied by a factor Grid_resolution/GRIDWIDTH_M:

    if(fraclastlon(ig)<0.0 .or. fraclastlon(ig)>10.0*max(1.0,Grid_resolution/GRIDWIDTH_M))then
gitpeterwind commented 6 years ago

The bug is corrected in the "dev" version -> I label this as "solved"

avaldebe commented 5 years ago

Closing down solved issues after rv4_32 and rv4_33. Please reopen if necessary.