Skip to content

Commit

Permalink
fix(create_raw.py & raw-template.xml): Updated to accommodate the ice…
Browse files Browse the repository at this point in the history
…r_minloss and icer_byte_quota values in ImageRecord.
  • Loading branch information
rbeyer committed Mar 12, 2024
1 parent 624c4fc commit 5eb45b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/vipersci/vis/pds/create_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,8 @@ def label_dict(ir: ImageRecord, lights: dict):
led_wavelength=453, # nm
luminaires={},
compression_class=pid.compression_class(),
minloss=0 if pid.compression_class() == "Lossless" else 12,
observational_intent={},
onboard_compression_ratio=pds.vis_compression[pid.compression],
onboard_compression_ratio=ir.icer_byte_quota / (2048 * 2048 * 2),
onboard_compression_type="ICER",
sample_bits=12,
sample_bit_mask="2#0000111111111111",
Expand Down
2 changes: 1 addition & 1 deletion src/vipersci/vis/pds/data/raw-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<img:onboard_compression_type>${onboard_compression_type}</img:onboard_compression_type>
<img:onboard_compression_ratio py:if="compression_class == 'Lossy'">${onboard_compression_ratio}</img:onboard_compression_ratio>
<img:ICER_Parameters>
<img:icer_quality>${minloss}</img:icer_quality>
<img:icer_quality>${icer_minloss}</img:icer_quality>
</img:ICER_Parameters>
</img:Onboard_Compression>
<img:Sampling>
Expand Down

0 comments on commit 5eb45b5

Please sign in to comment.