Cropping a specific area from a whole scene

greeting! i have checked others discussion regarding this topic but i cant understand, maybe it is because i am new to this application.
this is my whole scene

and this is the specific area i want to work on ( .shp file) i import this using vector->import->ESRI shapefile

how to crop the image to a specific area? can you give the details step-by-step? thank you so much in advance :slight_smile:

please have a look at these topics first


I have the same problem, any solutions?

i havent got the solution yet unfortunately, have u got any solutions?

thanks for your suggestion, i just checked the “clip raster file using shapefile” thread as u suggest. i havent quite grasp the instruction, so:

after i have import the file, should i use mosaic command to import the shapefile(??), right click on the geometry and choose ‘WKT from geometry’ to subset/cropping it?

sorry my english is not too good so i have a hard time understanding the instruction, thanks in advance :slight_smile:

you first import the shapefile and the use the land/sea mask operator and use the vector as mask in the operator.

1 Like

Hi ABraun,
The land/sea mask operator is doing the work but the flaw is the area outside the shapefile is replaced with NaN values occupying lot of space in the disk. The major purpose of clipping the image is to save the disk space and do processing for the required area.

I know. This is not ideal and there is currently no solution, as far as I know.

Hi @saiplanner,

images are always rectangular. So the outside of your irregular shaped area needs to be filled up with values.
If you want to save disk space you can use NetCDF4. The NaN data is well compressible.
You can also enable compression for BigTiff.
Add to the file (in installdir/etc) the following line:


I will try that. Thanks marpet.