ECC-1154: grib_get_data: File with missing jDirectionIncrement and lat1 < lat2

This commit is contained in:
Shahram Najm 2020-10-07 17:42:28 +01:00
parent cda663d993
commit f22c70dfa4
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ static int init(grib_iterator* iter, grib_handle* h, grib_arguments* args)
jdir = (lat1 - lat2) / (Nj - 1); jdir = (lat1 - lat2) / (Nj - 1);
} }
else { else {
jdir = (lat1 + 360.0 - lat2) / (Nj - 1); jdir = (lat2 - lat1) / (Nj - 1);
} }
grib_context_log(h->context, GRIB_LOG_INFO, grib_context_log(h->context, GRIB_LOG_INFO,
"%s is missing (See jDirectionIncrementGiven). Using value of %.6f obtained from La1, La2 and Nj", s_jdir, jdir); "%s is missing (See jDirectionIncrementGiven). Using value of %.6f obtained from La1, La2 and Nj", s_jdir, jdir);