Coder Social home page Coder Social logo

ghidalgo3 / gnatsgo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stactools-packages/gnatsgo

0.0 0.0 0.0 88 KB

stactools package for the USDA's Gridded National Soil Survey Geographic Database (gNATSGO)

License: Other

Shell 16.74% Python 82.48% Dockerfile 0.77%

gnatsgo's Introduction

Binder

stactools-gnatsgo

Package to assist with conversion of gNATSGO data to cloud-optimized formats, and creation of associated STAC metadata.

Examples

STAC objects

Command-line usage

This package expects that you have downloaded and unpacked gNATSGO and gSSURGO state, territory, and CONUS geodatabases into a common directory, and have extracted the 10m map-unit-key raster from each state and territory geodatabase, and stored as a geotiff with the same base name, e.g. gNATSGO_AR.gdb and gNATSGO_AR.tif. For the following examples, it is assumed that these were unpacked into data/inputs and the converted assets will be stored in data/outputs/tables and data/outputs/tiles.

Combine tabular data across geodatabases and convert to parquet:

$ stac gnatsgo to-parquet data/inputs data/outputs/tables

Convert the state and territory rasters to tiled COGs:

$ stac gnatsgo tile data/inputs data/outputs/tiles

Create additional derived rasters for commonly mapped values provided in the gSSURGO valu1 table using the parquet tables and tiled COGs created above::

$ stac gnatsgo create-derived-rasters data/outputs/tables/valu1.parquet data/outputs/tiles/conus_*/mukey_conus_*.tif

Create STAC collection including collection-level table metadata:

$ stac gnatsgo create-collection examples/collection.json data/inputs

Create a STAC item from assets. This will accept either a single table's parquet file (with a .parquet extension), or a list of raster assets for a given tile:

$ stac gnatsgo create-item examples/chorizon.json data/outputs/tables/chorizon.parquet

or

$ stac gnatsgo create-item examples/conus_101445_1580705_265285_1416865.json data/outputs/tiles/conus_101445_1580705_265285_1416865/*.tif

Use stac gnatsgo --help to see all subcommands and options.

gnatsgo's People

Contributors

justinfisk avatar gadomski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.