Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Eva Schiffer
UW-Glance
Commits
ff2f595e
Commit
ff2f595e
authored
Dec 28, 2021
by
Eva Schiffer
Browse files
nevermind, setting the central longitude breaks cartopy in some cases
parent
9d56ad50
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyglance/glance/graphics.py
View file @
ff2f595e
...
...
@@ -227,11 +227,11 @@ def create_cartopy_proj_objects (extents, out_proj4_str=None,) :
# lat_top = extents[3]
lon_mid
=
calculate_lon_mid
(
lon_left
,
lon_right
)
# handle lon wraparound case
# lat_mid = (lat_top + lat_bottom) / 2.
LOG
.
debug
(
"Using central longitude: "
+
str
(
lon_mid
))
print
(
"Using central longitude: "
+
str
(
lon_mid
))
# for now just use PlateCarree, in
# FUTURE we will want to pick projections based on our input so we could use x and y when desired
input_proj_obj
=
crs
.
PlateCarree
(
central_longitude
=
lon_mid
,)
input_proj_obj
=
crs
.
PlateCarree
(
)
#
central_longitude=lon_mid,)
# FUTURE, we will probably want different projections; select based on the lat/lon range?
# for reference, here's what cartopy supports: https://scitools.org.uk/cartopy/docs/v0.15/crs/projections.html#cartopy-projections
...
...
Write
Preview
Supports
Markdown
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