{"version":"1.0","type":"rich","title":"Python script to covert GeoTiff .CLR file to a Carto style for CartoDB","description":"This script converts a GeoTiff .CLR color palette file into a CartoCSS style for CartoDB. It reads each line of the .CLR file, extracts a raster cell value and its corresponding RGB color, and generates a rule that assigns that polygon-fill color to matching values in a specified column. The resulting CartoDB.carto.css file uses a default orange fill with white outlines for unmatched values. The code relies on Python’s sys.argv for command-line arguments and standard file I/O, with no external visualization libraries.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-3452148?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}