Commit b6f5176f authored by Sebastien Harasse's avatar Sebastien Harasse

ENH: Added support for Spot 1,2,3 with only 3 MS bands.

parent 983a65d5
......@@ -611,8 +611,8 @@ SpotImageMetadataInterface
if (nbBands == 1)
{
wavel.SetSize(1);
if (sensorId == "SPOT4") wavel.Fill(0.610);
else if (sensorId == "SPOT5") wavel.Fill(0.475);
if (sensorId == "Spot 4") wavel.Fill(0.610);
else if (sensorId == "Spot 5") wavel.Fill(0.475);
else wavel.Fill(0.500); // assume SPOT 123
//else itkExceptionMacro(<< "Invalid Spot Sensor ID");
}
......@@ -665,8 +665,8 @@ SpotImageMetadataInterface
if (nbBands == 1)
{
wavel.SetSize(1);
if (sensorId == "SPOT4") wavel.Fill(0.680);
else if (sensorId == "SPOT5") wavel.Fill(0.710);
if (sensorId == "Spot 4") wavel.Fill(0.680);
else if (sensorId == "Spot 5") wavel.Fill(0.710);
else wavel.Fill(0.730); // assume SPOT 123
// else itkExceptionMacro(<< "Invalid Spot Sensor ID");
}
......@@ -738,11 +738,11 @@ SpotImageMetadataInterface
// Panchromatic case
if (nbBands == 1)
{
if (sensorId == "SPOT4")
if (sensorId == "Spot 4")
{
}
else if (sensorId == "SPOT5")
else if (sensorId == "Spot 5")
{
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment