Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
ada3950f
Commit
ada3950f
authored
Jun 27, 2019
by
LEFEBVREJP email
Browse files
Fixing bug in radixsnd2arl that caused temperature to climb each interval.
parent
e8f87bdb
Pipeline
#61356
passed with stages
in 14 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixio/examples/radixsnd2arl.cc
View file @
ada3950f
...
...
@@ -475,6 +475,11 @@ int main(int argc, char **argv)
std
::
cout
<<
" Height:"
<<
std
::
endl
;
inputHeights
=
interpolateValues
(
inputPressures
,
inputHeights
,
true
);
}
// First convert temperature from Celsius to Kelvin
std
::
cout
<<
"Converting Temperature from C to Kelvin."
<<
std
::
endl
;
std
::
transform
(
inputTemps
.
begin
(),
inputTemps
.
end
(),
inputTemps
.
begin
(),
[](
double
v
)
{
return
v
-
ABS_ZERO_CELSIUS
;
});
std
::
cout
<<
" Interpolation complete."
<<
std
::
endl
;
// Check if the grid is of appropriate size - with too small grid/too many
...
...
@@ -604,8 +609,6 @@ int main(int argc, char **argv)
}
// Write temperature levels
// First convert temperature from Celsius to Kelvin
inputTemps
[
level
]
=
inputTemps
[
level
]
-
ABS_ZERO_CELSIUS
;
{
thisRecordHeader
.
kvar
=
"TEMP"
;
thisRecordHeader
.
var1
=
inputTemps
[
level
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment