中文版本: processing-guide.zh.md
This guide explains how to use the session-based PSRCHIVE processing workflow from the desktop UI.
- Opening an archive creates a backend processing session.
- The renderer reads charts from
/api/sessions/{id}/preview/*. - Every processing change updates the session recipe, then refreshes the preview.
- Nothing mutates the source archive in place.
Save Archiveand batch runs always export new files.
- Open any archive file.
- In the chart toolbar, click the
Processingbutton. - The right-side Processing Inspector opens with five tabs:
ZapPamTOACalBatch
If the backend is running in mock mode, or required PSRCHIVE tools are missing, the panel stays visible but shows capability notes instead of active controls.
v1 supports channel zapping from the Freq x Phase waterfall.
- Switch to
Freq x Phase. - Click a channel row in the heatmap.
- The channel is added to
recipe.zap.channels. - Click the same channel again to unzap it.
- In the Plotly modebar, choose box select.
- Drag vertically across one or more channel rows.
- The selected channels are merged into
recipe.zap.channels.
The Zap tab lists every selected channel and lets you remove them individually or clear the whole set.
The Pam tab exposes live v1 controls:
dedispersetscrunchfscrunchbscrunchphase rotate
Notes:
- Slider changes are debounced before the backend preview refreshes.
- Preview uses the same recipe that export uses.
dedispersechanges chart extraction immediately and is also applied during archive export.
The TOA tab is a v1 pat workflow.
- Choose a template archive.
- Pick an algorithm (
PGS,GIS,PIS,SIS,ZPS). - Choose output format (
tempo2orparkes). - Optionally enable time/frequency scrunch before TOA extraction.
- Optionally choose an output text path.
- Click
Run TOA.
The result area shows:
- parsed TOA rows
- raw
patoutput - a visual residual chart with:
- observed profile
- aligned template
- difference trace
This is not yet a full tempo2 timing residual workflow.
The Cal tab is a v1 pac workflow for existing calibration assets.
You can provide:
- a calibration search path
database.txt- a solution file
You can also choose:
- model:
SingleAxis,Polar,Reception pol-only
The current session preview updates with calibration enabled, and Refresh shows the latest pac command and log output.
Save Archive exports the current session recipe to a new archive path.
The default filename pattern is:
<original-stem>.<archiveExtension><original-extension>
Example:
J0437-4715.processed.ar
The output never overwrites the source file unless you explicitly choose the same target path in the save dialog.
The Batch tab does three things:
- stores reusable recipes per workspace
- controls default export naming/output directory
- runs sequential batch exports
- Build the live recipe with the
Zap,Pam,TOA, andCaltabs. - Enter a recipe name in
Batch. - Click
Save recipe.
- In
Batch, clickLoadon a saved recipe. - The current session preview updates to match that recipe.
- In
Batch, choose whether TOA text should be exported alongside archives. - Optionally set an output directory.
- Click
Select files and run. - Pick one or more archive files.
The app then, for each file:
- creates a temporary processing session
- applies the selected recipe
- exports a processed archive copy
- optionally exports a TOA text file
- records success or failure in the batch log
Use Docker / OrbStack for the most complete workflow:
npm run backend:docker:pull
npm run dev:dockerThat runtime gives the app stable access to paz, pam, pat, pac, and tempo2.