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.
a5_segments_cli()
¶
Command-line interface for A5 segments analysis.
Source code in vgrid/stats/a5_segments.py
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 135 136 137 138 139 140 141 142 143 144 145 146 147 | |
a5inspect(resolution, options={'segments': 100}, split_antimeridian=False, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
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 201 202 203 204 205 206 207 208 209 210 211 212 | |
a5inspect_cli()
¶
Command-line interface for A5 cell inspection.
Source code in vgrid/stats/a5stats.py
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 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 | |
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, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
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
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 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | |
dggalinspect_cli()
¶
Command-line interface for DGGAL cell inspection.
Source code in vgrid/stats/dggalstats.py
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 | |
dggalstats_cli()
¶
Command-line interface for generating DGGAL DGGS statistics.
Source code in vgrid/stats/dggalstats.py
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | |
dggridinspect(dggrid_instance, dggs_type, resolution, split_antimeridian=False, aggregate=False, options={'densification': 30}, verbose=True)
¶
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}
|
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/dggridstats.py
201 202 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 313 314 315 316 317 318 319 320 321 322 323 | |
dggridinspect_cli()
¶
Command-line interface for DGGRID cell inspection.
Source code in vgrid/stats/dggridstats.py
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 699 700 701 702 703 704 705 706 707 708 709 710 711 | |
dggridstats_cli()
¶
Command-line interface for generating DGGAL DGGS statistics.
Source code in vgrid/stats/dggridstats.py
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 | |
digipininspect(resolution, verbose=True)
¶
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 | |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/digipinstats.py
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 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |
digipininspect_cli()
¶
Command-line interface for DIGIPIN cell inspection.
Source code in vgrid/stats/digipinstats.py
536 537 538 539 540 541 542 543 544 545 546 547 548 | |
digipinstats_cli()
¶
Command-line interface for generating DIGIPIN DGGS statistics.
Source code in vgrid/stats/digipinstats.py
136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |
easeinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/easestats.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 | |
easeinspect_cli()
¶
Command-line interface for EASE cell inspection.
Source code in vgrid/stats/easestats.py
500 501 502 503 504 505 506 507 508 509 510 511 512 | |
easestats_cli()
¶
Command-line interface for generating EASE-DGGS statistics.
Source code in vgrid/stats/easestats.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | |
garsinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/garsstats.py
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 201 | |
garsinspect_cli()
¶
Command-line interface for GARS cell inspection.
Source code in vgrid/stats/garsstats.py
502 503 504 505 506 507 508 509 510 511 512 513 514 | |
garsstats_cli()
¶
Command-line interface for generating GARS DGGS statistics.
Source code in vgrid/stats/garsstats.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
geohashinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
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 195 196 197 | |
geohashinspect_cli()
¶
Command-line interface for Geohash cell inspection.
Source code in vgrid/stats/geohashstats.py
508 509 510 511 512 513 514 515 516 517 518 519 520 | |
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, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
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 202 203 204 205 206 207 | |
georefinspect_cli()
¶
Command-line interface for GEOREF cell inspection.
Source code in vgrid/stats/georefstats.py
512 513 514 515 516 517 518 519 520 521 522 523 524 | |
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, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/h3stats.py
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 | |
h3inspect_cli()
¶
Command-line interface for H3 cell inspection.
Source code in vgrid/stats/h3stats.py
575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 | |
h3stats_cli()
¶
Command-line interface for generating H3 DGGS statistics.
Source code in vgrid/stats/h3stats.py
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 | |
isea3hinspect(resolution, fix_antimeridian=None, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
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 205 206 207 | |
isea3hinspect_cli()
¶
Command-line interface for ISEA3H cell inspection.
Source code in vgrid/stats/isea3hstats.py
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 | |
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, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/isea4tstats.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 195 196 197 198 199 200 201 202 203 | |
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
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 538 539 | |
isea4tstats_cli()
¶
Command-line interface for generating ISEA4T DGGS statistics.
Source code in vgrid/stats/isea4tstats.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
maidenheadinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/maidenheadstats.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 202 203 204 205 206 207 | |
maidenheadinspect_cli()
¶
Command-line interface for Maidenhead cell inspection.
Source code in vgrid/stats/maidenheadstats.py
516 517 518 519 520 521 522 523 524 525 526 527 528 | |
maidenheadstats_cli()
¶
Command-line interface for generating Maidenhead DGGS statistics.
Source code in vgrid/stats/maidenheadstats.py
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
mgrsstats_cli()
¶
Command-line interface for generating MGRS DGGS statistics.
Source code in vgrid/stats/mgrsstats.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 | |
olcinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/olcstats.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 201 202 | |
olcinspect_cli()
¶
Command-line interface for OLC cell inspection.
Source code in vgrid/stats/olcstats.py
501 502 503 504 505 506 507 508 509 510 511 512 513 | |
olcstats_cli()
¶
Command-line interface for generating OLC DGGS statistics.
Source code in vgrid/stats/olcstats.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
qtminspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/qtmstats.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 193 194 | |
qtminspect_cli()
¶
Command-line interface for QTM cell inspection.
Source code in vgrid/stats/qtmstats.py
493 494 495 496 497 498 499 500 501 502 503 504 505 | |
qtmstats_cli()
¶
Command-line interface for generating QTM DGGS statistics.
Source code in vgrid/stats/qtmstats.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | |
quadkeyinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/quadkeystats.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 195 196 197 | |
quadkeyinspect_cli()
¶
Command-line interface for Quadkey cell inspection.
Source code in vgrid/stats/quadkeystats.py
505 506 507 508 509 510 511 512 513 514 515 516 517 | |
quadkeystats_cli()
¶
Command-line interface for generating Quadkey DGGS statistics.
Source code in vgrid/stats/quadkeystats.py
118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
rhealpixinspect(resolution=0, fix_antimeridian=None, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/rhealpixstats.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 199 200 201 202 203 204 205 206 | |
rhealpixinspect_cli()
¶
Command-line interface for rHEALPix cell inspection.
Source code in vgrid/stats/rhealpixstats.py
515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 | |
rhealpixstats_cli()
¶
Command-line interface for generating rHEALPix DGGS statistics.
Source code in vgrid/stats/rhealpixstats.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
s2inspect(resolution, fix_antimeridian=None, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
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 191 192 193 | |
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
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 508 509 510 511 | |
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, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/tilecodestats.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 | |
tilecodeinspect_cli()
¶
Command-line interface for Tilecode cell inspection.
Source code in vgrid/stats/tilecodestats.py
508 509 510 511 512 513 514 515 516 517 518 519 520 | |
tilecodestats_cli()
¶
Command-line interface for generating Tilecode DGGS statistics.
Source code in vgrid/stats/tilecodestats.py
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | |
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
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 184 | |
h3inspect(resolution, fix_antimeridian=None, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/h3stats.py
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 | |
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, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
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 191 192 193 | |
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, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
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 201 202 203 204 205 206 207 208 209 210 211 212 | |
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
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 | |
rhealpixinspect(resolution=0, fix_antimeridian=None, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/rhealpixstats.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 199 200 201 202 203 204 205 206 | |
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
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 | |
dggalinspect(dggs_type, resolution, split_antimeridian=False, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
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
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 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | |
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
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}, verbose=True)
¶
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}
|
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/dggridstats.py
201 202 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 313 314 315 316 317 318 319 320 321 322 323 | |
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
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 | |
isea4tinspect(resolution, fix_antimeridian=None, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/isea4tstats.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 195 196 197 198 199 200 201 202 203 | |
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, verbose=True)
¶
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
|
verbose
|
Show progress bars. Defaults to True. |
True
|
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 205 206 207 | |
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
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 | |
easeinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/easestats.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 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
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 | |
qtminspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/qtmstats.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 193 194 | |
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
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 | |
olcinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/olcstats.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 201 202 | |
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, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
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 195 196 197 | |
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, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
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 202 203 204 205 206 207 | |
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 113 114 | |
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
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 | |
tilecodeinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/tilecodestats.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 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
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 | |
quadkeyinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/quadkeystats.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 195 196 197 | |
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
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 | |
maidenheadinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/maidenheadstats.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 202 203 204 205 206 207 | |
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
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 | |
garsinspect(resolution, verbose=True)
¶
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 |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/garsstats.py
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 201 | |
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
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 122 123 124 125 126 127 128 129 130 131 132 133 | |
digipininspect(resolution, verbose=True)
¶
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 | |
verbose
|
Show progress bars. Defaults to True. |
True
|
Source code in vgrid/stats/digipinstats.py
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 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |