You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems there might be a bug in XML metadata reading for SIDD2.0+ for the "Compression" field. It seems from the specification that this is the expected formatting:
and C++ Six library writes it this way, but sarpy fails to read with the error:
Attribute Custom of class FilterKernelType received <Element '{urn:SIDD:2.0.0}Custom' at 0x7f101f671b20>,
but values ARE REQUIRED to be one of ('GENERAL', 'FILTER BANK')
Failed converting <Element '{urn:SIDD:2.0.0}Original' at 0x7f101f6997b0> of type <class 'xml.etree.ElementTree.Element'> to Serializable type <class 'sarpy.io.product.sidd2_elements.Compression.J2KSubtype'>
for field Original of class J2KType with exception <class 'KeyError'> - 'size'.
Setting value to None, which may be against the standard.
It seems that sarpy is instead expecting numLayers to instead be size, or it may use the wrong "descriptor" type altogether - it appears to simply want an array of bitrates rather than these individual indexed layers.
The text was updated successfully, but these errors were encountered:
It seems there might be a bug in XML metadata reading for SIDD2.0+ for the "Compression" field. It seems from the specification that this is the expected formatting:
and C++ Six library writes it this way, but sarpy fails to read with the error:
It seems that
sarpy
is instead expectingnumLayers
to instead besize
, or it may use the wrong "descriptor" type altogether - it appears to simply want an array of bitrates rather than these individual indexed layers.The text was updated successfully, but these errors were encountered: