Giter VIP home page Giter VIP logo

Comments (3)

tclements avatar tclements commented on June 16, 2024

Hello Martín!

Great to see you're using SeisNoise.jl. RawData(S) will only convert the first channel. RawData structures are intended to be used for a single station component each. To convert the other channels in S to RawData you could do something like this:

Rarray = Array{RawData}(undef,S.n) # preallocate array of RawData
for ii in 1:S.n
    Rarray[ii] = RawData(S[ii],cc_len,cc_step)
end

You might also want to check out SeisIO.Nodal, which might be a better fit for the type of data you have https://seisio.readthedocs.io/en/latest/src/Submodules/nodal.html. I've started adding functionality for correlating Nodal/array data but it's still a work in progress: https://github.com/tclements/SeisNoise.jl/blob/466a9bf900753c430ed789ac6a76b687b0e89be4/src/nodalcorrelation.jl.

For saving data in SAC format, @xtyangpsp has a package called SeisConvert.jl for converting CorrData to SAC and other formats. Xiaotao and I will have to discuss if we should move SeisConvert.jl into a SeisNoise.jl or keep it as a standalone package.

from seisnoise.jl.

mcardenass avatar mcardenass commented on June 16, 2024

from seisnoise.jl.

xtyangpsp avatar xtyangpsp commented on June 16, 2024

Thanks for looping me in, Tim. Let's talk about incorporating some converting functions in SesiConvert.jl to SeisNoise.

from seisnoise.jl.

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.