File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ List of related webpages not yet mentioned in the manuscript:
121
121
- https://mapsynergy.com/ and https://mapsynergy.maps.arcgis.com/apps/dashboards/44d9c8422f3c4cc898642d75392337db
122
122
- https://snowbrains.com/inconsistencies-in-classification-of-ski-slope-difficulty-ratings/
123
123
- https://steepseeker.com/
124
+ - https://bestsnow.net/
124
125
- https://www.zrankings.com/
125
126
126
127
## Publicity & Users
Original file line number Diff line number Diff line change 24
24
25
25
from openskistats .utils import get_request_headers
26
26
27
+ SEASON_ORIGIN_MONTH = 9
28
+ SEASON_ORIGIN_DAY = 1
29
+
27
30
28
31
@dataclass (frozen = True )
29
32
class NewEnglandSkiHistoryTimelineScraper :
@@ -171,6 +174,40 @@ def read_nesh_timelines_skimap_key() -> pl.DataFrame:
171
174
)
172
175
173
176
177
+ def _nesh_timeline_aggregators () -> list [pl .Expr ]:
178
+ season_origin_date_col = pl .date (
179
+ year = pl .col .season ,
180
+ month = SEASON_ORIGIN_MONTH ,
181
+ day = SEASON_ORIGIN_DAY ,
182
+ )
183
+ return [
184
+ pl .col ("opening_date" )
185
+ .sub (season_origin_date_col )
186
+ .dt .total_days ()
187
+ .mean ()
188
+ .alias ("opening_date_offset_mean" ),
189
+ pl .col ("closing_date" )
190
+ .sub (season_origin_date_col )
191
+ .dt .total_days ()
192
+ .mean ()
193
+ .alias ("closing_date_offset_mean" ),
194
+ pl .col ("opening_date" )
195
+ .to_physical ()
196
+ .mean ()
197
+ .cast (pl .Date )
198
+ .alias ("opening_date_mean" ),
199
+ pl .col ("closing_date" )
200
+ .to_physical ()
201
+ .mean ()
202
+ .cast (pl .Date )
203
+ .alias ("closing_date_mean" ),
204
+ pl .col .season_duration .mean ().alias ("season_duration_mean" ),
205
+ pl .col .opening_date .count ().alias ("opening_date_count" ),
206
+ pl .col .closing_date .count ().alias ("closing_date_count" ),
207
+ pl .col .season_duration .count ().alias ("season_duration_count" ),
208
+ ]
209
+
210
+
174
211
nesh_to_skimap = {
175
212
"https://www.newenglandskihistory.com/NewHampshire/abenaki.php" : "https://skimap.org/skiareas/view/4091" ,
176
213
"https://www.newenglandskihistory.com/NewHampshire/arrowhead.php" : "https://skimap.org/skiareas/view/2146" ,
You can’t perform that action at this time.
0 commit comments