[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DCCNBV43MY51NMRKC9K7J3":3,"skill-same:01M7DCCNBV43MY51NMRKC9K7J3":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7DCCNBV43MY51NMRKC9K7J3","debug-inversion",null,"Use this skill whenever a user shares PyLops code or results that misbehave and asks what is wrong - load it first, before running the user's code, testing a hypothesis or answering, even when the bug looks obvious from the code. Covers a crash or traceback (dtype\u002Fcasting errors, shape mismatches), a solver (lsqr, cgls, cg, fista, ista, spgl1, regularized_inversion, splitbregman) that stalls, diverges, returns NaNs, zeros, ringing or a wrong model, one dataset or block being ignored in a stacked\u002Fjoint inversion, or a custom FunctionOperator\u002FLinearOperator that may have a wrong adjoint. Diagnoses with evidence (block-by-block dot-tests incl. complex, dtype and dims checks, operator\u002Fdata scaling, solver and eps\u002Fdamp choice), then proposes the smallest fix and verifies it. Not for choosing a solver for a new, working setup (use solve-inverse-problem) or picking regularisation weights (use tune-regularization).","PyLops\u002Fpylops-agent-skills","PyLops","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F74298005?v=4","01M7DCC0YV3FVDPP4GR6V7F43H","01M7DCC0ZTN5K09ZH48X951TBX",1,"LGPL-2.1","https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpylops\u002Fskills\u002Fdebug-inversion\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: debug-inversion\ndescription: Use this skill whenever a user shares PyLops code or results that misbehave and asks what is wrong - load it first, before running the user's code, testing a hypothesis or answering, even when the bug looks obvious from the code. Covers a crash or traceback (dtype\u002Fcasting errors, shape mismatches), a solver (lsqr, cgls, cg, fista, ista, spgl1, regularized_inversion, splitbregman) that stalls, diverges, returns NaNs, zeros, ringing or a wrong model, one dataset or block being ignored in a stacked\u002Fjoint inversion, or a custom FunctionOperator\u002FLinearOperator that may have a wrong adjoint. Diagnoses with evidence (block-by-block dot-tests incl. complex, dtype and dims checks, operator\u002Fdata scaling, solver and eps\u002Fdamp choice), then proposes the smallest fix and verifies it. Not for choosing a solver for a new, working setup (use solve-inverse-problem) or picking regularisation weights (use tune-regularization).\n---\n\nGoal: find **why** the user's inversion misbehaves, with evidence for each claim,\nand propose the smallest fix. Diagnose first; change the user's code only after\nreporting the findings (or when asked to fix). Never make a failing dot-test pass\nby loosening its tolerance.\n\nCarry out these steps yourself, now, in this conversation: nothing runs in the\nbackground and no one else will report back. Do not end your turn until you have\ngiven the user the report of section 2.\n\n## 0. Reproduce\n\n- Use the project's Python runner; note `pylops.__version__`, NumPy\u002FSciPy (and\n  CuPy\u002FJAX if used) versions.\n- Run the user's script as is and capture: solver output (`show=True`), return\n  tuple (`istop`, iterations, cost history), shapes and dtypes of `Op`, `y`, `x0`.\n- If it is slow, reproduce on a smaller size (fewer samples, fewer sources) that\n  still shows the problem. Keep that reduced case for the checks below.\n- If the user described the problem in words and gave no script, do not stop to\n  ask for one: build a minimal reproduction from the numbers they gave (operator\n  type, sizes, amplitudes, solver call), or reason from those numbers directly\n  (e.g. compare `eps`, `damp`, `tol` with `‖Op‖` and `‖Opᴴ y‖`). Ask for the code\n  only if the description does not pin down the problem.\n- If Python or PyLops cannot be run here, say so once and reason from the code\n  and the numbers the user gave. Never present a value as measured (dot-test\n  result, error, cost, norm) unless a command you ran printed it; label anything\n  else as an estimate.\n\n`reference\u002Fdiagnostics.py` contains helpers for the checks below (import or copy\nthem next to the user's script; do not add them to the user's package unless\nasked).\n\n## 1. Run the checks in this order\n\nWhen a check fails, note the finding and its fix, then continue with the\nremaining checks: an inversion often has more than one problem (e.g. a wrong\nadjoint **and** badly scaled blocks), and fixing only the first may not improve\nthe result. After fixing a problem, re-run the inversion; if the result is still\npoor, the next check is where to look.\n\n1. **Adjoint (dot-test)** – `pylops.utils.dottest(Op, *Op.shape, complexflag=...)`\n   on the full operator **and on every block** (`dottest_blocks` walks\n   `VStack`\u002F`HStack`\u002F`BlockDiag` and products). Use `complexflag=3` if any part is\n   complex. A failure localises the wrong adjoint → fix it (see `wrap-operator`).\n   Custom `FunctionOperator`s with an \"adjoint\" that is actually an inverse or a\n   non-conjugated transpose are the usual culprits.\n2. **Shapes and ordering** – `Op.dims`\u002F`Op.dimsd` vs how `y` was built: `y.ravel()`\n   in C order matching `dimsd`, no silent transpose (e.g. `(nx, nt)` vs `(nt, nx)`),\n   no broadcasting `(n,)` vs `(n, 1)`. Compare `Op @ xtrue` (or `Op @ x` for a\n   simple test model) with the observed data visually: they must look alike.\n3. **dtypes** – mixing `float32` operators with `float64` data, complex operators on\n   real data (and vice-versa), or integer arrays. `describe_problem` prints them.\n   For a complex operator and a real model, see the PyLops \"Real\u002Fcomplex inversion\"\n   tutorial (`Op.toreal()`, `Op.toimag()`).\n4. **NaN \u002F Inf** – in `y`, `x0`, operator internals (e.g. divisions by zero in a\n   `Diagonal`, `log` of a velocity model). Check `np.isfinite` everywhere.\n5. **Scaling and conditioning** – `Op.eigs(neigs=1)` (largest singular value) and,\n   for small problems, `Op.cond()`; `‖y‖`, `‖Opᴴ y‖`. Signs: data at 1e-10 or 1e+10,\n   columns of the operator with norms spanning many orders of magnitude (e.g.\n   stacked blocks with different physical units), regularisation weights orders\n   of magnitude too large or small relative to `‖Op‖`. Fix by normalising data,\n   weighting blocks, or preconditioning.\n6. **Solver vs problem** – `cg` on a non-symmetric \u002F non-square operator;\n   `lsqr`\u002F`cgls` on a huge `niter` without regularisation on noisy data\n   (semi-convergence: error goes down then up); `fista` with a user-set `alpha`\n   larger than `1\u002F‖Op‖²` (diverges) – leave `alpha=None` or compute it from\n   `Op.eigs`; `fista` with an `SOp` that is not orthogonal\u002Ftight-frame;\n   `regularized_inversion` \u002F `preconditioned_inversion` with `engine=\"scipy\"`\n   (default) while passing `niter` – SciPy's `lsqr` takes `iter_lim` and raises\n   `TypeError`; either use `iter_lim=...` or `engine=\"pylops\", niter=...`.\n7. **Stopping** – look at the cost curve (`plot_convergence`): flat from the start\n   ⇒ wrong setup (x0 already optimal, zero data, zero operator block); stops\n   early with `istop` meaning \"tolerance reached\" at a bad model ⇒ `tol`\u002F`atol`\n   too loose relative to data scale; still decreasing at `niter` ⇒ increase\n   `niter` or precondition.\n8. **Regularisation and noise** – residual far below the noise level ⇒ overfitting\n   (increase regularisation \u002F stop earlier); far above ⇒ over-regularised or\n   modelling error. Use the `tune-regularization` skill to pick weights properly.\n9. **Modelling error** – the operator is right, but does not explain the data\n   (wrong wavelet, sampling, units, geometry). Evidence: residual has coherent\n   structure, not noise. Compare data and `Op @ x` for a best-guess model.\n10. **Backend** – CuPy\u002FJAX runs: arrays on different devices, operators built\n    with NumPy arrays but applied to CuPy data, `float64` on consumer GPUs being\n    very slow. See `accelerate-on-gpu`.\n\n## 2. Report\n\nFor each finding, give: the check, the evidence (numbers, plot path, the failing\nblock name), the likely cause, and the proposed fix. Rank by impact. Then either\napply fixes (if the user asked) and re-run to show the improvement, or list the\nexact changes to make.\n\nKeep what you ran apart from what you did not:\n\n- Mark each check as **run** (quote the command's output it rests on) or **not\n  run** (say why, and label any statement about it as an expectation). Do not\n  report a check as passed for a part you did not test, e.g. \"every block passes\n  the dot-test\" when only the full operator was tested.\n- For each proposed fix, say whether you tested it and what it changed. If a fix\n  you tested did not help, say so explicitly and check your implementation of it\n  before concluding that the problem is elsewhere.\n\nSay the result is limited by the physics \u002F data (null space, noise, limited\naperture) only when the operator and the data weighting are correct and a\ntested fix did not improve it - not as a fallback when a fix did not work.\nIn that case say so explicitly rather than tweaking parameters.\n","Goal: find **why** the user's inversion misbehaves, with evidence for each claim,\nand propose the smallest fix. Diagnose first; change the user's code only after\nreporting the findings (or when asked to fix). Never make a failing dot-test pass\nby loosening its tolerance.\n\nCarry out these steps yourself, now, in this conversation: nothing runs in the\nbackground and no one else will report back. Do not end your turn until you have\ngiven the user the report of section 2.\n\n## 0. Reproduce\n\n- Use the project's Python runner; note `pylops.__version__`, NumPy\u002FSciPy (and\n  CuPy\u002FJAX if used) versions.\n- Run the user's script as is and capture: solver output (`show=True`), return\n  tuple (`istop`, iterations, cost history), shapes and dtypes of `Op`, `y`, `x0`.\n- If it is slow, reproduce on a smaller size (fewer samples, fewer sources) that\n  still shows the problem. Keep that reduced case for the checks below.\n- If the user described the problem in words and gave no script, do not stop to\n  ask for one: build a minimal reproduction from the numbers they gave (operator\n  type, sizes, amplitudes, solver call), or reason from those numbers directly\n  (e.g. compare `eps`, `damp`, `tol` with `‖Op‖` and `‖Opᴴ y‖`). Ask for the code\n  only if the description does not pin down the problem.\n- If Python or PyLops cannot be run here, say so once and reason from the code\n  and the numbers the user gave. Never present a value as measured (dot-test\n  result, error, cost, norm) unless a command you ran printed it; label anything\n  else as an estimate.\n\n`reference\u002Fdiagnostics.py` contains helpers for the checks below (import or copy\nthem next to the user's script; do not add them to the user's package unless\nasked).\n\n## 1. Run the checks in this order\n\nWhen a check fails, note the finding and its fix, then continue with the\nremaining checks: an inversion often has more than one problem (e.g. a wrong\nadjoint **and** badly scaled blocks), and fixing only the first may not improve\nthe result. After fixing a problem, re-run the inversion; if the result is still\npoor, the next check is where to look.\n\n1. **Adjoint (dot-test)** – `pylops.utils.dottest(Op, *Op.shape, complexflag=...)`\n   on the full operator **and on every block** (`dottest_blocks` walks\n   `VStack`\u002F`HStack`\u002F`BlockDiag` and products). Use `complexflag=3` if any part is\n   complex. A failure localises the wrong adjoint → fix it (see `wrap-operator`).\n   Custom `FunctionOperator`s with an \"adjoint\" that is actually an inverse or a\n   non-conjugated transpose are the usual culprits.\n2. **Shapes and ordering** – `Op.dims`\u002F`Op.dimsd` vs how `y` was built: `y.ravel()`\n   in C order matching `dimsd`, no silent transpose (e.g. `(nx, nt)` vs `(nt, nx)`),\n   no broadcasting `(n,)` vs `(n, 1)`. Compare `Op @ xtrue` (or `Op @ x` for a\n   simple test model) with the observed data visually: they must look alike.\n3. **dtypes** – mixing `float32` operators with `float64` data, complex operators on\n   real data (and vice-versa), or integer arrays. `describe_problem` prints them.\n   For a complex operator and a real model, see the PyLops \"Real\u002Fcomplex inversion\"\n   tutorial (`Op.toreal()`, `Op.toimag()`).\n4. **NaN \u002F Inf** – in `y`, `x0`, operator internals (e.g. divisions by zero in a\n   `Diagonal`, `log` of a velocity model). Check `np.isfinite` everywhere.\n5. **Scaling and conditioning** – `Op.eigs(neigs=1)` (largest singular value) and,\n   for small problems, `Op.cond()`; `‖y‖`, `‖Opᴴ y‖`. Signs: data at 1e-10 or 1e+10,\n   columns of the operator with norms spanning many orders of magnitude (e.g.\n   stacked blocks with different physical units), regularisation weights orders\n   of magnitude too large or small relative to `‖Op‖`. Fix by normalising data,\n   weighting blocks, or preconditioning.\n6. **Solver vs problem** – `cg` on a non-symmetric \u002F non-square operator;\n   `lsqr`\u002F`cgls` on a huge `niter` without regularisation on noisy data\n   (semi-convergence: error goes down then up); `fista` with a user-set `alpha`\n   larger than `1\u002F‖Op‖²` (diverges) – leave `alpha=None` or compute it from\n   `Op.eigs`; `fista` with an `SOp` that is not orthogonal\u002Ftight-frame;\n   `regularized_inversion` \u002F `preconditioned_inversion` with `engine=\"scipy\"`\n   (default) while passing `niter` – SciPy's `lsqr` takes `iter_lim` and raises\n   `TypeError`; either use `iter_lim=...` or `engine=\"pylops\", niter=...`.\n7. **Stopping** – look at the cost curve (`plot_convergence`): flat from the start\n   ⇒ wrong setup (x0 already optimal, zero data, zero operator block); stops\n   early with `istop` meaning \"tolerance reached\" at a bad model ⇒ `tol`\u002F`atol`\n   too loose relative to data scale; still decreasing at `niter` ⇒ increase\n   `niter` or precondition.\n8. **Regularisation and noise** – residual far below the noise level ⇒ overfitting\n   (increase regularisation \u002F stop earlier); far above ⇒ over-regularised or\n   modelling error. Use the `tune-regularization` skill to pick weights properly.\n9. **Modelling error** – the operator is right, but does not explain the data\n   (wrong wavelet, sampling, units, geometry). Evidence: residual has coherent\n   structure, not noise. Compare data and `Op @ x` for a best-guess model.\n10. **Backend** – CuPy\u002FJAX runs: arrays on different devices, operators built\n    with NumPy arrays but applied to CuPy data, `float64` on consumer GPUs being\n    very slow. See `accelerate-on-gpu`.\n\n## 2. Report\n\nFor each finding, give: the check, the evidence (numbers, plot path, the failing\nblock name), the likely cause, and the proposed fix. Rank by impact. Then either\napply fixes (if the user asked) and re-run to show the improvement, or list the\nexact changes to make.\n\nKeep what you ran apart from what you did not:\n\n- Mark each check as **run** (quote the command's output it rests on) or **not\n  run** (say why, and label any statement about it as an expectation). Do not\n  report a check as passed for a part you did not test, e.g. \"every block passes\n  the dot-test\" when only the full operator was tested.\n- For each proposed fix, say whether you tested it and what it changed. If a fix\n  you tested did not help, say so explicitly and check your implementation of it\n  before concluding that the problem is elsewhere.\n\nSay the result is limited by the physics \u002F data (null space, noise, limited\naperture) only when the operator and the data weighting are correct and a\ntested fix did not improve it - not as a fallback when a fix did not work.\nIn that case say so explicitly rather than tweaking parameters.\n",{"name":5,"description":7},"main","a0aead16681bea6df74af88096782ad6ab4eddfb","plugins\u002Fpylops\u002Fskills\u002Fdebug-inversion",0,"https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills","https:\u002F\u002Fpylops.github.io\u002Fpylops-agent-skills\u002F","https:\u002F\u002Fgithub.com\u002FPyLops","https:\u002F\u002Fpylops.github.io","Matrix-Free linear algebra and optimization in Python","2026-11-02 05:28:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add PyLops\u002Fpylops-agent-skills --skill debug-inversion",{"tool":39,"command":40},"bunx","bunx skills add PyLops\u002Fpylops-agent-skills --skill debug-inversion",{"tool":42,"command":43},"pnpm","pnpm dlx skills add PyLops\u002Fpylops-agent-skills --skill debug-inversion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpylops\u002Fskills\u002Fdebug-inversion\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"reference\u002Fdiagnostics.py","SCRIPT","脚本",6125,"https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpylops\u002Fskills\u002Fdebug-inversion\u002Freference\u002Fdiagnostics.py",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7DCE0ERZ2MCH1ANEBTC1Y40","solve-nonsmooth-problem","Use this skill whenever the user wants to solve an inverse problem on PyLops operators with a non-smooth, constrained or non-convex term - load it before writing the objective, choosing a solver or writing optimisation code, even when a SciPy bounded solver or a hand-written FISTA\u002FADMM loop would also work. Covers total variation, L1\u002Fsparsity in a transform, joint sparsity across signals sharing the same components, bounds\u002Fpositivity\u002Fball\u002Faffine constraints, low-rank matrix completion (nuclear norm) and plug-and-play priors with a denoiser (median filter, BM3D), solved with PyProximal (ProximalGradient, ADMM, PrimalDual, ...), step sizes from operator norms. E.g. \"add TV regularisation\", \"keep the model within physical bounds\", \"recover several signals that share their components\", \"fill in missing entries of a low-rank matrix\", \"use PyProximal\". Not for purely quadratic regularisation (Tikhonov, damping, derivative smoothing), which is plain least squares - use the pylops skill solve-inverse-problem.","https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpyproximal\u002Fskills\u002Fsolve-nonsmooth-problem\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7DCDT6XDJPE8W9JPVAAX50X","wrap-operator","Wrap a user's own forward model as a PyLops linear operator inside their project (not inside the PyLops library), with a verified adjoint, a dot-test and a small test suite. Use when the user wants to turn existing forward\u002Fadjoint code, a script at a URL, or a mathematical description into a PyLops operator they can pass to PyLops solvers (e.g. \"make my blurring function a PyLops operator\", \"wrap this forward model so I can invert it with lsqr\", \"I have a forward and adjoint, plug them into PyLops\").","https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpylops\u002Fskills\u002Fwrap-operator\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7DCDKBBA8PJA706HD1W3AVR","tune-regularization","Choose regularisation weights and thresholds for a PyLops inversion (epsRs in regularized_inversion, damp in cgls\u002Flsqr, eps in ista\u002Ffista, epsRL1s in splitbregman, sigma\u002Ftau in spgl1, niter as implicit regularisation) with a principled, reproducible sweep - L-curve, discrepancy principle, GCV for small problems, or a synthetic test with a known model. Use when the user asks \"how do I choose epsilon \u002F lambda \u002F damping\", \"my inversion is too smooth \u002F too noisy\", \"make an L-curve\", or after solve-inverse-problem produced a working but untuned inversion.","https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpylops\u002Fskills\u002Ftune-regularization\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7DCDBNA6XGWDZQ1A15CG1S6","solve-inverse-problem","Use this skill whenever the user has (or can build) a PyLops operator and data and wants to invert it - load it before choosing a solver or writing any inversion code, even when the right solver or regularisation seems obvious. It sets up and runs the inversion in the user's project - choose the solver (lsqr, cgls, cg, regularized_inversion, preconditioned_inversion, fista, spgl1, omp, irls, splitbregman), the regularisation and the stopping parameters, and write a runnable script that reports convergence. E.g. \"invert my data with this operator\", \"which PyLops solver should I use\", \"add Tikhonov \u002F smoothness \u002F sparsity regularisation to my inversion\", \"solve y = Op x\". Not for an inversion that already misbehaves (use debug-inversion) or for choosing regularisation weights with an L-curve or sweep (use tune-regularization).","https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpylops\u002Fskills\u002Fsolve-inverse-problem\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7DCD5Q5P09A2R28QWWVSPGM","sliding-patch-processing","Set up PyLops windowed operators - Sliding1D, Sliding2D, Sliding3D, Patch2D, Patch3D - to apply a local transform or operator over overlapping windows of 1-D\u002F2-D\u002F3-D data, choosing window size, overlap, taper and model size with the *_design and *_pad_to_next helpers, checking coverage and the dot-test, and using them for local denoising, interpolation or inversion. Use when the user asks \"apply FFT\u002FRadon\u002Fany operator in overlapping windows\", \"local transform \u002F patching with PyLops\", \"Patch2D gives artefacts at the edges\", \"how do I pick nwin, nover, nop\".","https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpylops\u002Fskills\u002Fsliding-patch-processing\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M7DCCXVMV97MEBGWSTETYPYJ","pick-sparsifying-transform","Choose a sparsifying transform for a signal or image in a PyLops sparsity-promoting inversion (FFT\u002FFFT2D\u002FFFTND, DCT, DWT\u002FDWT2D\u002FDWTND, DTCWT, Seislet, curvelets via UDCT, Radon\u002FFourierRadon\u002FChirpRadon, windowed versions with Sliding\u002FPatch), check its optional dependencies and frame properties, compare candidates quantitatively with a best-k-term compressibility test, and wire the winner into fista\u002Fspgl1 in synthesis or analysis form. Use when the user asks \"which transform should I use for sparsity\", \"wavelets or curvelets for my data\", \"make my model sparse for fista\u002Fspgl1\", \"compressive sensing \u002F interpolation with PyLops\".","https:\u002F\u002Fgithub.com\u002FPyLops\u002Fpylops-agent-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fpylops\u002Fskills\u002Fpick-sparsifying-transform\u002FSKILL.md",[],[]]