I am trying to clip a raster file. When I do so, the following message come up;
ERROR 5: MINUSERPIXELVALUE must be specified.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
Did you try setting the MINUSERPIXELVALUE to a specific value in the gdalwarp code?
See the answer to this post: GDAL - Specify span of elevation values for conversion to Terragen format?
In addition the manpage of gdalwarp indicates the following:
-co 'NAME=VALUE': passes a creation option to the output format driver. Multiple -co options may be listed. See format specific documentation for legal creation options for each format.
So it seems it depends on the raster format you are using (which explains why I never faced this issue).
It seems you should get the MINUSERPIXELVALUE and MAXUSERPIXELVALUE from gdalinfo. Unearthing an old TIN asc file, it seems you can find the min and max value in the layer properties -> Metadata (band). Include them into the gdalwarp code.