# Raster Comparison

Compare two raster datasets to identify differences.

## Overview

Raster comparison analyzes differences between two raster datasets, calculating change statistics and generating difference rasters.

## Inputs

- **Raster Dataset 1**: First raster dataset
- **Raster Dataset 2**: Second raster dataset
- **Comparison Method**: Difference calculation method

## Outputs

Comparison results containing:

- Difference raster
- Change statistics
- Summary report

## Comparison Methods

- **Difference**: Pixel value differences
- **Percent Change**: Percentage change
- **Ratio**: Ratio of values

## Example

```json
{
  "raster_dataset_id_1": 125,
  "raster_dataset_id_2": 126,
  "method": "difference"
}
```

## Use Cases

- Change detection
- Time series analysis
- Quality comparison
- Validation

## Notes

- Rasters must have compatible extents
- Resampling may be required
- Results depend on comparison method
- Processing time depends on raster sizes

## Related Documentation

- [Analysis API](../api/analysis.md)
- [Raster Tools](raster.md)

