ubarsc / rios

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

Assigning output driver #21

Closed gillins closed 6 years ago

gillins commented 6 years ago

Original report by Nathan Thomas (Bitbucket: nathanmthomas, GitHub: nathanmthomas).


Hi,

I have been using RIOS to mask one image by another. The two inputs are KEA format. From the docs, I assumed that the output format would be automatically set to that of the input format so I wasn't explicitly setting it to KEA. I noticed that output was much larger than I was expecting and when I checked the format it was HFA/ERDAS.

Is it possible it was interpreting my input KEA as a HFA and therefore automatically setting the output as HFA? Is this a bug or is it my fault for not explicitly setting the driver?

gillins commented 6 years ago

Original comment by Sam Gillingham (Bitbucket: gillins, GitHub: gillins).


Yes you are correct - HFA is the default output driver. If you wish to use KEA as your output driver then you can set this in the controls (see http://rioshome.org/en/latest/rios_applier.html#rios.applier.ApplierControls.setOutputDriverName).

If you are always going to be using KEA I'd recommend setting the $RIOS_DFLT_DRIVER environment variable. See http://rioshome.org/en/latest/environmentvars.html for more information.