Modifying Raster Extent

2893
6
08-08-2012 11:04 AM
LeighHolcombe
New Contributor
I have a tiff raster image which is giving me "inconsistent extent" errors in ArcMap. Here is some info about my raster:

Columns and Rows: 21600, 10800
Bands: 3
Cellsize: 0.016666667, 0.016666667
Type: 8-bit unsigned integer
Extent:
Top: 90.0083333333
Left: -180.008333333
Right: 179.991666667
Bottom: -89.9916666667
Spatial Reference: GCS_WGS_1984

Clearly, the extent is in fact inconsistent. The image seems to have an extra pixel. I think this is caused by using grid registration instead of cell registration in the original data.

I tried to clip using the raster Clip tool, setting the boundaries to 90,-180, 180, -90, but there was no effect - the output had the same extent as the original.

Is there any other way to fix this raster's extent?
0 Kudos
6 Replies
JeffreyEvans
Occasional Contributor III
The most reliable way is to define an analysis extent and create a new raster. Go to Geoprocessing menu and in environment settings select "Processing Extent" and "As Specified Below" in the drop down menu. This will allow you to specify the "Top", "Left", "Right", and "Bottom" coordinates that define your desired extent. Then open ArcToolbox > Spatial Analyst Tools > Map Algebra > Raster Calculator. Just specify an output raster and double click on your existing raster. This will create a new raster with the new extent.
0 Kudos
LeighHolcombe
New Contributor
That... almost worked.

New Extent:
top: 90.000000000036
left: -180
right: 180.000000000072
bottom: -90

However, the resulting raster only has one band, which definitely doesn't work for me. Is there anyway to preserve the number of bands?
0 Kudos
PavanYadav
Esri Contributor
That... almost worked.

New Extent:
top: 90.000000000036
left: -180
right: 180.000000000072
bottom: -90

However, the resulting raster only has one band, which definitely doesn't work for me. Is there anyway to preserve the number of bands?


You may want to try the Copy Raster (data management) tool.
Thanks
Pavan
0 Kudos
LeighHolcombe
New Contributor
You may want to try the Copy Raster (data management) tool.
Thanks
Pavan


Sorry to take so long replying:

Using Copy Raster with the processing extent set had no effect whatsoever - the bounds are still a half pixel extra on each side.

This problem isn't crucial or time-sensitive - I have been able to project this dataset and display it as imagery with no troubles, other than dismissing the extent error in ArcMap.
0 Kudos
PavanYadav
Esri Contributor
Sorry to take so long replying:

Using Copy Raster with the processing extent set had no effect whatsoever - the bounds are still a half pixel extra on each side.

This problem isn't crucial or time-sensitive - I have been able to project this dataset and display it as imagery with no troubles, other than dismissing the extent error in ArcMap.


Are you not specifying extents like you were in the Raster Calculator tool?

Thanks
Pavan
0 Kudos
LydiaRill
New Contributor

Did you find a solution? I am having the same issue.

0 Kudos