Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
radix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LEFEBVREJP email
radix
Commits
ada3950f
Commit
ada3950f
authored
5 years ago
by
LEFEBVREJP email
Browse files
Options
Downloads
Patches
Plain Diff
Fixing bug in radixsnd2arl that caused temperature to climb each interval.
parent
e8f87bdb
No related branches found
Branches containing commit
Tags
SAMMY-8.2-beta1
Tags containing commit
1 merge request
!77
Snd2arl
Pipeline
#61356
passed with warnings
5 years ago
Stage: test
Stage: analysis
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
radixio/examples/radixsnd2arl.cc
+5
-2
5 additions, 2 deletions
radixio/examples/radixsnd2arl.cc
with
5 additions
and
2 deletions
radixio/examples/radixsnd2arl.cc
+
5
−
2
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
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment