Agustin Lobo <alobolis...@gmail.com> wrote:
> 
> I'm doing something like:
> otbcli_GridBasedImageResampling -io.in input.tif -io.out output.tif
> -out.sizex 1280 -out.sizey 1024 -grid.in grid.tif -grid.type def
> -interpolator bco -interpolator.bco.radius 2
>
> and sometimes,
> while input.tif is 64 bits, output.tif is created of 32 bits, why? is
> there any way to set the output to 64 (or to 32)?
>
> (I have to stack this result to other bands that are 64 bits)
>

Hi Agus,

OTB applications allow to set the output encoding when using the "-out"
option:

-out      <string> [pixel] Output Image  
[pixel=uint8/uint16/int16/uint32/int32/float/double] (default value is float) 
(mandatory)

As you can see, the default is float, but you can use double by doing:

otbcli_GridBasedImageResampling -io.in input.tif -io.out output.tif double
-out.sizex 1280 -out.sizey 1024 -grid.in grid.tif -grid.type def
-interpolator bco -interpolator.bco.radius 2

I have not tested, but this should do it.

Jordi

> Thanks
>
> Agus
>
> -- 

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to otb-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to otb-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to