A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

Py6S

A Python interface to the 6S Radiative Transfer Model.
https://github.com/robintw/Py6S

Category: Atmosphere
Sub Category: Radiative Transfer

Keywords

atmosphere python radiative-transfer remote-sensing satellite science

Keywords from Contributors

earth-observation gdal atmospheric-correction ocean-sciences observation

Last synced: about 12 hours ago
JSON representation

Repository metadata

A Python interface to the 6S Radiative Transfer Model

README.rst

          .. image:: https://travis-ci.org/robintw/Py6S.svg?branch=master
    :target: https://travis-ci.org/robintw/Py6S
.. image:: https://coveralls.io/repos/github/robintw/Py6S/badge.svg
    :target: https://coveralls.io/github/robintw/Py6S

Introduction 
-------------
Py6S is a Python interface to the 6S Radiative Transfer Model. It allows you to run many 6S simulations using a
simple Python syntax, rather than dealing with the rather cryptic 6S input and output files. As well as generally
making it easier to use 6S, Py6S adds some new features:

* The ability to run many simulations easily and quickly, with no manual editing of input files
* The ability to run for many wavelengths and/or angles and easily plot the results
* The ability to import real-world data to parameterise 6S, from radiosonde measurements and AERONET sun photometer measurements

Py6S has been designed to be easy to use, and to work on the 'principle of least surprise'. Far more details are available in the rest of
this documentation, but a quick code example should give you an idea of what Py6S can do::

  # Import the Py6S module
  from Py6S import *
  # Create a SixS object
  s = SixS()
  # Set the wavelength to 0.675um
  s.wavelength = Wavelength(0.675)
  # Set the aerosol profile to Maritime
  s.aero_profile = AeroProfile.PredefinedType(AeroProfile.Maritime)
  # Run the model
  s.run()
  # Print some outputs
  print(s.outputs.pixel_reflectance, s.outputs.pixel_radiance, s.outputs.direct_solar_irradiance)
  # Run the model across the VNIR wavelengths, and plot the result
  wavelengths, results = SixSHelpers.Wavelengths.run_vnir(s, output_name='pixel_radiance')
  SixSHelpers.Wavelengths.plot_wavelengths(wavelengths, results, "Pixel radiance ($W/m^2$)")
  
This will produce the results shown below::

  0.283 112.095 667.589
  
Followed by an image containing a graph showing the result for each wavelength.

To use Py6S you will also need to compile and install the 6S executable. Please follow the installation instructions in the `documentation `_ to find out how to do this on Windows, OS X or Linux.

Py6S was described in a `journal article `_ which should be referenced if Py6S is used for producing outputs for a scientific report/publication.

This project was written as part of my PhD at the University of Southampton. The code is open-source,
released under the LGPL license, and is available at `Github `_.

I'm very interested in receiving feedback, bug reports and feature suggestions, so please email me at [email protected].

        

Citation (CITATION)

If you use Py6S in any academic work then you *must* cite the following paper:

Wilson, R. T., 2012, Py6S: A Python interface to the 6S radiative transfer model, Computers and Geosciences, 51, p166-171

The PDF of this paper is available at http://rtwilson.com/academic/Wilson_2012_Py6S_Paper.pdf


In BibTeX format:

@article{Wilson2013166,
title = "Py6S: A Python interface to the 6S radiative transfer model ",
journal = "Computers & Geosciences ",
volume = "51",
pages = "166 - 171",
year = "2013",
doi = "http://dx.doi.org/10.1016/j.cageo.2012.08.002",
url = "http://www.sciencedirect.com/science/article/pii/S0098300412002798",
author = "R.T. Wilson"
}


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 7 days ago

Total Commits: 596
Total Committers: 17
Avg Commits per committer: 35.059
Development Distribution Score (DDS): 0.081

Commits in past year: 5
Committers in past year: 2
Avg Commits per committer in past year: 2.5
Development Distribution Score (DDS) in past year: 0.2

Name Email Commits
Robin Wilson r****n@r****m 548
MarcYin m****o@g****m 8
Daniel Clewley d****y@g****m 6
Laurent Wandrebeck lw@h****m 6
Oliver Lopez o****z@k****a 4
Jose Gomez-Dans j****s@g****m 4
Pete Bunting p****g@m****m 4
David Welch d****h@g****m 3
Matthew Hanson m****n@a****m 3
XQiao 1****7@q****m 2
Panos Mavrogiorgos p****9@g****m 2
Blottiere Paul b****l@g****m 1
Francisco Nemiña f****a@g****m 1
David Welch (****) 1
Simon Proud s****d@p****k 1
marujore r****o@g****m 1
vincentschut s****t@s****l 1

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 59
Total pull requests: 54
Average time to close issues: 5 months
Average time to close pull requests: 3 months
Total issue authors: 43
Total pull request authors: 25
Average comments per issue: 2.53
Average comments per pull request: 1.69
Merged pull request: 39
Bot issues: 0
Bot pull requests: 0

Past year issues: 3
Past year pull requests: 3
Past year average time to close issues: 4 minutes
Past year average time to close pull requests: 36 minutes
Past year issue authors: 3
Past year pull request authors: 3
Past year average comments per issue: 0.67
Past year average comments per pull request: 0.33
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/robintw/Py6S

Top Issue Authors

  • robintw (9)
  • lwk1542 (5)
  • vincentschut (3)
  • csarantos-ceres (2)
  • samsammurphy (2)
  • dmwelch (1)
  • MagicPointCloud (1)
  • lizaoye (1)
  • felipefariadesousa (1)
  • iannis-b (1)
  • shoukailiang (1)
  • josselin-aval (1)
  • jmettes (1)
  • sgxl (1)
  • soypat (1)

Top Pull Request Authors

  • robintw (15)
  • MarcYin (6)
  • lwandrebeck (3)
  • matthewhanson (3)
  • jgomezdans (3)
  • samsammurphy (2)
  • dmwelch (2)
  • fengqiaogit (2)
  • petebunting (2)
  • fnemina (1)
  • marujore (1)
  • danclewley (1)
  • guin0x (1)
  • pbowyer (1)
  • andrzejbartoszek (1)

Top Issue Labels

  • enhancement (3)

Top Pull Request Labels


Package metadata

pypi.org: py6s

A wrapper for the 6S Radiative Transfer Model to make it easy to run simulations with a variety of input parameters, and to produce outputs in an easily processable form.

  • Homepage: http://py6s.rtwilson.com/
  • Documentation: https://py6s.readthedocs.io/
  • Licenses: GPL
  • Latest release: 1.9.2 (published almost 3 years ago)
  • Last Synced: 2025-04-25T14:03:19.433Z (1 day ago)
  • Versions: 30
  • Dependent Packages: 3
  • Dependent Repositories: 2
  • Downloads: 1,457 Last month
  • Rankings:
    • Dependent packages count: 4.736%
    • Downloads: 6.705%
    • Average: 7.675%
    • Dependent repos count: 11.583%
  • Maintainers (1)
conda-forge.org: py6s

A wrapper for the 6S Radiative Transfer Model to make it easy to run simulations with a variety of input parameters, and to produce outputs in an easily processable form.

  • Homepage: http://py6s.rtwilson.com/
  • Licenses: LGPL-3.0-only
  • Latest release: 1.9.2 (published almost 3 years ago)
  • Last Synced: 2025-04-25T14:03:23.862Z (1 day ago)
  • Versions: 9
  • Dependent Packages: 2
  • Dependent Repositories: 3
  • Rankings:
    • Dependent repos count: 17.914%
    • Forks count: 18.373%
    • Dependent packages count: 19.581%
    • Average: 21.247%
    • Stargazers count: 29.119%

Dependencies

doc/requirements.txt pypi
  • numpy *
  • pysolar >=0.9
  • scipy *
.github/workflows/test-py6s-conda-install-scheduled.yml actions
  • actions/checkout v2 composite
  • conda-incubator/setup-miniconda v2 composite
.github/workflows/test-py6s.yml actions
  • actions/checkout v2 composite
  • codecov/codecov-action v1 composite
  • conda-incubator/setup-miniconda v2 composite
setup.py pypi

Score: 15.504766906771136