Skip to content

Commit

Permalink
If caller has specified interpolation method, use that
Browse files Browse the repository at this point in the history
  • Loading branch information
mpartio committed Mar 31, 2021
1 parent e58eaab commit 2f3247b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion himan-plugins/source/geotiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ param ReadParam(const std::map<std::string, std::string>& meta, const producer&

param p(parameter["name"]);
p.Id(std::stoi(parameter["id"]));
p.InterpolationMethod(par.InterpolationMethod());

return p;
}

Expand Down Expand Up @@ -407,7 +409,7 @@ std::vector<std::shared_ptr<info<T>>> geotiff::FromFile(const file_information&

// "first guess" metadata from file metadata

auto par = ReadParam(meta, options.prod, param());
auto par = ReadParam(meta, options.prod, options.param);
auto lvl = ReadLevel(meta, options.level);
auto ftype = ReadForecastType(meta, options.ftype);
auto ftime = ReadTime(meta, options.time);
Expand Down
2 changes: 2 additions & 0 deletions himan-plugins/source/grib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2174,6 +2174,8 @@ himan::param ReadParam(const search_options& options, const producer& prod, cons
logr.Trace("Unable to determine himan parameter unit for grib unit " + message.ParameterUnit());
}

p.InterpolationMethod(options.param.InterpolationMethod());

return p;
}

Expand Down

0 comments on commit 2f3247b

Please sign in to comment.