Commit 2d84d826 authored by Purves, Murray's avatar Purves, Murray
Browse files

Adding log interpolation to radixsnd2arl

parent 42d19530
Pipeline #39811 passed with stages
in 15 minutes and 11 seconds
......@@ -419,29 +419,29 @@ int main(int argc, char **argv)
}
std::cout << " Temperature:" << std::endl;
inputTemps = interpolateToOtherBaseValues(inputPressures,
resampledPressures, inputTemps);
inputTemps = interpolateToOtherBaseValues(
inputPressures, resampledPressures, inputTemps, true);
if (usingRelHum)
{
std::cout << " Relative humidity:" << std::endl;
inputRelHums = interpolateToOtherBaseValues(
inputPressures, resampledPressures, inputRelHums);
inputPressures, resampledPressures, inputRelHums, true);
}
if (usingDewPt)
{
std::cout << " Dew point:" << std::endl;
inputDewPts = interpolateToOtherBaseValues(
inputPressures, resampledPressures, inputDewPts);
inputPressures, resampledPressures, inputDewPts, true);
}
std::cout << " Wind speed:" << std::endl;
inputWSpds = interpolateToOtherBaseValues(inputPressures,
resampledPressures, inputWSpds);
inputWSpds = interpolateToOtherBaseValues(
inputPressures, resampledPressures, inputWSpds, false);
std::cout << " Wind direction:" << std::endl;
inputWDirs = interpolateToOtherBaseValues(
inputPressures, resampledPressures, inputWDirs, true);
inputPressures, resampledPressures, inputWDirs, false, true);
std::cout << " Height:" << std::endl;
inputHeights = interpolateToOtherBaseValues(
inputPressures, resampledPressures, inputHeights);
inputPressures, resampledPressures, inputHeights, true);
std::cout << " Replacing pressure data with resampled array" << std::endl;
radix_block(
......@@ -457,23 +457,23 @@ int main(int argc, char **argv)
{
std::cout << " Not resampling data" << std::endl;
std::cout << " Temperature:" << std::endl;
inputTemps = interpolateValues(inputPressures, inputTemps);
inputTemps = interpolateValues(inputPressures, inputTemps, true);
if (usingRelHum)
{
std::cout << " Relative humidity:" << std::endl;
inputRelHums = interpolateValues(inputPressures, inputRelHums);
inputRelHums = interpolateValues(inputPressures, inputRelHums, true);
}
if (usingDewPt)
{
std::cout << " Dew point:" << std::endl;
inputDewPts = interpolateValues(inputPressures, inputDewPts);
inputDewPts = interpolateValues(inputPressures, inputDewPts, true);
}
std::cout << " Wind speed:" << std::endl;
inputWSpds = interpolateValues(inputPressures, inputWSpds);
inputWSpds = interpolateValues(inputPressures, inputWSpds, false);
std::cout << " Wind direction:" << std::endl;
inputWDirs = interpolateValues(inputPressures, inputWDirs, true);
inputWDirs = interpolateValues(inputPressures, inputWDirs, false, true);
std::cout << " Height:" << std::endl;
inputHeights = interpolateValues(inputPressures, inputHeights);
inputHeights = interpolateValues(inputPressures, inputHeights, true);
}
std::cout << " Interpolation complete." << std::endl;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment