Opened 11 years ago

Closed 7 years ago

#277 closed enhancement (invalid)

using color tables for petascope output

Reported by: joachim.ungar@… Owned by: Peter Baumann
Priority: major Milestone: Future
Component: petascope Version: 8.3
Keywords: Cc: Peter Baumann, Alex Dumitru, Dimitar Misev
Complexity: Hard

Description

The Snow Maps have a specific color scheme (please see the attached example.tif). Is there any possibility to add colors from a color table to a TIFF or PNG WPCS request WCPS output?

Applying customized colors facilitates the output interpretation, e.g. in vertical slices shown in this mock up.

Options:

  • Associate a colormap to a coverage upon its creation (requiress specific metadata/schema change?)
  • Send a colormap along with the request (could become cumbersome?)
  • Apply a colormap on the client upon visualization (fast/feasible)?

Attachments (1)

example.tif (803.5 KB ) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (10)

by anonymous, 11 years ago

Attachment: example.tif added

comment:1 by Dimitar Misev, 11 years ago

Cc: Peter Baumann abeccati added
Component: DEBpetascope

comment:2 by abeccati, 11 years ago

Milestone: 9.08.4
Owner: changed from Dimitar Misev to Peter Baumann
Priority: majorminor
Status: newassigned
Type: defectenhancement
Version: 8.3

Alternative solutions are available for that function and will be suggested

comment:3 by Peter Baumann, 11 years ago

Milestone: 8.48.5

comment:4 by Dimitar Misev, 11 years ago

Complexity: Very Hard
Milestone: 8.59.0

comment:5 by abeccati, 10 years ago

Cc: Alexander Herzig Piero Campalani Alex Dumitru added
Complexity: Very HardHard
Milestone: 9.09.1
Priority: minormajor

Looks like there were not many alternative solutions, this is also relevant for other domains using categorical data such as the Corine Land Cover dataset. The GeoTIFF version of it comes with a color table which is lost when loading it as a coverage or map.

PS the linked mock-up is not available anymore, maybe attaching it to the ticket would be better if not too large.

A possible solution, requiring no schema changes, would be to use the metadata field of the coverage.

An interim solution for such maps could be to define a "metadata extension" defining:

  • an attibute "type" with value "colortable"
  • an attribute "format" with value "tiff|png|…" depending on the source image (in case a conversion is needed to use it with other formats)
  • the content being the raw colortable from the input (or the same metadata field from another coverage, or a well known interoperable format for it)

This allows to:

  • detect and load the colortable upon ingestion (e.g. by rasimport)
  • detect and write the colortable to the output, in particular encoding it in the output image when tiff is requested

Restored also priority since no alternative solution provided since months

comment:6 by Piero Campalani, 10 years ago

Note: rasgeo keeps the table of color mappings of a categorical image directly in rasdaman (RASBASE), keeping a pointer to it petascopedb::ps_extra_metadata.

Solution B is to extend petascopedb to support SWE Category fields (now Quantities). This would be a backcompatible extension to the database.

comment:7 by Dimitar Misev, 9 years ago

Milestone: 9.1Future

comment:8 by Peter Baumann, 8 years ago

Cc: Dimitar Misev added; abeccati Alexander Herzig Piero Campalani removed

Just for the records:
now that we support format parameters, aka

encode( a, "GTiff", "tag=value" )

we can advise rasdaman to put a colortable inside:
http://www.awaresystems.be/imaging/tiff/tifftags/colormap.html

Admittedly, this does not solve the issue of how to determine a colortable - I am not sure, though, that this is the task of an array database in the first place.

Last edited 8 years ago by Peter Baumann (previous) (diff)

comment:9 by Dimitar Misev, 7 years ago

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.