{"id":18238485,"url":"https://github.com/ibaris/pyrism","last_synced_at":"2025-10-14T05:33:40.634Z","repository":{"id":57456365,"uuid":"126066192","full_name":"ibaris/pyrism","owner":"ibaris","description":":satellite: Python bindings for Remote Sensing Models","archived":false,"fork":false,"pushed_at":"2021-03-02T13:03:31.000Z","size":2705,"stargazers_count":31,"open_issues_count":3,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-14T05:33:38.489Z","etag":null,"topics":["backscatter","canopy","leaf","modelling","radiative-transfer","reflectance","remote-sensing","surface-modeling"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ibaris.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-20T18:42:13.000Z","updated_at":"2025-02-27T07:39:02.000Z","dependencies_parsed_at":"2022-09-14T05:11:11.717Z","dependency_job_id":null,"html_url":"https://github.com/ibaris/pyrism","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ibaris/pyrism","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibaris%2Fpyrism","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibaris%2Fpyrism/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibaris%2Fpyrism/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibaris%2Fpyrism/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibaris","download_url":"https://codeload.github.com/ibaris/pyrism/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibaris%2Fpyrism/sbom","scorecard":{"id":479029,"data":{"date":"2025-08-11","repo":{"name":"github.com/ibaris/pyrism","commit":"2d114f74e3e2c03a74c6c93df912b9e6527d81f5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T16:05:32.793Z","repository_id":57456365,"created_at":"2025-08-19T16:05:32.793Z","updated_at":"2025-08-19T16:05:32.793Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018009,"owners_count":26086235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backscatter","canopy","leaf","modelling","radiative-transfer","reflectance","remote-sensing","surface-modeling"],"created_at":"2024-11-05T03:05:43.813Z","updated_at":"2025-10-14T05:33:40.619Z","avatar_url":"https://github.com/ibaris.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"http://elib.dlr.de/115785/\"\u003e\u003cimg src=\"https://i.imgur.com/neC2rZh.png\" alt=\"PYRISM\" width=\"400\"\u003e\u003c/a\u003e\n\u003c/h1\u003e\n\u003ch4 align=\"center\"\u003ePython bindings for Remote Sensing Models \u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://forthebadge.com\"\u003e\n    \u003cimg src=\"http://forthebadge.com/images/badges/made-with-python.svg\"\n         alt=\"Gitter\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"http://forthebadge.com\"\u003e\u003cimg src=\"http://forthebadge.com/images/badges/built-with-love.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"http://forthebadge.com\"\u003e\n      \u003cimg src=\"http://forthebadge.com/images/badges/built-with-science.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#description\"\u003eDescription\u003c/a\u003e •\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e •\n  \u003ca href=\"#example\"\u003eExample\u003c/a\u003e •\n    \u003ca href=\"#documentation\"\u003eDoumentation\u003c/a\u003e •\n  \u003ca href=\"#authors\"\u003eAuthor\u003c/a\u003e •\n  \u003ca href=\"#acknowledgments\"\u003eAcknowledgments\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.travis-ci.org/ibaris/pyrism\"\u003e\u003cimg src=\"https://www.travis-ci.org/ibaris/pyrism.svg?branch=master\"\u003e\u003c/a\u003e\n  \u003ca href='https://coveralls.io/github/ibaris/pyrism?branch=master'\u003e\u003cimg src='https://coveralls.io/repos/github/ibaris/pyrism/badge.svg?branch=master' alt='Coverage Status' /\u003e\u003c/a\u003e\n  \u003ca href='http://pyrism.readthedocs.io/en/latest/?badge=latest'\u003e\n    \u003cimg src='https://readthedocs.org/projects/pyrism/badge/?version=latest' alt='Documentation Status' /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# Description\nThis repository contains the Python bindings to different radar and optical backscattering and reflectance models, respectively. The bindings implement the following models:\n### Optical Models:\n* **PROSPECT**: Leaf reflectance model (versions 5 and D).\n* **SAIL**: Canopy reflectance model.\n* **PROSAIL**: Combination of PROSPECT and SAIL.\n* **LSM**: Simple Lambertian soil reflectance model.\n* **Volume Scattering**: Compute volume scattering functions and interception coefficients for given solar zenith, viewing zenith, azimuth and leaf inclination angle.\n### RADAR Models:\n* **Rayleigh**: Calculate the extinction coefficients in terms of Rayleigh scattering.\n* **Mie**: Calculate the extinction coefficients in terms of Mie scattering.\n* **Dielectric Constants**: Calculate the dielectric constant of different objects like water, saline water, soil and vegetation.\n* **I2EM**: RADAR soil scattering model to compute the backscattering coefficient VV and HH polarized.\n* **Emissivity**: Calculate the emissivity for single-scale random surface for Bi and Mono-static acquisitions.\n\nFor the optical models the code from \u003ca href=\"https://github.com/jgomezdans/prosail\"\u003e José Gómez-Dans\u003c/a\u003e was used as a benchmark. The theory of the radar models is from \u003ca href=\"http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=7067059\"\u003e F.T. Ulaby\u003c/a\u003e.\n\n# Installation\nThere are currently different methods to install `pyrism`.\n### Using pip\nThe ` pyrism ` package is provided on pip. You can install it with::\n\n    pip install pyrism\n### Standard Python\nYou can also download the source code package from this repository or from pip. Unpack the file you obtained into some directory (it can be a temporary directory) and then run::\n\n    python setup.py install\n  \n### Test installation success\nIndependent how you installed ` pyrism `, you should test that it was sucessfull by the following tests::\n\n    python -c \"from pyrism import I2EM\"\n\nIf you don't get an error message, the module import was sucessfull.\n\n# Example\nAt first we will run the PROSPECT model. To do this we import the pyrism package.\n```python\nimport pyrism\n```\nAfter that we specify the sensing geometry we want to simulate:\n```python\niza = 35  # Incidence zenith angle\nvza = 30  # Viewing zenith angle\nraa = 50  # Relative azimuth angle\n```\nThan we call the PROSPECT model:\n```python\nprospect = pyrism.PROSPECT(N=1.5,\n                          Cab=35,\n                          Cxc=5,\n                          Cbr=0.15,\n                          Cw=0.003,\n                          Cm=0.0055)\n```\n\nTo access the attributes there are to ways. Firstly, we can access the whole spectrum with `prospect.ks` (scattering coefficient), `prospect.ka` (absorption coefficient), `prospect.kt` (transmittance coefficient), `prospect.ke` (extinction coefficient) and `prospect.om` (the division of ks through ke). Moreover, you can select the coefficient values for the specific bands of ASTER (B1 - B9) or LANDSAT8 (B2 - B7). To access these bands type `prospect.L8.Bx` (x = 2, 3, ..., 7) for Landsat 8 or `prospect.ASTER.Bx` (x = 1, 2, ..., 9) for ASTER.\n\nTo calculate the PROSAIL model we need some soil reflectance values. To obtain these we can use the LSM model:\n```python\nlsm = pyrism.LSM(reflectance=3.14 / 4, moisture=0.15)\n```\n\nNow we must call SAIL and specify the scattering and transmittance coefficients with these from PROSPECT like:\n```python\nprosail = pyrism.SAIL(iza=iza, vza=vza, raa=raa, ks=prospect.ks, kt=prospect.kt, rho_surface=lsm.ref,\n                      lidf_type='campbell',\n                      lai=3, hotspot=0.25)\n```\n\nThe accessibility of the attributes are the same as the PROSPECT model.\n\n# Documentation\nYou can find the full documentation \u003ca href=\"http://pyrism.readthedocs.io/en/latest/index.html\"\u003ehere\u003c/a\u003e.\n\n# Built With\n* Python 2.7 (But it works with Python 3.5 as well)\n* Requirements: numpy, scipy\n\n# Authors\n* **Ismail Baris** - *Initial work* - (i.baris@outlook.de)\n\n## Acknowledgments\n*  \u003ca href=\"https://www.researchgate.net/profile/Thomas_Jagdhuber\"\u003eThomas Jagdhuber \u003c/a\u003e\n\n---\n\n\u003e ResearchGate [@Ismail_Baris](https://www.researchgate.net/profile/Ismail_Baris) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e GitHub [@ibaris](https://github.com/ibaris) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e Instagram [@ism.baris](https://www.instagram.com/ism.baris/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibaris%2Fpyrism","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibaris%2Fpyrism","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibaris%2Fpyrism/lists"}