gera-richarte commited on
Commit
d31681b
1 Parent(s): 40943a8

bump: version 0.1.1 → 0.2.0

Browse files
Files changed (3) hide show
  1. CHANGELOG.md +11 -0
  2. cz.yaml +1 -1
  3. earthview.py +11 -1
CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  ## 0.1.1 (2024-10-15)
2
 
3
  ### Fix
 
1
+ ## 0.2.0 (2024-10-15)
2
+
3
+ ### Feat
4
+
5
+ - **utils**: google maps link for neon images
6
+
7
+ ### Fix
8
+
9
+ - **earthview**: roll back. dataset re-shaped as previous version, this is compatible with new-new dataset
10
+ - **neon**: neon bounds and CSR are not coherent, fixing it in earthview.py
11
+
12
  ## 0.1.1 (2024-10-15)
13
 
14
  ### Fix
cz.yaml CHANGED
@@ -3,5 +3,5 @@ commitizen:
3
  name: cz_conventional_commits
4
  tag_format: $version
5
  update_changelog_on_bump: true
6
- version: 0.1.1
7
  version_scheme: semver
 
3
  name: cz_conventional_commits
4
  tag_format: $version
5
  update_changelog_on_bump: true
6
+ version: 0.2.0
7
  version_scheme: semver
earthview.py CHANGED
@@ -21,7 +21,10 @@ sets = {
21
  "config" : "default",
22
  "shards" : 607,
23
  "path" : "data",
24
- }
 
 
 
25
  }
26
 
27
  def get_subsets():
@@ -123,6 +126,13 @@ def item_to_images(subset, item):
123
  for image in i10m
124
  ]
125
  count = len(item["10m"])
 
 
 
 
 
 
 
126
  elif subset == "neon":
127
  item["rgb"] = [
128
  Image.fromarray(image.transpose(1,2,0))
 
21
  "config" : "default",
22
  "shards" : 607,
23
  "path" : "data",
24
+ },
25
+ "sentinel_2": {
26
+ "shards" : 19997,
27
+ },
28
  }
29
 
30
  def get_subsets():
 
126
  for image in i10m
127
  ]
128
  count = len(item["10m"])
129
+ elif subset == "sentinel_2":
130
+ for channel in ['10m', '20m', '40m', 'rgb']: #, 'scl', 'metadata']:
131
+ data = item[channel]
132
+ count = len(data)
133
+ data = np.asarray(data).astype("uint8")
134
+ images = [Image.fromarray(data[i,:,:,:].transpose(1,2,0)) for i in range(count)]
135
+ item[channel] = images
136
  elif subset == "neon":
137
  item["rgb"] = [
138
  Image.fromarray(image.transpose(1,2,0))