steadfastasart/geoscience-skills/pylops
Claude Code and agent skill by steadfastasart/geoscience-skills
- community
Checking that the SKILL.md file is still in the repository.
Linear operators for large-scale inverse problems with matrix-free representations. Use when the agent needs to: (1) Define linear operators for forward/adjoint operations, (2) Solve inverse problems (deconvolution, imaging, tomography), (3) Apply signal processing transforms (FFT, convolution, derivatives), (4) Compose operators for complex workflows, (5) Perform regularized inversion with smoothness or sparsity constraints, (6) Process seismic or image data at scale.
Install
npx vskill@latest install steadfastasart/geoscience-skills/pylopsSKILL.md
PyLops - Linear Operators Library
Quick Reference
Key Classes
| Class | Purpose | |
|---|---|---|
LinearOperator | Base class for all operators | |
VStack/HStack | Vertical/horizontal operator stacking | |
BlockDiag | Block diagonal operator composition |
Essential Operations
Basic Operators
Convolution
Compose and Stack Operators
Solve Inverse Problems
Iterative Solvers
Sparsity-Promoting Inversion
Verify Adjoint (Dot Test)
Common Patterns
Seismic Deconvolution
Image Denoising with TV
When to Use vs Alternatives
| Scenario | Recommendation | |
|---|---|---|
| Matrix-free linear operators for large inverse problems | PyLops - purpose-built, memory efficient | |
| Sparse matrix operations with known structure | scipy.sparse - standard, well-documented | |
| Simple convolution/deconvolution | PyLops - clean API with Convolve1D | |
| Custom operators for small problems | Custom NumPy/SciPy - no extra dependency | |
| GPU-accelerated linear algebra | PyLops - pass CuPy arrays for automatic GPU | |
| Seismic deconvolution or imaging operators | PyLops - rich signal processing operator library |
Choose PyLops when: You need matrix-free linear operators that scale to large problems without forming explicit matrices. Its operator algebra (@, VStack, BlockDiag) and built-in solvers (LSQR, FISTA, Split Bregman) make inverse problem workflows concise.
Avoid PyLops when: Your problem is small enough for explicit matrices (use NumPy/SciPy), or you need nonlinear operators (PyLops is strictly linear).
Common Workflows
Regularized seismic deconvolution
- [ ] Define wavelet array and create
Convolve1Doperator - [ ] Generate or load seismic trace data
- [ ] Run dot test to verify operator adjoint:
pylops.utils.dottest() - [ ] Set up regularization operator (e.g.,
SecondDerivativefor smoothness) - [ ] Run
RegularizedInversion(C, [Reg], data, epsRs=[eps]) - [ ] Compare estimated reflectivity against true (if available)
- [ ] Tune
epsRsparameter: higher = smoother, lower = sharper - [ ] For sparse solutions, use
pylops.optimization.sparsity.fista()instead
Tips
- Never form full matrix - Use
.matvec()and.rmatvec()for memory efficiency - Check shapes - Operators have
.shapeattribute like matrices - Verify adjoint - Always run
pylops.utils.dottest()for custom operators - Start simple - Test on small problems before scaling up
- Use GPU - Pass CuPy arrays for automatic GPU acceleration
References
- [Operators Reference](references/operators.md) - Complete list of available operators
- [Solvers Reference](references/solvers.md) - Solver methods and configuration options
Scripts
- [scripts/deconvolution.py](scripts/deconvolution.py) - Seismic deconvolution example
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpylops/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/steadfastasart/geoscience-skills/pylops)