gars-field
GARS - Global Area Reference System
Field - Corteva Agriscience farming reference.
Bugs/Questions
Report bugs/feature requests: https://github.com/corteva/gars-field/issues
Ask questions: https://github.com/corteva/gars-field/discussions
Usage
GARSField: determine GARS grids based on bounding box
import geopandas
import shapely.geometry
from gars_field import GARSField
geom_bounds = shapely.geometry.box(minx=-175, miny=-76, maxx=-174, maxy=-75)
garsf = GARSField(geom_bounds)
# 6 deg grids (extension)
grids_6deg = garsf.gars_6deg
# 3 deg grids (extension)
grids_3deg = garsf.gars_3deg
# 1 deg grids (extension)
grids_1deg = garsf.gars_1deg
# 30 min grids
grids_30min = garsf.gars_30min
# 15 min grids
grids_15min = garsf.gars_15min
# 5 min grids
grids_5min = garsf.gars_5min
# 1 min grids (extension)
grids_1min = garsf.gars_1min
# convert to geopandas
geopandas.GeoDataFrame(
{"gars_id": [str(grid) for grid in field.gars_1min]},
geometry=[grid.polygon for grid in field.gars_1min],
crs="EPSG:4326",
)
GARSGrid
Grid cell sizes: 1, 5, 15, 30 minutes
from gars_field import GARSGrid
# from latlon
ggrid = GARSGrid.from_latlon(-89.55, -179.57, resolution=5)
# from GARS ID
ggrid = GARSGrid("001AA23")
# get bounding poly
grid_poly = ggrid.polygon
# get GARS ID
gars_id = str(ggrid)
# UTM CRS EPSG Code
epsg_code = ggrid.utm_epsg
EDGARSGrid
This is the extended degree grid system.
Grid cell sizes: 1, 3, 6 degrees
from gars_field import EDGARSGrid
# from latlon
ggrid = EDGARSGrid.from_latlon(-89.55, -179.57, resolution=3)
# from GARS ID
ggrid = EDGARSGrid("D01AA23")
# get bounding poly
grid_poly = ggrid.polygon
# get GARS ID
gars_id = str(ggrid)
# UTM CRS EPSG Code
epsg_code = ggrid.utm_epsg
GEDGARSGrid
This is the giant extended degree grid system
Grid cell sizes: 30, 60 degrees
from gars_field import GEDGARSGrid
# from latlon
ggrid = GEDGARSGrid.from_latlon(-89.55, -179.57, resolution=3)
# from GARS ID
ggrid = GEDGARSGrid("GD1A")
# get bounding poly
grid_poly = ggrid.polygon
# get GARS ID
gars_id = str(ggrid)
Credits
GARSGrid was inspired by:
Metadata
Release files for gars-field 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| gars_field-0.3.3.tar.gz | 21.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gars_field-0.3.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 37.8 kB
Release files / gars_field-0.3.3.tar.gz
| Download URL | gars_field-0.3.3.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f889ab5fb12c2a8466201436d0ee9907a58e99112c2414af05b149cf1d1be2a
|
|
BLAKE2b-256 checksum How to use checksums |
286241c8da3e27017adb446f87dafc2f388cef3ed256dc3cfd03078ed2c5b29e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Release files / gars_field-0.3.3-py2.py3-none-any.whl
| Download URL | gars_field-0.3.3-py2.py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ec8718e0a8d9d0ac2dd930743af8da4f50079a09826082827967279f18f48a74
|
|
BLAKE2b-256 checksum How to use checksums |
48edba1bef3878d364d326b4fa30cf9f9c59b1e60e4b4027657061fc33e51715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.2
|
Security for gars-field 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.