generated from stactools-packages/template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tom Augspurger
committed
Sep 22, 2023
1 parent
d8d0bc4
commit 5c2efde
Showing
21 changed files
with
120 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,67 @@ | ||
# stactools-template | ||
|
||
This is a template repo used for creating new packages for `stactools`. | ||
|
||
## How to use | ||
|
||
1. Clone this template repository as your package name, e.g. `landsat`. | ||
This name should be short, memorable, and a valid Python package name (i.e. | ||
it shouldn't start with a number, etc). It can, however, include a hyphen, in | ||
which case the name for Python imports will be the underscored version, e.g. | ||
`landsat-8` goes to `stactools.landsat_8`. Your name will be used on PyPI to | ||
publish the package in the stactools namespace, e.g. `stactools-landsat`. | ||
2. Change into the top-level directory of your package and run `scripts/rename`. | ||
This will update _most_ of the files in the repository with your new package name. | ||
3. Update `pyproject.toml` with your package description and such. | ||
4. Install with the development requirements (`pip install -e '.[dev]'`). | ||
5. Update the LICENSE with your company's information (or whomever holds the copyright). | ||
6. Edit or replace the existing functions to create stac Items and Collections | ||
for your dataset. | ||
7. Add example Items (and Collections and Catalogs, if included) to an | ||
`examples/` directory. | ||
8. Delete this file, and rename `README-template.md` to `README.md`. Update your | ||
new README to provide information about how to use your package. | ||
# stactools-noaa-nwm | ||
|
||
[![PyPI](https://img.shields.io/pypi/v/stactools-noaa-nwm?style=for-the-badge)](https://pypi.org/project/stactools-noaa-nwm/) | ||
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/stactools-packages/noaa-nwm/continuous-integration.yml?style=for-the-badge) | ||
|
||
- Name: noaa-nwm | ||
- Package: `stactools.noaa_nwm` | ||
- [stactools-noaa-nwm on PyPI](https://pypi.org/project/stactools-noaa-nwm/) | ||
- Owner: @githubusername | ||
- [Dataset homepage](http://example.com) | ||
- STAC extensions used: | ||
- [proj](https://github.com/stac-extensions/projection/) | ||
- Extra fields: | ||
- `noaa-nwm:custom`: A custom attribute | ||
- [Browse the example in human-readable form](https://radiantearth.github.io/stac-browser/#/external/raw.githubusercontent.com/stactools-packages/noaa-nwm/main/examples/collection.json) | ||
- [Browse a notebook demonstrating the example item and collection](https://github.com/stactools-packages/noaa-nwm/tree/main/docs/example.ipynb) | ||
|
||
A short description of the package and its usage. | ||
|
||
## STAC examples | ||
|
||
- [Collection](examples/collection.json) | ||
- [Item](examples/item/item.json) | ||
|
||
## Installation | ||
|
||
```shell | ||
pip install stactools-noaa-nwm | ||
``` | ||
|
||
## Command-line usage | ||
|
||
Description of the command line functions | ||
|
||
```shell | ||
stac noaa-nwm create-item source destination | ||
``` | ||
|
||
Use `stac noaa-nwm --help` to see all subcommands and options. | ||
|
||
## Contributing | ||
|
||
We use [pre-commit](https://pre-commit.com/) to check any changes. | ||
To set up your development environment: | ||
|
||
```shell | ||
pip install -e '.[dev]' | ||
pre-commit install | ||
``` | ||
|
||
To check all files: | ||
|
||
```shell | ||
pre-commit run --all-files | ||
``` | ||
|
||
To run the tests: | ||
|
||
```shell | ||
pytest -vv | ||
``` | ||
|
||
If you've updated the STAC metadata output, update the examples: | ||
|
||
```shell | ||
scripts/update-examples | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: stactools-ephemeral | ||
name: stactools-noaa-nwm | ||
channels: | ||
- conda-forge | ||
- defaults | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.