Skip to content

ADD: Support reading the new compact strip map format#103

Open
fhagemann wants to merge 1 commit intocositools:develop/emfrom
fhagemann:strip_map
Open

ADD: Support reading the new compact strip map format#103
fhagemann wants to merge 1 commit intocositools:develop/emfrom
fhagemann:strip_map

Conversation

@fhagemann
Copy link

nuclearizer currently only supports strip map files that have 9 columns.
Example file: strip_map_priLV_June2025.map

# Columns are strip_id, rtb, drm, is_primary, asic, channel, detector, side (0=LV, 1=HV), strip
0 0 0 0 0 0 0 1 32
1 0 0 0 0 1 0 1 33
2 0 0 0 0 2 0 1 34
3 0 0 0 0 3 0 1 35
...

Some of these columns are redundant, as the information can be retrieved from the first column strip_id.
This allows for defining compact strip maps, excluding the columns with redundant information.
Example file: strip_map_priLV_Feb2026.map

# Columns are strip_id, detector, side (0=LV, 1=HV), strip
0 0 1 32
1 0 1 33
2 0 1 34
3 0 1 35
...

NRL is using the compact strip map format as default, and we should allow for nuclearizer to be able to read the new file format too.

This PR now also allows reading strip map files in the reduced 4-column format.

I tested that this code is doing the correct thing by reading the same HDF5 file using both strip maps and validating that the output ROA files are identical.

@fhagemann fhagemann added the enhancement New feature or request label Mar 6, 2026
@fhagemann fhagemann changed the title Support the new compact strip map format ADD: Support the new compact strip map format Mar 6, 2026
@fhagemann fhagemann changed the title ADD: Support the new compact strip map format ADD: Support reading the new compact strip map format Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant