Skip to content

stactools package for working with the USDA's National Agriculture Imagery Program data

License

Notifications You must be signed in to change notification settings

stactools-packages/naip

Repository files navigation

stactools-naip

stactools-naip is a stactools package to generate STAC objects for NAIP images.

How to use

To install, run:

pip install stactools-naip
pip install stactools[s3]

To create a STAC Item:

aws s3 cp --request-payer requester s3://naip-analytic/va/2018/60cm/fgdc/37077/m_3707763_se_18_060_20180825.txt .
export AWS_REQUEST_PAYER='requester'
stac naip create-item --fgdc m_3707763_se_18_060_20180825.txt \
  VA 2018 s3://naip-analytic/va/2018/60cm/rgbir_cog/37077/m_3707763_se_18_060_20180825.tif \
  json-dest/

Development

pip install -e .[dev]

Install pre-commit hooks with:

pre-commit install

Run these before commit with:

pre-commit run --all-files