graeme-winter / wyrmberg

Fake Eiger detector tooling
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Save meta file #1

Closed graeme-winter closed 2 years ago

graeme-winter commented 2 years ago

Take the content of the metadata packet / image packet headers and create a meta file containing all of these. Additional:

graeme-winter commented 2 years ago
silver-surfer work :) $ h5ls -r ../xtal_1_5_meta.h5 | grep -v _dectris
/                        Group
/config                  Dataset {SCALAR}
/countrate               Dataset {2, 1001}
/datatype                Dataset {500/Inf}
/encoding                Dataset {500/Inf}
/flatfield               Dataset {4362, 4148}
/frame                   Dataset {500/Inf}
/frame_series            Dataset {500/Inf}
/frame_written           Dataset {500/Inf}
/hash                    Dataset {500/Inf}
/mask                    Dataset {4362, 4148}
/offset_written          Dataset {500/Inf}
/real_time               Dataset {500/Inf}
/series                  Dataset {SCALAR}
/size                    Dataset {500/Inf}
/start_time              Dataset {500/Inf}
/stop_time               Dataset {500/Inf}

Need to chip away at these

graeme-winter commented 2 years ago

Hmm... funny. I find myself documenting our file format here

graeme-winter commented 2 years ago

OK, implemented, though I did not add the extra bits (compression; dump flat field) as this is migrating towards a functional equivalent to ODIN rather than ++ version.