Forum

Author Topic: Exported/Imported DEM Palette w/absolute values adds 00 to each value.  (Read 1635 times)

CheeseAndJamSandwich

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • Sketchfab Models
When i've exported a DEM Palette from the Set Palette function, and then re-imported it, It doesn't come in correctly.
* The 'Absolute values' option isn't restored if it was set when exporting the palette.
* Each absolute value has two extra zeros added, so 5 becomes 500... 30 becomes 3000.

Here's the contents of one of my saved DEM Palette .clr files:
Code: [Select]
ColorMap 1 1
-4000 91 0 0
-3100 170 0 0
-3000 0 0 255
-1900 0 85 255
-1800 0 85 0
-1300 0 204 0
-1200 0 85 255
-600 0 170 255
-500 0 216 0
0 0 106 0
In the above file, the orginal values should be absolute and would have been -40, -31, ... -6, -5, 0
Note, my values are negative, as this is an underwater scan.

Thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14843
    • View Profile
Hello CheeseAndJamSandwich,

If you import back .clr file, do you get proper values in the DEM Palette dialog (except for Absolute Values checkbox)?
Best regards,
Alexey Pasumansky,
Agisoft LLC

CheeseAndJamSandwich

  • Full Member
  • ***
  • Posts: 153
    • View Profile
    • Sketchfab Models
No, it comes in as 4000, 3100, etc...  So i have to delete two zeros from each.
And the Absolute values checkbox isn't set, so needs resetting...

So importing is fine.
It's the exporting that adds the two zeros...
And i guess the exported file doesn't include the state of the absolute values checkbox... And the importing doesn't set it.

Thanks