aliasfox commited on
Commit
7c82532
·
verified ·
1 Parent(s): fb022e0

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +74 -0
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: copernicus
4
+ license_link: https://copernicus.eu/user-license
5
+ task_categories:
6
+ - other
7
+ tags:
8
+ - elevation
9
+ - dem
10
+ - copernicus
11
+ - terrain
12
+ - geospatial
13
+ size_categories:
14
+ - 100K<n<1M
15
+ ---
16
+
17
+ # Copernicus GLO-30 DEM Chunks
18
+
19
+ Global Digital Elevation Model (DEM) tiles from the Copernicus GLO-30 dataset,
20
+ pre-processed into 256x256 chunks in OZCHNK01 merged format for efficient
21
+ web serving.
22
+
23
+ ## Source
24
+
25
+ Copernicus DEM GLO-30 (30-meter resolution) from the European Space Agency.
26
+ Original COG tiles downloaded from AWS Open Data:
27
+ https://copernicus-dem-30m.s3.eu-central-1.amazonaws.com/
28
+
29
+ ## License
30
+
31
+ Copernicus Licence (free for most uses). See: https://copernicus.eu/user-license
32
+
33
+ ## Format
34
+
35
+ Binary merged format (OZCHNK01):
36
+
37
+ - **Magic**: 8 bytes "OZCHNK01"
38
+ - **Version**: 2 (Copernicus = Float32)
39
+ - **Grid**: Variable ROWS x COLS (depends on tile dimensions)
40
+ - **Index**: Array of [4-byte offset, 4-byte size] per chunk
41
+ - **Data**: Concatenated zlib-compressed 256x256 Float32 chunks
42
+
43
+ ### Tile Grid
44
+
45
+ - Internal COG tiles: 1024x1024 pixels
46
+ - Each split into 4x4 = 16 chunks of 256x256
47
+ - Edge tiles may have fewer chunks
48
+ - Data type: Float32 (4 bytes/pixel)
49
+
50
+ ### File Naming
51
+
52
+ Files are organized by latitude band:
53
+
54
+ - Path: `{lat_dir}/{basename}.merged`
55
+ - Example: `N00/COPDEM_N00_00_E006_00_DEM.merged`
56
+
57
+ ## Coverage
58
+
59
+ Global land areas at 30m resolution (~90GB total, ~26,450 tiles).
60
+
61
+ ## Usage
62
+
63
+ For use with OpenZenith elevation API. Each merged file contains all 256x256
64
+ chunks for one Copernicus tile, allowing efficient range requests to fetch
65
+ individual chunks.
66
+
67
+ To read a chunk:
68
+
69
+ 1. Open the merged file
70
+ 2. Read the 12-byte header (magic + version + rows + cols)
71
+ 3. Read the index: rows*cols entries of [offset, size]
72
+ 4. Seek to the chunk offset, read size bytes
73
+ 5. Decompress with zlib to get 256x256 Float32 pixel data
74
+ 6. Elevation value = float32 at row*256 + col