GliderToolsCommunity / GliderTools

A toolkit for processing Seaglider base station NetCDF files: despiking, smoothing, outlier detection, backscatter, fluorescence quenching, calibration, gridding, interpolation.
https://glidertools.readthedocs.io
GNU Affero General Public License v3.0
69 stars 28 forks source link

Non-invertible matrix in interpolation #164

Open soerenthomsen opened 1 year ago

soerenthomsen commented 1 year ago

Discussed in https://github.com/GliderToolsCommunity/GliderTools/discussions/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!
callumrollo commented 1 year ago

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:

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.