Skip to content

Commit

Permalink
Clarify license info (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Jul 20, 2024
1 parent 25fa00a commit 98151b3
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,11 @@ HyperCoast supports the reading and visualization of hyperspectral data from var

## Acknowledgement

The HyperCoast project draws inspiration from the [nasa/EMIT-Data-Resources](https://github.com/nasa/EMIT-Data-Resources) repository. Credit goes to the original authors. We also acknowledge the NASA EMIT program support through grant no. 80NSSC24K0865.
The HyperCoast project draws inspiration from the [nasa/EMIT-Data-Resources](https://github.com/nasa/EMIT-Data-Resources) repository. Credits to the original authors. We also acknowledge the NASA EMIT program support through grant no. 80NSSC24K0865.

## License

HyperCoast is released under the MIT License. However, some of the modules in HyperCoast adapt code from other open-source projects, which may have different licenses. Please refer to the license notice in each module for more information. Credits to the original authors.

- [pace.py](https://github.com/opengeos/HyperCoast/blob/main/hypercoast/pace.py): Part of the code is adapted from the [nasa/EMIT-Data-Resources](https://github.com/nasa/EMIT-Data-Resources) repository, which is released under the Apache License 2.0.
- [aviris.py](https://github.com/opengeos/HyperCoast/blob/main/hypercoast/aviris.py): Part of the code is adapted from the [jjmcnelis/aviris-ng-notebooks](https://github.com/jjmcnelis/aviris-ng-notebooks), which is released under the MIT License.
9 changes: 8 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,11 @@ HyperCoast supports the reading and visualization of hyperspectral data from var

## Acknowledgement

The HyperCoast project draws inspiration from the [nasa/EMIT-Data-Resources](https://github.com/nasa/EMIT-Data-Resources) repository. Credit goes to the original authors. We also acknowledge the NASA EMIT program support through grant no. 80NSSC24K0865.
The HyperCoast project draws inspiration from the [nasa/EMIT-Data-Resources](https://github.com/nasa/EMIT-Data-Resources) repository. Credits to the original authors. We also acknowledge the NASA EMIT program support through grant no. 80NSSC24K0865.

## License

HyperCoast is released under the MIT License. However, some of the modules in HyperCoast adapt code from other open-source projects, which may have different licenses. Please refer to the license notice in each module for more information. Credits to the original authors.

- [pace.py](https://github.com/opengeos/HyperCoast/blob/main/hypercoast/pace.py): Part of the code is adapted from the [nasa/EMIT-Data-Resources](https://github.com/nasa/EMIT-Data-Resources) repository, which is released under the Apache License 2.0.
- [aviris.py](https://github.com/opengeos/HyperCoast/blob/main/hypercoast/aviris.py): Part of the code is adapted from the [jjmcnelis/aviris-ng-notebooks](https://github.com/jjmcnelis/aviris-ng-notebooks), which is released under the MIT License.
5 changes: 3 additions & 2 deletions hypercoast/aviris.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""This module contains functions to read and process NASA AVIRIS hyperspectral data.
More info about the data can be found at https://aviris.jpl.nasa.gov.
The source code is adapted from https://bit.ly/4bRCgqs. Credit goes to the
original authors.
A portion of the source code is adapted from the jjmcnelis/aviris-ng-notebooks repository
available at https://bit.ly/4bRCgqs. It is licensed under the MIT License. Credit goes to the
original author Jack McNelis.
"""

import rioxarray
Expand Down
22 changes: 21 additions & 1 deletion hypercoast/emit.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@
doing things like opening and flattening the data to work in xarray, orthorectification,
and visualization.
Some source code is adapted from https://github.com/nasa/EMIT-Data-Resources.
Some source code is adapted from https://github.com/nasa/EMIT-Data-Resource,
which is licensed under the Apache License 2.0.
Credits to the original authors, including Erik Bolch, Alex Leigh, and others.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""

import os
Expand Down Expand Up @@ -271,6 +283,10 @@ def emit_to_image(
return array_to_image(ds, transpose=False, output=output, **kwargs)


########### This source code below is adapted from the EMIT-Data-Resource repository ###########
########### It is licensed under the Apache License 2.0 ########################################


def emit_xarray(
filepath: str,
ortho: Optional[bool] = False,
Expand Down Expand Up @@ -1035,3 +1051,7 @@ def ortho_browse(
da = xr.DataArray(ortho_data, dims=["band", "y", "x"], coords=coords)
da.rio.write_crs(spatial_ref, inplace=True)
return da


########### This source code above is adapted from the EMIT-Data-Resource repository ###########
########### It is licensed under the Apache License 2.0 ########################################

0 comments on commit 98151b3

Please sign in to comment.