Skip to main content

A package providing relative spectral response functions for remote sensing instruments.

Project description

pyrsr

A package providing relative spectral response functions for remote sensing instruments.

Status

https://gitext.gfz-potsdam.de/geomultisens/pyrsr/badges/master/pipeline.svg https://gitext.gfz-potsdam.de/geomultisens/pyrsr/badges/master/coverage.svg https://img.shields.io/pypi/v/pyrsr.svg https://img.shields.io/pypi/l/pyrsr.svg https://img.shields.io/pypi/pyversions/pyrsr.svg https://img.shields.io/pypi/dm/pyrsr.svg

See also the latest coverage report and the nosetests HTML report.

Features

Quick usage example for getting the spectral response functions of Sentinel-2A:

>>> from pyrsr import RelativeSpectralResponse
>>> RSR = RelativeSpectralResponse(satellite='Sentinel-2A', sensor='MSI')
>>> RSR.plot_rsrs()
https://gitext.gfz-potsdam.de/geomultisens/pyrsr/raw/master/docs/images/S2A_RSRs.png
>>> RSR.rsrs

{'1': array([ 0.0001003 ,  0.00023005,  0.00020481, ...,  0.        ,
              0.        ,  0.        ]),
 '2': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '3': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '4': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '5': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '6': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '7': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '8': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '8A': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '9': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '10': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '11': array([ 0.,  0.,  0., ...,  0.,  0.,  0.]),
 '12': array([ 0.00000000e+00,   0.00000000e+00,   0.00000000e+00, ...,
               4.06617574e-05,   2.94133865e-05,   1.28975620e-05])}

List of supported sensors:

  • Terra ASTER

  • Landsat-4 TM

  • Landsat-5 TM

  • Landsat-7 ETM+

  • Landsat-8 OLI_TIRS

  • Aqua MODIS

  • Terra MODIS

  • RapidEye-5 MSI

  • Sentinel-2A MSI

  • Sentinel-2B MSI

  • SPOT-1 HRV1

  • SPOT-1 HRV2

  • SPOT-2 HRV1

  • SPOT-2 HRV2

  • SPOT-3 HRV1

  • SPOT-3 HRV2

  • SPOT-4 HRVIR1

  • SPOT-4 HRVIR2

  • SPOT-5 HRG1

  • SPOT-5 HRG2

Credits

The pyrsr package was developed within the context of the GeoMultiSens project funded by the German Federal Ministry of Education and Research (project grant code: 01 IS 14 010 A-C).

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.4.2 (2020-12-10)

  • Added URL checker and corresponding CI job.

  • Fixed all dead links.

  • Removed travis related files.

0.4.1 (2020-11-28)

  • Fixed wrong values for LBA_sorted for Landsat-7 and Landsat-8, SPOT-1-5 (wrong PAN position).

  • Added TestRelativeSpectralResponse.sort_by_cwl().

0.4.0 (2020-11-10)

  • Replaced deprecated ‘source activate’ by ‘conda activate’.

  • Added Terra and Aqua MODIS spectral response functions (bands 1-16 only).

0.3.8 (2020-10-12)

  • Use SPDX license identifier and set all files to GLP3+ to be consistent with license headers in the source files.

  • Exclude tests from being installed via ‘pip install’.

0.3.7 (2019-09-29)

  • Updated S2B band 1 RSR.

0.3.6 (2020-09-25)

  • Moved matplotlib import to function level to avoid static TLS ImportError.

0.3.5 (2020-09-24)

  • Moved scipy import to function level to avoid static TLS ImportError.

0.3.4 (2020-09-15)

  • Updated deprecated HTTP links.

0.3.3 (2020-03-31)

  • Added quick usage example to README.rst.

  • Improved list of compatible sensors.

  • Updated development status.

0.3.2 (2020-03-31)

  • Fixed title underscore too short.

0.3.1 (2020-03-31)

  • Fixed issue #9 (ValueError: No sensor specifications for combination ‘Sentinel-2B’ ‘MSI’ ‘S2B20’ found).

  • Updated HISTORY.rst

0.3.0 (2020-03-27)

  • Revised RSR_reader.

  • RSR_reader now accepts a logger and may ignore missing files.

  • Added list of supported sensors to README.rst.

  • Fixed pipeline badge.

  • Updated HISTORY.rst

0.2.10 (2019-09-24)

  • Updated S2A band 1 RSR.

0.2.9 (2019-08-23)

  • Fixed missing LayerBandsAssignment and wrong bandnames.

0.2.8 (2019-08-23)

  • Fixed missing LayerBandsAssignment and wrong bandnames.

0.2.7 (2019-08-22)

  • Fixed FileNotFoundError in case the requested satellite is ‘RapidEye-5’.

0.2.6 (2019-08-22)

  • Cleaned up and added some comments.

0.2.5 (2019-08-22)

  • Added setuptools-git to setup requirements.

0.2.4 (2019-08-22)

  • Fixed missing package data.

0.2.3 (2019-08-22)

  • Fixed missing data.

0.2.2 (2019-08-22)

  • Fixed missing data.

0.2.1 (2019-08-22)

  • Moved references.

0.2.0 (2019-08-22)

New features:

  • First working version.

  • Made RelativeSpectralResponse importable on the top level of the package.

  • Added ‘RSR’ as alias for RelativeSpectralResponse.

  • Implemented sensor specifications and possibility to ignore pan and thermal bands.

  • Added possibility to ignore bands removed by AC.

  • Added copyright and license notes.

  • Added CI setup files. Added rules to Makefile. Added test requirements.

  • Added .gitlab-ci.yml

  • Updated README.rst.

  • Added Sentinel-2 reference.

  • Added references.

Bug fixes and enhancements:

  • Refactored the term ‘srf’ to ‘rsr’.

  • Fix LayerBandsAssignment not properly passed through.

  • Fixed CI setup.

  • Fixed wrong links.

  • Updated Sentinel-2A and -2B RSRs. (fixes issue #1).

0.1.0 (2019-08-19)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrsr-0.4.2.tar.gz (423.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page