Giter Site home page Giter Site logo

Comments (5)

robintw avatar robintw commented on June 6, 2024

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.

danclewley avatar danclewley commented on June 6, 2024

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.

robintw avatar robintw commented on June 6, 2024

Sounds perfect - thanks!

from py6s.

robintw avatar robintw commented on June 6, 2024

(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.

danclewley avatar danclewley commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.