Comments (5)
Thanks @danclewley.
I've been wondering about creating a separate module (PySpectra
?) to contain functions for reading spectra from various files. This would enable them to be used from Py6S, but also from any other modules without requiring Py6S to be installed. What do you think?
The file formats that could be included in the module, are currently:
- USGS Spectral Library (in Py6S)
- ASTER Spectral Library (in Py6S)
- ENVI Plot Window ASCII export files (I have code to do this elsewhere)
- ENVI Spectral Library (I think I have code to do this elsewhere)
- DART Spectra files (I have code to do this elsewhere)
- OceanOptics SpectraSuite files (I have code to do this elsewhere)
- .sig format files (as you mention above)
Any thoughts?
from py6s.
Having a separate module to read in spectra in different formats, so they can be passed to Py6S, is a great idea. This is actually what we were going for internally and the .sig reader is part of this. The general design is there is a single function to read spectra (which you pass in the filename and type) then there are separate classes in which readers for each format are implemented.
Instead of us making the .sig reader fit into Py6S would it be better if I create a separate repo containing our initial implementation of PySpectra
(can't think of a better name!) and after we've figured the design out you add your importers to this?
from py6s.
Sounds perfect - thanks!
from py6s.
(Also, just while I remember to tell you, you may be interested in another module I've released: PyMicrotops
- see https://github.com/robintw/PyMicrotops)
from py6s.
I've set up a repository with our existing code: https://github.com/pmlrsg/PySpectra for additional importers to be added to. Any comments on design welcome (suggest opening an issue for discussion).
Marking as closed.
from py6s.
Related Issues (20)
- name 'subplots' is not defined HOT 2
- When my Wavelength >=0.59,the coef_xb will become nan
- "NameError: name 'subplots' is not defined"bug in 'all_angles.py' HOT 1
- How use py6S in google colaboratory? problem "cannot find the sixs executable in $PATH or current directory" HOT 2
- A simple question about rayleigh scatter
- Aeronet's import_aeronet_data returning indexing error HOT 2
- Bad Wavelengths Return NaN Irradiance, e.g. 761 nm HOT 12
- the environment variable needs to be set on linux system HOT 1
- set_target_pressure has no effect HOT 5
- Pixel radiance above black surface and non-absorbing aerosol-free atmosphere is zero HOT 6
- Geometry.from_time_and_location ambiguity HOT 2
- Exception with numpy 1.20.0 HOT 4
- Py6s pysolar dependency is too old HOT 3
- error IEEE_INVALID_FLAG HOT 1
- support for LWIR thermal applications HOT 2
- several problem with installation and run of Py6S HOT 4
- How to calculate the percentage density of the aerosol?
- Typo in description of apparent reflectance (?) HOT 4
- 6SV1.1.tar Link failed HOT 1
- IEEE_UNDERFLOW_FLAG error in MacOs Darwin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from py6s.