get rbg response

GET https://solar.googleapis.com/v1/geoTiff:get?id=063a2278c5b71ad08d86976315cf869f-8b89b6b9846738603f6c52d03772ad4b

The data layers response comes in a GeoTIFF file. You can use your own tooling to get the data you are interested in. For example, imagine you have a GeoTIFF image showing temperature values across a region. Using TypeScript, you can map low temperatures to blue colors and high temperatures to red to create a colorful image that's instantly understandable for visualizing temperature patterns.

This TypeScript code is designed to take special image files called GeoTIFFs and display them on a website using an HTML canvas (like a digital picture frame). The code uses the following components:

  • GeoTIFF images: GeoTIFFs can store multiple layers of image data, making them useful for maps or scientific analysis.

  • RGB Images: These are the types of images we're most familiar with (like photos). Every pixel has red, green, and blue values that determine the color.

  • Palettes: These are like paint sets. They contain a list of predefined colors that can be used to color images.

Request Params

KeyDatatypeRequiredDescription
idstring