rsgislib.imageutils.
subset2img
(inputimage, inputROIimage, outputimage, gdalformat, type)--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-suppo...@googlegroups.com.
To post to this group, send email to rsgislib...@googlegroups.com.
Visit this group at https://groups.google.com/group/rsgislib-support.
For more options, visit https://groups.google.com/d/optout.
Hi Nathan,
Just use
rsgislib.imageutils.
subset2img
(inputimage, inputROIimage, outputimage, gdalformat, type)The grid of the output image will be the same as the input with just the extent from the ROI image.To use the two images together you’ll have to put them on the same grid, RSGISLib just does the nearest - to effectively nearest neighbour interpolation if you were to resample the second image.Cheers, Pete
On 2 Jul 2018, at 21:02, Nathan Thomas <nmtho...@gmail.com> wrote:
Hi Dan/Pete,I have two rasters Image1 and Image2. Image1 is a local country sized dataset and Image2 is a global dataset. I want to subset Image2 to where Image1 is valid - for example '(b1==1)?b2:0'. Although the same images are the same projection and resolution they are not the same extent and I can't guarantee that they are on the same grid. I would like to subset Image2 to get Image3, but I want Image3 to have the same grid as Image2. I ideally don't want to use the CreateCopyImageCommand as this will give me a lot of global sized rasters and I want the extent to be that of the smaller image. Do you know of a way that I could subset a larger image by a smaller image, whilst maintaining the grid (but not extent) of the larger image?I know RIOS has a 'setReferenceImage' command but this also keeps the extent of the larger image.Cheers, Nathan--
You received this message because you are subscribed to the Google Groups "RSGISLib Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsgislib-support+unsubscribe@googlegroups.com.
To post to this group, send email to rsgislib-support@googlegroups.com.
rsgislib.imageutils.
maskImage
(inputimage, imagemask, outputimage, gdalformat, datatype, outvalue, maskvalue)