-
-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathalbers.py
More file actions
29 lines (25 loc) · 1.18 KB
/
albers.py
File metadata and controls
29 lines (25 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved.
# Distributed under the (new) BSD License.
# -----------------------------------------------------------------------------
"""
An alias for ConicEqualArea, with USA-centric defaults:
scale: 1285
translate: (960, 500)
rotation: 96°, 0°
center: -0.6°, 38.7°
parallels: 29.5°, 45.5°
This makes it suitable for displaying the United States, centered around
Hutchinson, Kansas in a 960×500 area. The central meridian and parallels are
specified by the USGS in the 1970 National Atlas. Albers projection
See: https://github.com/mbostock/d3/blob/master/src/geo/conic-equal-area.js
http://mathworld.wolfram.com/AlbersEqual-AreaConicProjection.html
http://en.wikipedia.org/wiki/Albers_projection
"""
from . conic_equal_area import ConicEqualArea
Albers = ConicEqualArea(scale=1285,
parallels = (29.5, 45.5),
rotate = (96,0),
translate = (480,250),
center = (0.01, -0.6)) # to be fixed using geo_rotation