mirror of https://github.com/ecmwf/eccodes.git
ECC-1154: grib_get_data: File with missing jDirectionIncrement and lat1 < lat2
This commit is contained in:
parent
cda663d993
commit
f22c70dfa4
|
@ -186,7 +186,7 @@ static int init(grib_iterator* iter, grib_handle* h, grib_arguments* args)
|
|||
jdir = (lat1 - lat2) / (Nj - 1);
|
||||
}
|
||||
else {
|
||||
jdir = (lat1 + 360.0 - lat2) / (Nj - 1);
|
||||
jdir = (lat2 - lat1) / (Nj - 1);
|
||||
}
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue