Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
cc09bf8f
Commit
cc09bf8f
authored
Mar 27, 2018
by
LEFEBVREJP email
Browse files
Add surface calculation if HGTS is requested from gfsfile.
parent
ca11005b
Pipeline
#12755
passed with stages
in 8 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixio/gfsfile.cc
View file @
cc09bf8f
...
...
@@ -799,6 +799,14 @@ std::vector<std::vector<float>> GFSFile::query(float lat, float lon, int month,
// initialize space for results vector
results
[
ll
]
=
std
::
vector
<
float
>
(
columns
.
size
(),
0.0
f
);
// if "HGTS" has been requested add level as the default HGTS
auto
hIt
=
std
::
find
(
columns
.
begin
(),
columns
.
end
(),
"HGTS"
);
if
(
hIt
!=
columns
.
end
())
{
results
[
ll
][
hIt
-
columns
.
begin
()]
=
hypsometric
(
msle
,
plevel
,
temp
)
-
surfaceAltitude
;
}
// check for time
auto
timeIt
=
std
::
find
(
columns
.
begin
(),
columns
.
end
(),
"TIME"
);
if
(
timeIt
!=
columns
.
end
())
...
...
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