DGGS Statistics
Statistics module for vgrid.
This module provides functions to calculate and display statistics for various discrete global grid systems (DGGS), including cell counts, areas, and edge lengths.
a5inspect(resolution, options={'segments': 100}, split_antimeridian=False)
¶
Generate comprehensive inspection data for A5 DGGS cells at a given resolution.
This function creates a detailed analysis of A5 cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
A5 resolution level (0-29) |
required |
options
|
Optional dictionary of options for grid generation |
{'segments': 100}
|
|
split_antimeridian
|
bool
|
When True, apply antimeridian splitting to the resulting polygons. Defaults to False when None or omitted. |
False
|
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing A5 cell inspection data with columns: - a5: A5 cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/a5stats.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |
a5inspect_cli()
¶
Command-line interface for A5 cell inspection.
Source code in vgrid/stats/a5stats.py
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 | |
a5stats_cli()
¶
Command-line interface for generating A5 DGGS statistics.
Source code in vgrid/stats/a5stats.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
dggalinspect(dggs_type, resolution, split_antimeridian=False)
¶
Generate detailed inspection data for a DGGAL DGGS type at a given resolution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dggs_type
|
str
|
DGGS type supported by DGGAL |
required |
resolution
|
int
|
Resolution level |
required |
split_antimeridian
|
bool
|
When True, apply antimeridian splitting to the resulting polygons. Defaults to True when None or omitted. |
False
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
geopandas.GeoDataFrame with columns: - ZoneID (as provided by DGGAL output; no renaming is performed) - resolution - geometry - cell_area (m^2) - cell_perimeter (m) - crossed (bool) - norm_area (area/mean_area) - ipq (4πA/P²) - zsc (sqrt(4πA - A²/R²)/P), with R=WGS84 a |
Source code in vgrid/stats/dggalstats.py
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 | |
dggalinspect_cli()
¶
Command-line interface for DGGAL cell inspection.
Source code in vgrid/stats/dggalstats.py
673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 | |
dggalstats_cli()
¶
Command-line interface for generating DGGAL DGGS statistics.
Source code in vgrid/stats/dggalstats.py
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | |
dggridinspect(dggrid_instance, dggs_type, resolution, split_antimeridian=False, aggregate=False, options={'densification': 30})
¶
Generate detailed inspection data for a DGGRID DGGS type at a given resolution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dggrid_instance
|
DGGRID instance for grid operations |
required | |
dggs_type
|
str
|
DGGS type supported by DGGRID (see dggs_types) |
required |
resolution
|
int
|
Resolution level |
required |
split_antimeridian
|
bool
|
When True, apply antimeridian fixing to the resulting polygons. |
False
|
aggregate
|
bool
|
When True, aggregate the resulting polygons. Defaults to False to avoid aggregation by default. |
False
|
options
|
dict
|
Options to pass to grid_cell_polygons_for_extent. For example: {"densification": 2} to add densification points. Defaults to None. |
{'densification': 30}
|
Source code in vgrid/stats/dggridstats.py
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | |
dggridinspect_cli()
¶
Command-line interface for DGGRID cell inspection.
Source code in vgrid/stats/dggridstats.py
638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 | |
dggridstats_cli()
¶
Command-line interface for generating DGGAL DGGS statistics.
Source code in vgrid/stats/dggridstats.py
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |
digipininspect(resolution)
¶
Generate comprehensive inspection data for DIGIPIN DGGS cells at a given resolution.
This function creates a detailed analysis of DIGIPIN cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
DIGIPIN resolution level (1-10) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing DIGIPIN cell inspection data with columns: - digipin: DIGIPIN cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness - cvh: Convex Hull compactness |
Source code in vgrid/stats/digipinstats.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | |
digipininspect_cli()
¶
Command-line interface for DIGIPIN cell inspection.
Source code in vgrid/stats/digipinstats.py
534 535 536 537 538 539 540 541 542 543 544 545 | |
digipinstats_cli()
¶
Command-line interface for generating DIGIPIN DGGS statistics.
Source code in vgrid/stats/digipinstats.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | |
easeinspect(resolution)
¶
Generate comprehensive inspection data for EASE-DGGS cells at a given resolution.
This function creates a detailed analysis of EASE cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
EASE-DGGS resolution level (0-6) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing EASE cell inspection data with columns: - ease: EASE cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/easestats.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
easeinspect_cli()
¶
Command-line interface for EASE cell inspection.
Source code in vgrid/stats/easestats.py
495 496 497 498 499 500 501 502 503 504 505 506 | |
easestats_cli()
¶
Command-line interface for generating EASE-DGGS statistics.
Source code in vgrid/stats/easestats.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
garsinspect(resolution)
¶
Generate comprehensive inspection data for GARS DGGS cells at a given resolution.
This function creates a detailed analysis of GARS cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
GARS resolution level (0-4) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing GARS cell inspection data with columns: - gars: GARS cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/garsstats.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
garsinspect_cli()
¶
Command-line interface for GARS cell inspection.
Source code in vgrid/stats/garsstats.py
499 500 501 502 503 504 505 506 507 508 509 510 | |
garsstats_cli()
¶
Command-line interface for generating GARS DGGS statistics.
Source code in vgrid/stats/garsstats.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
geohashinspect(resolution)
¶
Generate comprehensive inspection data for Geohash DGGS cells at a given resolution.
This function creates a detailed analysis of Geohash cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
Geohash resolution level (0-12) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing Geohash cell inspection data with columns: - geohash: Geohash cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/geohashstats.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
geohashinspect_cli()
¶
Command-line interface for Geohash cell inspection.
Source code in vgrid/stats/geohashstats.py
505 506 507 508 509 510 511 512 513 514 515 516 | |
geohashstats_cli()
¶
Command-line interface for generating Geohash DGGS statistics.
Source code in vgrid/stats/geohashstats.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
georefinspect(resolution)
¶
Generate comprehensive inspection data for GEOREF DGGS cells at a given resolution.
This function creates a detailed analysis of GEOREF cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
GEOREF resolution level (0-10) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing GEOREF cell inspection data with columns: - georef: GEOREF cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/georefstats.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | |
georefinspect_cli()
¶
Command-line interface for GEOREF cell inspection.
Source code in vgrid/stats/georefstats.py
506 507 508 509 510 511 512 513 514 515 516 517 | |
georefstats_cli()
¶
Command-line interface for generating GEOREF DGGS statistics.
Source code in vgrid/stats/georefstats.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
h3inspect(resolution, fix_antimeridian=None)
¶
Generate comprehensive inspection data for H3 DGGS cells at a given resolution.
This function creates a detailed analysis of H3 cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
H3 resolution level (0-15) |
required |
fix_antimeridian
|
None
|
Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none |
None
|
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing H3 cell inspection data with columns: - h3: H3 cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - is_pentagon: Whether cell is a pentagon - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/h3stats.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
h3inspect_cli()
¶
Command-line interface for H3 cell inspection.
Source code in vgrid/stats/h3stats.py
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 | |
h3stats_cli()
¶
Command-line interface for generating H3 DGGS statistics.
Source code in vgrid/stats/h3stats.py
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | |
isea3hinspect(resolution, fix_antimeridian=None)
¶
Generate comprehensive inspection data for ISEA3H DGGS cells at a given resolution.
This function creates a detailed analysis of ISEA3H cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
ISEA3H resolution level (0-40) |
required |
fix_antimeridian
|
None
|
Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none |
None
|
Source code in vgrid/stats/isea3hstats.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | |
isea3hinspect_cli()
¶
Command-line interface for ISEA3H cell inspection.
Source code in vgrid/stats/isea3hstats.py
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 | |
isea3hstats_cli()
¶
Command-line interface for generating ISEA3H DGGS statistics.
Source code in vgrid/stats/isea3hstats.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | |
isea4tinspect(resolution, fix_antimeridian=None)
¶
Generate comprehensive inspection data for ISEA4T DGGS cells at a given resolution.
This function creates a detailed analysis of ISEA4T cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
ISEA4T resolution level (0-15) |
required | |
fix_antimeridian
|
None
|
Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none |
None
|
Source code in vgrid/stats/isea4tstats.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
isea4tinspect_cli()
¶
Command-line interface for ISEA4T cell inspection.
-fix, --fix_antimeridian: Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none
Source code in vgrid/stats/isea4tstats.py
506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 | |
isea4tstats_cli()
¶
Command-line interface for generating ISEA4T DGGS statistics.
Source code in vgrid/stats/isea4tstats.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |
maidenheadinspect(resolution)
¶
Generate comprehensive inspection data for Maidenhead DGGS cells at a given resolution.
This function creates a detailed analysis of Maidenhead cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
Maidenhead resolution level (1-4) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing Maidenhead cell inspection data with columns: - maidenhead: Maidenhead cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/maidenheadstats.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | |
maidenheadinspect_cli()
¶
Command-line interface for Maidenhead cell inspection.
Source code in vgrid/stats/maidenheadstats.py
515 516 517 518 519 520 521 522 523 524 525 526 | |
maidenheadstats_cli()
¶
Command-line interface for generating Maidenhead DGGS statistics.
Source code in vgrid/stats/maidenheadstats.py
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
mgrsstats_cli()
¶
Command-line interface for generating MGRS DGGS statistics.
Source code in vgrid/stats/mgrsstats.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
olcinspect(resolution)
¶
Generate comprehensive inspection data for OLC DGGS cells at a given resolution.
This function creates a detailed analysis of OLC cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
OLC resolution level (2-15) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing OLC cell inspection data with columns: - olc: OLC cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/olcstats.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
olcinspect_cli()
¶
Command-line interface for OLC cell inspection.
Source code in vgrid/stats/olcstats.py
491 492 493 494 495 496 497 498 499 500 501 502 | |
olcstats_cli()
¶
Command-line interface for generating OLC DGGS statistics.
Source code in vgrid/stats/olcstats.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
qtminspect(resolution)
¶
Generate comprehensive inspection data for QTM DGGS cells at a given resolution.
This function creates a detailed analysis of QTM cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
QTM resolution level (1-24) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing QTM cell inspection data with columns: - qtm: QTM cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/qtmstats.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | |
qtminspect_cli()
¶
Command-line interface for QTM cell inspection.
Source code in vgrid/stats/qtmstats.py
488 489 490 491 492 493 494 495 496 497 498 499 | |
qtmstats_cli()
¶
Command-line interface for generating QTM DGGS statistics.
Source code in vgrid/stats/qtmstats.py
114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | |
quadkeyinspect(resolution)
¶
Generate comprehensive inspection data for Quadkey DGGS cells at a given resolution.
This function creates a detailed analysis of Quadkey cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
Quadkey resolution level (0-29) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing Quadkey cell inspection data with columns: - quadkey: Quadkey cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/quadkeystats.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
quadkeyinspect_cli()
¶
Command-line interface for Quadkey cell inspection.
Source code in vgrid/stats/quadkeystats.py
500 501 502 503 504 505 506 507 508 509 510 511 | |
quadkeystats_cli()
¶
Command-line interface for generating Quadkey DGGS statistics.
Source code in vgrid/stats/quadkeystats.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
rhealpixinspect(resolution=0, fix_antimeridian=None)
¶
Generate comprehensive inspection data for rHEALPix DGGS cells at a given resolution.
This function creates a detailed analysis of rHEALPix cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
rHEALPix resolution level (0-15) |
0
|
fix_antimeridian
|
str
|
Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none |
None
|
Source code in vgrid/stats/rhealpixstats.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
rhealpixinspect_cli()
¶
Command-line interface for rHEALPix cell inspection.
Source code in vgrid/stats/rhealpixstats.py
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 | |
rhealpixstats_cli()
¶
Command-line interface for generating rHEALPix DGGS statistics.
Source code in vgrid/stats/rhealpixstats.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
s2inspect(resolution, fix_antimeridian=None)
¶
Generate comprehensive inspection data for S2 DGGS cells at a given resolution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
S2 resolution level (0-30) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing S2 cell inspection data with columns: - s2: S2 cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/s2stats.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | |
s2inspect_cli()
¶
Command-line interface for S2 cell inspection. CLI options: -r, --resolution: S2 resolution level (0-30) -split, --split_antimeridian: Enable antimeridian splitting (default: enabled)
Source code in vgrid/stats/s2stats.py
480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 | |
s2stats_cli()
¶
Command-line interface for generating S2 DGGS statistics.
Source code in vgrid/stats/s2stats.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
tilecodeinspect(resolution)
¶
Generate comprehensive inspection data for Tilecode DGGS cells at a given resolution.
This function creates a detailed analysis of Tilecode cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
Tilecode resolution level (0-29) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing Tilecode cell inspection data with columns: - tilecode: Tilecode cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/tilecodestats.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
tilecodeinspect_cli()
¶
Command-line interface for Tilecode cell inspection.
Source code in vgrid/stats/tilecodestats.py
503 504 505 506 507 508 509 510 511 512 513 514 | |
tilecodestats_cli()
¶
Command-line interface for generating Tilecode DGGS statistics.
Source code in vgrid/stats/tilecodestats.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
This module provides functions for generating statistics for H3 DGGS cells.
h3stats(unit='m')
¶
Generate comprehensive statistics for H3 DGGS cells.
This function combines basic H3 statistics (number of cells, edge lengths, areas) with area extrema analysis (min/max areas and ratios).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing comprehensive H3 DGGS statistics with columns: - resolution: Resolution level (0-15) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_area_{unit}2: Average cell area in the squared unit - min_area_{unit}2: Minimum pentagon area - max_area_{unit}2: Maximum hexagon area - max_min_ratio: Ratio of max hexagon area to min pentagon area |
Source code in vgrid/stats/h3stats.py
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 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | |
h3inspect(resolution, fix_antimeridian=None)
¶
Generate comprehensive inspection data for H3 DGGS cells at a given resolution.
This function creates a detailed analysis of H3 cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
H3 resolution level (0-15) |
required |
fix_antimeridian
|
None
|
Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none |
None
|
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing H3 cell inspection data with columns: - h3: H3 cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - is_pentagon: Whether cell is a pentagon - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/h3stats.py
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
This module provides functions for generating statistics for S2 DGGS cells.
s2stats(unit='m')
¶
Generate statistics for S2 DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing S2 DGGS statistics with columns: - Resolution: Resolution level (0-30) - Number_of_Cells: Number of cells at each resolution - Avg_Edge_Length_{unit}: Average edge length in the given unit - Avg_Cell_Area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/s2stats.py
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 | |
s2inspect(resolution, fix_antimeridian=None)
¶
Generate comprehensive inspection data for S2 DGGS cells at a given resolution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
S2 resolution level (0-30) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing S2 cell inspection data with columns: - s2: S2 cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/s2stats.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | |
This module provides functions for generating statistics for A5 DGGS cells.
a5stats(unit='m')
¶
Generate statistics for A5 DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing A5 DGGS statistics with columns: - Resolution: Resolution level (0-29) - Number_of_Cells: Number of cells at each resolution - Avg_Edge_Length_{unit}: Average edge length in the given unit - CLS: Characteristic length scale in the given unit - Avg_Cell_Area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/a5stats.py
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 | |
a5inspect(resolution, options={'segments': 100}, split_antimeridian=False)
¶
Generate comprehensive inspection data for A5 DGGS cells at a given resolution.
This function creates a detailed analysis of A5 cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
A5 resolution level (0-29) |
required |
options
|
Optional dictionary of options for grid generation |
{'segments': 100}
|
|
split_antimeridian
|
bool
|
When True, apply antimeridian splitting to the resulting polygons. Defaults to False when None or omitted. |
False
|
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing A5 cell inspection data with columns: - a5: A5 cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/a5stats.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | |
This module provides functions for generating statistics for rHEALPix DGGS cells.
rhealpixstats(unit='m')
¶
Generate statistics for rHEALPix DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing rHEALPix DGGS statistics with columns: - Resolution: Resolution level (0-30) - Number_of_Cells: Number of cells at each resolution - Avg_Edge_Length_{unit}: Average edge length in the given unit - Avg_Cell_Area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/rhealpixstats.py
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 | |
rhealpixinspect(resolution=0, fix_antimeridian=None)
¶
Generate comprehensive inspection data for rHEALPix DGGS cells at a given resolution.
This function creates a detailed analysis of rHEALPix cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
rHEALPix resolution level (0-15) |
0
|
fix_antimeridian
|
str
|
Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none |
None
|
Source code in vgrid/stats/rhealpixstats.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
This module provides lightweight wrappers for DGGAL using the external dgg CLI directly.
Per request, dggalstats simply returns the direct output from
dgg <dggs_type> level without computing any additional metrics.
dggalstats(dggs_type, unit='m')
¶
Compute and return a DataFrame of DGGAL metrics per resolution for the given type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dggs_type
|
str
|
DGGS type supported by DGGAL (see vgrid.utils.constants.DGGAL_TYPES) |
required |
unit
|
str
|
'm' or 'km' for length; area columns will reflect the squared unit |
'm'
|
Returns:
| Type | Description |
|---|---|
DataFrame | None
|
pandas DataFrame with columns for resolution, number of cells, average edge length, |
DataFrame | None
|
and average cell area in the requested units. |
Source code in vgrid/stats/dggalstats.py
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | |
dggalinspect(dggs_type, resolution, split_antimeridian=False)
¶
Generate detailed inspection data for a DGGAL DGGS type at a given resolution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dggs_type
|
str
|
DGGS type supported by DGGAL |
required |
resolution
|
int
|
Resolution level |
required |
split_antimeridian
|
bool
|
When True, apply antimeridian splitting to the resulting polygons. Defaults to True when None or omitted. |
False
|
Returns:
| Type | Description |
|---|---|
GeoDataFrame
|
geopandas.GeoDataFrame with columns: - ZoneID (as provided by DGGAL output; no renaming is performed) - resolution - geometry - cell_area (m^2) - cell_perimeter (m) - crossed (bool) - norm_area (area/mean_area) - ipq (4πA/P²) - zsc (sqrt(4πA - A²/R²)/P), with R=WGS84 a |
Source code in vgrid/stats/dggalstats.py
280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 | |
DGGRID Statistics Module
This module provides functions to calculate and display statistics for DGGRID Discrete Global Grid System (DGGS) types. It supports both command-line interface and direct function calls.
Key Functions: - dggrid_stats: Calculate and display statistics for a given DGGRID DGGS type and resolution - dggridinspect: Generate detailed inspection data for a given DGGRID DGGS type and resolution - main: Command-line interface for dggrid_stats
dggridstats(dggrid_instance, dggs_type, unit='m')
¶
length unit is m, area unit is m2 Return a DataFrame of DGGRID stats per resolution.
'km' or 'm' for length columns; area is squared unit.
DGGRID native output is km^2 for area and km for CLS.
Columns include avg_edge_len_{unit}, derived from mean cell area
and topology (hex vs quad).
Source code in vgrid/stats/dggridstats.py
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 | |
dggridinspect(dggrid_instance, dggs_type, resolution, split_antimeridian=False, aggregate=False, options={'densification': 30})
¶
Generate detailed inspection data for a DGGRID DGGS type at a given resolution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dggrid_instance
|
DGGRID instance for grid operations |
required | |
dggs_type
|
str
|
DGGS type supported by DGGRID (see dggs_types) |
required |
resolution
|
int
|
Resolution level |
required |
split_antimeridian
|
bool
|
When True, apply antimeridian fixing to the resulting polygons. |
False
|
aggregate
|
bool
|
When True, aggregate the resulting polygons. Defaults to False to avoid aggregation by default. |
False
|
options
|
dict
|
Options to pass to grid_cell_polygons_for_extent. For example: {"densification": 2} to add densification points. Defaults to None. |
{'densification': 30}
|
Source code in vgrid/stats/dggridstats.py
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | |
This module provides functions for generating statistics for ISEA4T DGGS cells.
isea4tstats(unit='m')
¶
Generate statistics for ISEA4T DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing ISEA4T DGGS statistics with columns: - Resolution: Resolution level (0-39) - Number_of_Cells: Number of cells at each resolution - Avg_Edge_Length_{unit}: Average edge length in the given unit - Avg_Cell_Area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/isea4tstats.py
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 | |
isea4tinspect(resolution, fix_antimeridian=None)
¶
Generate comprehensive inspection data for ISEA4T DGGS cells at a given resolution.
This function creates a detailed analysis of ISEA4T cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
ISEA4T resolution level (0-15) |
required | |
fix_antimeridian
|
None
|
Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none |
None
|
Source code in vgrid/stats/isea4tstats.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
This module provides functions for generating statistics for ISEA3H DGGS cells.
isea3hstats(unit='m')
¶
Generate statistics for ISEA3H DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing ISEA3H DGGS statistics with columns: - Resolution: Resolution level (0-40) - Number_of_Cells: Number of cells at each resolution - Avg_Edge_Length_{unit}: Average edge length in the given unit - Avg_Cell_Area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/isea3hstats.py
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 | |
isea3hinspect(resolution, fix_antimeridian=None)
¶
Generate comprehensive inspection data for ISEA3H DGGS cells at a given resolution.
This function creates a detailed analysis of ISEA3H cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
ISEA3H resolution level (0-40) |
required |
fix_antimeridian
|
None
|
Antimeridian fixing method: shift, shift_balanced, shift_west, shift_east, split, none |
None
|
Source code in vgrid/stats/isea3hstats.py
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | |
This module provides functions for generating statistics for EASE-DGGS cells.
easestats(unit='m')
¶
Generate statistics for EASE-DGGS cells. length unit is m, area unit is m2 Args: unit: 'm' or 'km' for length; area will be 'm^2' or 'km^2'
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing EASE-DGGS statistics with columns: - Resolution: Resolution level (0-6) - Number_of_Cells: Number of cells at each resolution - Avg_Edge_Length_{unit}: Average edge length in the given unit - Avg_Cell_Area_{unit}2: Average cell area in the squared unit - CLS_{unit}: Characteristic Length Scale in the given unit |
Source code in vgrid/stats/easestats.py
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 | |
easeinspect(resolution)
¶
Generate comprehensive inspection data for EASE-DGGS cells at a given resolution.
This function creates a detailed analysis of EASE cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
EASE-DGGS resolution level (0-6) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing EASE cell inspection data with columns: - ease: EASE cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/easestats.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
This module provides functions for generating statistics for QTM DGGS cells.
qtmstats(unit='m')
¶
Generate statistics for QTM DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing QTM DGGS statistics with columns: - resolution: Resolution level (1-24) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/qtmstats.py
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 | |
qtminspect(resolution)
¶
Generate comprehensive inspection data for QTM DGGS cells at a given resolution.
This function creates a detailed analysis of QTM cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
QTM resolution level (1-24) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing QTM cell inspection data with columns: - qtm: QTM cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/qtmstats.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | |
This module provides functions for generating statistics for OLC DGGS cells.
olcstats(unit='m')
¶
Generate statistics for OLC DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing OLC DGGS statistics with columns: - resolution: Resolution level (2,4,6,8,10,11,12,13,14,15) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/olcstats.py
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 | |
olcinspect(resolution)
¶
Generate comprehensive inspection data for OLC DGGS cells at a given resolution.
This function creates a detailed analysis of OLC cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
OLC resolution level (2-15) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing OLC cell inspection data with columns: - olc: OLC cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/olcstats.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
This module provides functions for generating statistics for Geohash DGGS cells.
geohashstats(unit='m')
¶
Generate statistics for Geohash DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing Geohash DGGS statistics with columns: - resolution: Resolution level (0-12) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/geohashstats.py
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 | |
geohashinspect(resolution)
¶
Generate comprehensive inspection data for Geohash DGGS cells at a given resolution.
This function creates a detailed analysis of Geohash cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
Geohash resolution level (0-12) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing Geohash cell inspection data with columns: - geohash: Geohash cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/geohashstats.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
This module provides functions for generating statistics for GEOREF DGGS cells.
georefstats(unit='m')
¶
Generate statistics for GEOREF DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing GEOREF DGGS statistics with columns: - resolution: Resolution level (0-7) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/georefstats.py
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 | |
georefinspect(resolution)
¶
Generate comprehensive inspection data for GEOREF DGGS cells at a given resolution.
This function creates a detailed analysis of GEOREF cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
GEOREF resolution level (0-10) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing GEOREF cell inspection data with columns: - georef: GEOREF cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/georefstats.py
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | |
This module provides functions for generating statistics for MGRS DGGS cells.
mgrsstats(unit='m')
¶
Generate statistics for MGRS DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing MGRS DGGS statistics with columns: - resolution: Resolution level (0-5) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/mgrsstats.py
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 | |
This module provides functions for generating statistics for Tilecode DGGS cells.
tilecodestats(unit='m')
¶
Generate statistics for Tilecode DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing Tilecode DGGS statistics with columns: - resolution: Resolution level (0-30) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/tilecodestats.py
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 | |
tilecodeinspect(resolution)
¶
Generate comprehensive inspection data for Tilecode DGGS cells at a given resolution.
This function creates a detailed analysis of Tilecode cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
Tilecode resolution level (0-29) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing Tilecode cell inspection data with columns: - tilecode: Tilecode cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/tilecodestats.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
This module provides functions for generating statistics for Quadkey DGGS cells.
quadkeystats(unit='m')
¶
Generate statistics for Quadkey DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing Quadkey DGGS statistics with columns: - resolution: Resolution level (0-30) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/quadkeystats.py
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 | |
quadkeyinspect(resolution)
¶
Generate comprehensive inspection data for Quadkey DGGS cells at a given resolution.
This function creates a detailed analysis of Quadkey cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
Quadkey resolution level (0-29) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing Quadkey cell inspection data with columns: - quadkey: Quadkey cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/quadkeystats.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | |
This module provides functions for generating statistics for Maidenhead DGGS cells.
maidenheadstats(unit='m')
¶
Generate statistics for Maidenhead DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing Maidenhead DGGS statistics with columns: - resolution: Resolution level (0-4) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/maidenheadstats.py
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 | |
maidenheadinspect(resolution)
¶
Generate comprehensive inspection data for Maidenhead DGGS cells at a given resolution.
This function creates a detailed analysis of Maidenhead cells including area variations, compactness measures, and dateline crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
Maidenhead resolution level (1-4) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing Maidenhead cell inspection data with columns: - maidenhead: Maidenhead cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the dateline - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/maidenheadstats.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | |
This module provides functions for generating statistics for GARS DGGS cells.
garsstats(unit='m')
¶
Generate statistics for GARS DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing GARS DGGS statistics with columns: - resolution: Resolution level (0-4) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit |
Source code in vgrid/stats/garsstats.py
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 | |
garsinspect(resolution)
¶
Generate comprehensive inspection data for GARS DGGS cells at a given resolution.
This function creates a detailed analysis of GARS cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
int
|
GARS resolution level (0-4) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing GARS cell inspection data with columns: - gars: GARS cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness |
Source code in vgrid/stats/garsstats.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | |
This module provides functions for generating statistics for DIGIPIN DGGS cells.
digipinstats(unit='m')
¶
Generate statistics for DIGIPIN DGGS cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unit
|
str
|
'm' or 'km' for length; area will be 'm^2' or 'km^2' |
'm'
|
Returns:
| Type | Description |
|---|---|
|
pandas.DataFrame: DataFrame containing DIGIPIN DGGS statistics with columns: - resolution: Resolution level (1-10) - number_of_cells: Number of cells at each resolution - avg_edge_len_{unit}: Average edge length in the given unit - avg_cell_area_{unit}2: Average cell area in the squared unit - cls_{unit}: Characteristic length scale in the given unit |
Source code in vgrid/stats/digipinstats.py
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 | |
digipininspect(resolution)
¶
Generate comprehensive inspection data for DIGIPIN DGGS cells at a given resolution.
This function creates a detailed analysis of DIGIPIN cells including area variations, compactness measures, and Antimeridian crossing detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
resolution
|
DIGIPIN resolution level (1-10) |
required |
Returns:
| Type | Description |
|---|---|
|
geopandas.GeoDataFrame: DataFrame containing DIGIPIN cell inspection data with columns: - digipin: DIGIPIN cell ID - resolution: Resolution level - geometry: Cell geometry - cell_area: Cell area in square meters - cell_perimeter: Cell perimeter in meters - crossed: Whether cell crosses the Antimeridian - norm_area: Normalized area (cell_area / mean_area) - ipq: Isoperimetric Quotient compactness - zsc: Zonal Standardized Compactness - cvh: Convex Hull compactness |
Source code in vgrid/stats/digipinstats.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | |