Compare CARTO rasters with AI
Check bands, units and grid compatibility before comparing two numerical maps cell by cell. Keep missing observations distinct from zero differences.
Compare CARTO rasters with AI by checking what one cell represents in each input. Two maps labelled “temperature” could have different resolution or store scaled integers instead of physical values. Subtracting them without inspecting the metadata can yield a tidy image with no reliable interpretation.
The carto-raster-algebra workflow checks compatible raster tables and their overlapping extent before running a calculation. It can create a new band such as afternoon temperature minus morning temperature. Where the expression relies on a missing observation, the result must stay missing. A zero means the two measured values agree.
What it does
- Inspect band names, scale and offset
- Check the grid size and geographic overlap
- Calculate the difference between matching bands
- Identify where missing input makes a result unavailable
- Verify the output against a few known cells
Install and use
- Use authorised CARTO access with a supported BigQuery or Snowflake environment, compatible RaQuet raster tables and the appropriate CARTO companion skills. The output operation needs permission to create a table.
- Ask, “Compare these two single-date temperature layers. Verify the units and grid first, then write afternoon minus morning to a new table.”
- Inspect the output metadata and a few sample cells. Confirm the subtraction order and mark unavailable cells distinctly in any display.
FAQ
Source
Made by CARTO. Original skill: carto-raster-algebra, published on GitHub under the MIT licence.
View on GitHub