Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-invertible matrix in interpolation #164

Open
soerenthomsen opened this issue Jan 6, 2023 Discussed in #153 · 1 comment
Open

Non-invertible matrix in interpolation #164

soerenthomsen opened this issue Jan 6, 2023 Discussed in #153 · 1 comment
Labels
bug Something isn't working

Comments

@soerenthomsen
Copy link
Member

Discussed in #153

Originally posted by lily-dove July 23, 2022

Screen Shot 2022-07-22 at 3 37 54 PM Hi all! My summer student and I are using GliderTools for a project. It's been wonderful so far! We've come across a challenge where we're trying to do the horizontal interpolation for chunks of ~50000 datapoints. It's worked for several chunks of data but we've hit one where halfway through the interpolation, we get a "LinAlgError: singular matrix" error. I'll post the full error message as an attachment. I'd appreciate any insight y'all have on how to go about troubleshooting this...

Thank you!

@soerenthomsen soerenthomsen added the bug Something isn't working label Jan 6, 2023
@callumrollo
Copy link
Member

Hi @lily-dove.

Thanks for submitting this Issue. Interpolation isn't my strong suit, but uere are a few of things to try for troubleshooting:

  • Varying the number of parallel_chunk_size and possibly n_cpus. It could be that it's making the last chunk of data too small, so you end up with a matrix of no data.
  • Find the section of the dataset that is causing the problem and see if it is different from its neighbours: e.g. more nans, different depth extent, bad timestamps etc.

If these don't shed any light on the problem, make a minimal reproducible example with the data and code that generates the error and I'll take a look at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants