I've been helping a friend archive some Atari 8-bit disks lately, and ran into a problem with the limited imaging paths available, which tend to only work with unprotected or minimally protected disks and aren't suited well to producing A8-specific image formats, or require elaborate and slow imaging steps with real A8 hardware. Attached is a8rawconv, an attempt to rectify that. It's a command-line utility to convert raw flux transition streams produced by imaging hardware to usable disk images.
Currently, the input can either be a set of KryoFlux raw track streams (track**.0.raw) or a SuperCard Pro image (*.scp). Unlike the base conversion utilities available for those hardware, a8rawconv attempts to analyze and decode unusual sector patterns seen in A8 protected disks, including phantom (duplicated) sectors, deleted sectors, sectors with CRC errors, and weak sectors. The output format is an ATX (VAPI) disk image, in order to preserve those unusual properties and also encode sector timing and track skew information. For unprotected disks, the tool can also produce a plain ATR disk image.
The main disk geometry supported by a8rawconv is a standard 40 track, 18 sector/track single density (FM) image compatible with the 810 drive. It can also decode enhanced and double density (MFM) tracks, but ED can currently only be encoded into ATR and DD is mostly untested as I don't have an image of a DD disk or a DD-capable drive to produce one.
The tool is invoked simply:
a8rawconv kryoflux-image/track00.0.raw disk.atx a8rawconv supercardpro-image.scp disk.atr
This will automatically scan for both FM and MFM encoded tracks, merge duplicate sectors, and write the disk image. Recording 5 disk revolutions during imaging is recommended to ensure a good read and that weak sectors can be distinguished from stable sectors. Additional command-line options are available to dump additional data like sector layout and tweak the decoding process.
Source and Win32 binary are included. Although not really tested, it's written in standard C++ and should compile on other platforms.