Use common data level functions when generating color table lut

This commit is contained in:
Dan Paulat 2024-01-05 14:48:41 -06:00
parent 8921c08f4f
commit 36f8f73b0f
3 changed files with 20 additions and 29 deletions

View file

@ -72,6 +72,7 @@ public:
units::angle::degrees<double> elevation() const;
bool IsCompressionEnabled() const;
bool IsDataLevelCoded() const;
size_t data_size() const override;

View file

@ -633,6 +633,11 @@ bool ProductDescriptionBlock::IsCompressionEnabled() const
return isCompressed;
}
bool ProductDescriptionBlock::IsDataLevelCoded() const
{
return !uncodedDataLevelProducts_.contains(p->productCode_);
}
size_t ProductDescriptionBlock::data_size() const
{
return SIZE;