ubarsc / rios

A raster processing layer on top of GDAL
https://www.rioshome.org
GNU General Public License v3.0
15 stars 8 forks source link

Improve doc for examples of controlling reading/writing #73

Closed neilflood closed 1 year ago

neilflood commented 1 year ago

Also some minor changes to docstrings in support of this.

gillins commented 1 year ago

ping @t-hackwood

gillins commented 1 year ago

Thanks @neilflood - I think that looks better. I wonder if we should also mention that pixel values from outside an image will be 'faked' with the nodata value for that image (for eg. UNION)? And what do we do if there is no nodata (fail)?

neilflood commented 1 year ago

Good points, thanks @gillins

I expanded the docstring for setFootprintType, so this information is not just in the examples doco. I had to look up about the "no null value" case, it is in imagereader.py, line 541, readBlockWithMargin(). The logic is really there for the normal margin handling anyway, but the UNION case effectively makes huge margins on some inputs.

gillins commented 1 year ago

Thanks @neilflood looks good to me!

t-hackwood commented 1 year ago

Thanks for the updated examples @neilflood @gillins! They look great, much easier to understand!

neilflood commented 1 year ago

OK, great, thank you. I will merge this :-)

And thanks for bringing this to our attention.