X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 17 Jun 2014 07:41 AM by  anon
How to unify spatial information and fill background values?
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:17
New Member


--
17 Jun 2014 07:41 AM
    Hi, everyone, a TM mosaic image with 8496 samples and 7375 lines (30 m spatial resolution)could cover my whole area. Now I get a scene of TM, which is partly covered this area and contained some clouds. I masked out the clouds and subset this images, and it is samples and lines are 7208, 5564, respectively. I want to enlarge this cloud-free image to samples and lines of 8496 and 7375 (30 m spatial resolution), and fill the no-data area with -9999. I have dozen of image with clouds, I want to subset cloud free images and unify their spatial information so than I can processing them freely. I know the geographic link tool can matching the pixels one by one, but I don't find any function to realize them.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    17 Jun 2014 02:19 PM
    Have you tried Layer Stacking the images? You set the larger file as the base, then import the smaller file and use the output 'all inclusive' option. This will output a file with all bands having the same number of samples/lines and the areas outside of the smaller image will just be background.

    Deleted User



    New Member


    Posts:17
    New Member


    --
    17 Jun 2014 08:07 PM
    Thank you. Actually, I want to save this image as a separate file. However, this could be done by extracting this spectral bands from the stacked files. I followed your instruction and it successfully stacked two image, but a problem about the background value was raised. Now I have finished this work by IDL codes. I firstly created a empty array same as the lager image, then transferred pixel coordinates of the two images to map coordinates, and found the left corner of the small image within the large image. Finally, I copy the small image data to the array and save this to another image.
    You are not authorized to post a reply.