Reg setting no data value

26 views
Skip to first unread message

giris...@gmail.com

unread,
Jan 10, 2022, 6:29:06 AM1/10/22
to RSGISLib Support
Hi,

 we are using imagecalc.bandmath to create a new image from an input image by applying an expression. How to set the no data value for the new image. The output data type is UINT8.

Thanks

Girish

Peter Bunting

unread,
Jan 10, 2022, 6:32:33 AM1/10/22
to giris...@gmail.com, RSGISLib
I would probably use rsgislib.imageutils.popImageStats which would also calculate the image statistics metadata and pyramids which would make image visualisation faster.

However, you can just use the function setImageNoDataValue from rsgislib.RSGISPyUtils if you only want to define the no data value. 

Best wishes, 

Pete

--
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 view this discussion on the web, visit https://groups.google.com/d/msgid/rsgislib-support/dc36740a-ba6c-40d8-8f43-e687d531df67n%40googlegroups.com.

giris...@gmail.com

unread,
Jan 10, 2022, 6:33:54 AM1/10/22
to RSGISLib Support
Thanks Pete for the quick reply. I will try it.
Reply all
Reply to author
Forward
0 new messages