forked from DOI-USGS/knoten
-
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.
Merge branch 'DOI-USGS:main' into main
- Loading branch information
Showing
59 changed files
with
3,246 additions
and
53,830 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Licensing | ||
This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words: | ||
|
||
> This work is free and unencumbered software released into the public domain. In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. | ||
- [ ] I dedicate any and all copyright interest in this software to the public domain. I make this dedication for the benefit of the public at large and to the detriment of my heirs and successors. I intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law. | ||
|
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Pull-Request-CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
Build-and-Test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 | ||
- name: Setup ENV | ||
uses: conda-incubator/setup-miniconda@3b0f2504dd76ef23b6d31f291f4913fb60ab5ff3 | ||
with: | ||
miniforge-version: latest | ||
use-mamba: true | ||
channels: conda-forge | ||
activate-environment: ale | ||
environment-file: environment.yml | ||
auto-activate-base: false | ||
auto-update-conda: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Check build environment | ||
run: | | ||
conda list | ||
- name: Install Python Package | ||
run: | | ||
python setup.py install | ||
- name: Test Python Package | ||
run: | | ||
pytest -n4 |
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 |
---|---|---|
|
@@ -115,3 +115,6 @@ venv.bak/ | |
print.prt | ||
*.cub | ||
*.CUB | ||
|
||
.DS_Store | ||
default.profraw |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Changelog | ||
|
||
All changes that impact users of this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
<!--- | ||
This document is intended for users of the applications and API. Changes to things | ||
like tests should not be noted in this document. | ||
When updating this file for a PR, add an entry for your change under Unreleased | ||
and one of the following headings: | ||
- Added - for new features. | ||
- Changed - for changes in existing functionality. | ||
- Deprecated - for soon-to-be removed features. | ||
- Removed - for now removed features. | ||
- Fixed - for any bug fixes. | ||
- Security - in case of vulnerabilities. | ||
If the heading does not yet exist under Unreleased, then add it as a 3rd heading, | ||
with three #. | ||
When preparing for a public release candidate add a new 2nd heading, with two #, under | ||
Unreleased with the version number and the release date, in year-month-day | ||
format. Then, add a link for the new version at the bottom of this document and | ||
update the Unreleased link so that it compares against the latest release tag. | ||
When preparing for a bug fix release create a new 2nd heading above the Fixed | ||
heading to indicate that only the bug fixes and security fixes are in the bug fix | ||
release. | ||
--> | ||
|
||
## Unreleased | ||
|
||
## [0.4.0] - 2024-05-10 | ||
|
||
### Added | ||
- Added the following sensor utility functions: `phase_angle`, `emission_angle`, `slant_distance`, `target_center_distance`, `sub_spacecraft_point`, `local_radius`, `right_ascension_declination`, `line_resolution`, `sample_resolution`, and `pixel_resolution`. | ||
|
||
|
||
## [0.3.0] - 2024-04-14 | ||
|
||
### Added | ||
- `create_csm` now dispatches to `_from_isd` and `_from_state` to test whether the sensor model can be instantiated from either and ISD or a state file. | ||
- `generate_image_coordinate` to `csm.py`. This provides a similar interface to `generate_ground_coordinate` and abstracts away the `csmapi` from the user. | ||
- A surface class (moved from AutoCNet; credit @jessemapel) with support for Ellipsoid DEMs and basic support for raster DEMs readable by the plio.io.io_gdal.GeoDataset. Support is basic because it uses a single pixel intersection and not an interpolated elevation like ISIS does. | ||
- A check to `generate_ground_point` when a GeoDataset is used to raise a `ValueError` if the algorithm intersects a no data value in the passed DEM. This ensures that valid heights are used in the intersection computation. Fixes [#120](https://github.com/DOI-USGS/knoten/issues/120) | ||
|
||
### Changed | ||
- Removed all `pyproj` calls from csm.py, abstracting them into the reprojection and pyproj.Transformer code inside utils.py. Updated the transformations to use the new pipeline style syntax to avoid deprecation warnings about old syntax. | ||
|
||
### Fixed | ||
- The init method that searches for the libusgscsm to support searching in the `csmplugins` subdirectory. This approach depends on being able to find `csmapi` in a standard location and then assumes that the `libusgscsm` shared library is in a subdirectoy of that `lib` directory. Fixes [#118](https://github.com/DOI-USGS/knoten/issues/118) | ||
|
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 |
---|---|---|
|
@@ -44,6 +44,96 @@ | |
"metadataLastUpdated": "2023-01-25" | ||
} | ||
}, | ||
{ | ||
"name": "knoten", | ||
"organization": "U.S. Geological Survey", | ||
"description": "GitHub code repository for the knoten package", | ||
"version": "0.4.0", | ||
"status": "Production", | ||
|
||
"permissions": { | ||
"usageType": "openSource", | ||
"licenses": [ | ||
{ | ||
"name": "Public Domain, CC0-1.0", | ||
"URL": "https://code.usgs.gov/astrogeology/knoten/-/raw/0.4.0/LICENSE.md" | ||
} | ||
] | ||
}, | ||
|
||
"homepageURL": "https://code.usgs.gov/astrogeology/knoten/-/tree/0.4.0", | ||
"downloadURL": "https://code.usgs.gov/astrogeology/knoten/-/archive/0.4.0/knoten-0.4.0.zip", | ||
"disclaimerURL": "https://code.usgs.gov/astrogeology/knoten/-/raw/0.4.0/DISCLAIMER.md", | ||
"repositoryURL": "https://code.usgs.gov/astrogeology/knoten.git", | ||
"vcs": "git", | ||
|
||
"laborHours": 300, | ||
|
||
"tags": [ | ||
"Planetary", | ||
"Remote Sensing", | ||
"Photogrammetry", | ||
"Testing" | ||
], | ||
|
||
"languages": [ | ||
"Python" | ||
], | ||
|
||
"contact": { | ||
"name": "Adam Paquette", | ||
"email": "[email protected]" | ||
}, | ||
|
||
"date": { | ||
"metadataLastUpdated": "2024-05-13" | ||
} | ||
}, | ||
{ | ||
"name": "knoten", | ||
"organization": "U.S. Geological Survey", | ||
"description": "GitHub code repository for the knoten package", | ||
"version": "0.3.0", | ||
"status": "Production", | ||
|
||
"permissions": { | ||
"usageType": "openSource", | ||
"licenses": [ | ||
{ | ||
"name": "Public Domain, CC0-1.0", | ||
"URL": "https://code.usgs.gov/astrogeology/knoten/-/raw/0.3.0/LICENSE.md" | ||
} | ||
] | ||
}, | ||
|
||
"homepageURL": "https://code.usgs.gov/astrogeology/knoten/-/tree/0.3.0", | ||
"downloadURL": "https://code.usgs.gov/astrogeology/knoten/-/archive/0.3.0/knoten-0.3.0.zip", | ||
"disclaimerURL": "https://code.usgs.gov/astrogeology/knoten/-/raw/0.3.0/DISCLAIMER.md", | ||
"repositoryURL": "https://code.usgs.gov/astrogeology/knoten.git", | ||
"vcs": "git", | ||
|
||
"laborHours": 300, | ||
|
||
"tags": [ | ||
"Planetary", | ||
"Remote Sensing", | ||
"Photogrammetry", | ||
"Testing" | ||
], | ||
|
||
"languages": [ | ||
"Python" | ||
], | ||
|
||
"contact": { | ||
"name": "Adam Paquette", | ||
"email": "[email protected]" | ||
}, | ||
|
||
"date": { | ||
"metadataLastUpdated": "2023-02-27" | ||
} | ||
}, | ||
{ | ||
"name": "knoten", | ||
"organization": "U.S. Geological Survey", | ||
|
Oops, something went wrong.