File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import pooch
2+
3+ def getPointsFile ():
4+ """Download and get path to points csv.
5+ """
6+ urlPoints = 'https://github.com/mapmanager/MapManagerCore-Data/raw/main/data/rr30a_s0u/points.csv'
7+ # urlPoints = 'https://raw.githubusercontent.com/mapmanager/MapManagerCore-Data/main/data/rr30a_s0u/points.csv'
8+ pointsPath = pooch .retrieve (
9+ url = urlPoints ,
10+ known_hash = None #'39f8ed2efc8212dd606a721f5a952864ea64ad4f1b6ba9816a3a91cc5471808c',
11+ )
12+ return pointsPath
13+
14+ def getLinesFile ():
15+ urlLines = 'https://github.com/mapmanager/MapManagerCore-Data/raw/main/data/rr30a_s0u/line_segments.csv'
16+ # urlLines = 'https://raw.githubusercontent.com/mapmanager/MapManagerCore-Data/main/data/rr30a_s0u/line_segments.csv'
17+ linePath = pooch .retrieve (
18+ url = urlLines ,
19+ known_hash = None #'bcb3c7d6e1df2f75b9eb69dedfc9cc4b5cb688f1ae4587030b84c0212b7bb727',
20+ )
21+ return linePath
22+
23+ def getTiffChannel_1 ():
24+ urlCh1 = 'https://github.com/mapmanager/MapManagerCore-Data/raw/main/data/rr30a_s0u/t0/rr30a_s0_ch1.tif'
25+ # urlCh1 = 'https://github.com/mapmanager/MapManagerCore-Data/blob/main/data/rr30a_s0u/t0/rr30a_s0_ch1.tif'
26+ ch1Path = pooch .retrieve (
27+ url = urlCh1 ,
28+ known_hash = None #'d72194e50130f46b7d7cb7cfdb8a425d9da995236c03c4d940d5d60c3e42c35e',
29+ )
30+ return ch1Path
31+
32+ def getTiffChannel_2 ():
33+ urlCh2 = 'https://github.com/mapmanager/MapManagerCore-Data/raw/main/data/rr30a_s0u/t0/rr30a_s0_ch2.tif'
34+ # urlCh2 = 'https://github.com/mapmanager/MapManagerCore-Data/blob/main/data/rr30a_s0u/t0/rr30a_s0_ch2.tif'
35+ ch2Path = pooch .retrieve (
36+ url = urlCh2 ,
37+ known_hash = None ,
38+ )
39+ return ch2Path
40+
41+
You can’t perform that action at this time.
0 commit comments