-
Notifications
You must be signed in to change notification settings - Fork 0
/
controls.py
145 lines (141 loc) · 3.02 KB
/
controls.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# flake8: noqa
# In[]:
# Controls for webapp
COUNTIES = {
"001": "Albany",
"003": "Allegany",
"005": "Bronx",
"007": "Broome",
"009": "Cattaraugus",
"011": "Cayuga",
"013": "Chautauqua",
"015": "Chemung",
"017": "Chenango",
"019": "Clinton",
"021": "Columbia",
"023": "Cortland",
"025": "Delaware",
"027": "Dutchess",
"029": "Erie",
"031": "Essex",
"033": "Franklin",
"035": "Fulton",
"037": "Genesee",
"039": "Greene",
"041": "Hamilton",
"043": "Herkimer",
"045": "Jefferson",
"047": "Kings",
"049": "Lewis",
"051": "Livingston",
"053": "Madison",
"055": "Monroe",
"057": "Montgomery",
"059": "Nassau",
"061": "New York",
"063": "Niagara",
"065": "Oneida",
"067": "Onondaga",
"069": "Ontario",
"071": "Orange",
"073": "Orleans",
"075": "Oswego",
"077": "Otsego",
"079": "Putnam",
"081": "Queens",
"083": "Rensselaer",
"085": "Richmond",
"087": "Rockland",
"089": "St. Lawrence",
"091": "Saratoga",
"093": "Schenectady",
"095": "Schoharie",
"097": "Schuyler",
"099": "Seneca",
"101": "Steuben",
"103": "Suffolk",
"105": "Sullivan",
"107": "Tioga",
"109": "Tompkins",
"111": "Ulster",
"113": "Warren",
"115": "Washington",
"117": "Wayne",
"119": "Westchester",
"121": "Wyoming",
"123": "Yates",
}
WELL_STATUSES = dict(
AC="Active",
AR="Application Received to Drill/Plug/Convert",
CA="Cancelled",
DC="Drilling Completed",
DD="Drilled Deeper",
DG="Drilling in Progress",
EX="Expired Permit",
IN="Inactive",
NR="Not Reported on AWR",
PA="Plugged and Abandoned",
PI="Permit Issued",
PB="Plugged Back",
PM="Plugged Back Multilateral",
RE="Refunded Fee",
RW="Released - Water Well",
SI="Shut-In",
TA="Temporarily Abandoned",
TR="Transferred Permit",
UN="Unknown",
UL="Unknown Located",
UM="Unknown Not Found",
VP="Voided Permit",
)
WELL_TYPES = dict(
BR="Brine",
Confidential="Confidential",
DH="Dry Hole",
DS="Disposal",
DW="Dry Wildcat",
GD="Gas Development",
GE="Gas Extension",
GW="Gas Wildcat",
IG="Gas Injection",
IW="Oil Injection",
LP="Liquefied Petroleum Gas Storage",
MB="Monitoring Brine",
MM="Monitoring Miscellaneous",
MS="Monitoring Storage",
NL="Not Listed",
OB="Observation Well",
OD="Oil Development",
OE="Oil Extension",
OW="Oil Wildcat",
SG="Stratigraphic",
ST="Storage",
TH="Geothermal",
UN="Unknown",
)
WELL_COLORS = dict(
GD="#FFEDA0",
GE="#FA9FB5",
GW="#A1D99B",
IG="#67BD65",
OD="#BFD3E6",
OE="#B3DE69",
OW="#FDBF6F",
ST="#FC9272",
BR="#D0D1E6",
MB="#ABD9E9",
IW="#3690C0",
LP="#F87A72",
MS="#CA6BCC",
Confidential="#DD3497",
DH="#4EB3D3",
DS="#FFFF33",
DW="#FB9A99",
MM="#A6D853",
NL="#D4B9DA",
OB="#AEB0B8",
SG="#CCCCCC",
TH="#EAE5D9",
UN="#C29A84",
)