X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 31 Jan 2011 08:38 AM by  anon
Spatial Subset by File
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
31 Jan 2011 08:38 AM
    I am trying to subset some MODIS products to a common spatial extent. I need to subset the MOD12 (land cover) and MOD13 (vegetation indices). They have been reprojected to a common UTM coordinate system with the same datum. I stacked several MOD13 dates and subset in one step using "Layer Stacking" and using the "Spatial Subset" option. I designated the corner coordinates for the subset and got the desired result. Next, I tried to again use "Layer Stacking" with the "Spatial Subset" option to subset the MOD12 to the same extent as the MOD13 product. This time I did not use the coordinates to subset like I did with MOD13, instead I used the subset by file option. The resulting image has one more line and one more sample than the input. For example, if the dimensions of the MOD13 image are n by n, then the output MOD12 image is n+1 by n+1 What have I done wrong?

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    02 Feb 2011 10:23 AM
    This is likely just a rounding issue. If you select 'by file' it likely looks at the full geographic extents of the file and if the location does not line up exactly with the subset, it rounds 'up' one pixel. You can just edit the sample/line down by 1.
    You are not authorized to post a reply.