Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rose_fvcom_setup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PML-modelling
rose_fvcom_setup
Commits
fe0f1966
Commit
fe0f1966
authored
Nov 12, 2018
by
Mike Bedington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up river update function
parent
41bd0387
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
51 deletions
+52
-51
app/update_river_model/file/update_river_data.py
app/update_river_model/file/update_river_data.py
+52
-51
No files found.
app/update_river_model/file/update_river_data.py
View file @
fe0f1966
...
...
@@ -64,7 +64,8 @@ else:
for
i
in
range
(
0
,
len
(
forecast_data
[
'times'
])):
this_temp
[
i
]
=
np
.
average
(
forecast_data
[
'T2'
][
i
,:,:],
weights
=
this_river
.
wrf_catchment_factors
)
this_river
.
addToSeries
(
'catchment_temp'
,
this_temp
,
forecast_data
[
'times'
],
override
=
True
)
if
hasattr
(
this_river
,
'river_obj'
):
this_river
.
catchment_precipitation
=
this_river
.
river_obj
.
catchment_precipitation
except
:
new_missing_dates
.
append
(
this_date
)
missing_dates
=
new_missing_dates
[:]
...
...
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