-
Hi, I'm trying to write a PEST style uncertainty file through PstFrom.build_prior using uncfile as the format but linalg doesn't want to play nice. It keeps throwing singular matrix errors at me. The errors appear to be related to grid-scale multiplier parameterization of boundary conditions for which I have a geostruct assigned. I was hoping you could advise how I might avoid these errors or alternatively suggest a different way to get an uncfile out of Pyemu. Thanks in advance for your time, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Usually (usually...) that error/warning is because there are parameters that have zero separation distance (they are colocated in space or time) which yields a singular cov matrix from the geostruct. Maybe you have colocated boundary parameters? If this is the case, I think you can tie these parameters together before forming the cov matrix (if tying them together is acceptable for you?)... |
Beta Was this translation helpful? Give feedback.
-
You were 100% correct @jtwhite79. The issue was colocated parameters along a perimeter boundary in a multi-layer model. Tying them wasn't an option in this instance so relied on use_rows instead to assign layer specific boundary parameters. Many thanks for pointing me in the right direction. |
Beta Was this translation helpful? Give feedback.
Usually (usually...) that error/warning is because there are parameters that have zero separation distance (they are colocated in space or time) which yields a singular cov matrix from the geostruct. Maybe you have colocated boundary parameters? If this is the case, I think you can tie these parameters together before forming the cov matrix (if tying them together is acceptable for you?)...