Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Carl Schreck
nClimGrid
Commits
fc85bee1
Commit
fc85bee1
authored
Sep 09, 2019
by
Carl Schreck
Browse files
Final products for August (patched non-zero infinities)
parent
e5ee400d
Changes
1
Hide whitespace changes
Inline
Side-by-side
prcp_map.py
View file @
fc85bee1
...
...
@@ -20,8 +20,8 @@ from datetime import datetime
# These are some parameters that could be useful to have up top
year
=
2019
month
=
8
first_day
=
1
last_day
=
7
first_day
=
22
last_day
=
30
time_range
=
slice
(
f
'
{
year
}
-
{
month
:
02
}
-
{
first_day
:
02
}
'
,
f
'
{
year
}
-
{
month
:
02
}
-
{
last_day
:
02
}
'
)
...
...
@@ -61,6 +61,8 @@ for shape in shapereader.Reader(shp_path).records():
anom_data
=
100.
*
total_data
/
clim_data
# Take care of infinities when the observed prcp is nonzero
anom_data
=
anom_data
.
where
((
total_data
==
0
)
|
(
clim_data
!=
0
),
600
)
levels
=
[
5
,
10
,
25
,
50
,
75
,
100
,
125
,
150
,
200
,
300
,
500
]
plot
=
anom_data
.
plot
(
levels
=
levels
,
ax
=
ax
,
transform
=
ccrs
.
PlateCarree
(),
cmap
=
'BrBG'
,
zorder
=
2
,
...
...
Carl Schreck
@carl
mentioned in commit
def9ffc8
·
Sep 18, 2019
mentioned in commit
def9ffc8
mentioned in commit def9ffc801c918ec9917ac63956e71fecd5d3192
Toggle commit list
Carl Schreck
@carl
mentioned in merge request
!2 (merged)
·
Sep 18, 2019
mentioned in merge request
!2 (merged)
mentioned in merge request !2
Toggle commit list
Carl Schreck
@carl
mentioned in commit
399acfc6
·
Sep 18, 2019
mentioned in commit
399acfc6
mentioned in commit 399acfc63a8a707a77d4e0480f8c4c810bd0b69d
Toggle commit list
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment