Thanks Julien! This worked as expected.

I had been using OTB for some time and was unaware this handy syntax 
existed! I'm surprised that it isn't mentioned/used as an example in the 
Cookbook since it's so handy. I'll keep a keener eye on the Software Guide 
from now on.

Cheers!


On Monday, June 2, 2014 3:20:31 AM UTC-4, Julien Michel wrote:
>
>  Le 31/05/2014 15:23, dcd a écrit :
>  
> *Is there a way to run otbcli_BandMath on a specific subdataset within a 
> HDF file without having to extract the subdataset first?*
>
>
> Yes, you need to use the extended filenames :
>
> http://orfeo-toolbox.org/SoftwareGuide/SoftwareGuidech6.html#x26-900006.10 
> <http://www.google.com/url?q=http%3A%2F%2Forfeo-toolbox.org%2FSoftwareGuide%2FSoftwareGuidech6.html%23x26-900006.10&sa=D&sntz=1&usg=AFQjCNFFGSSnlnho9hmbT4C85729NuuL6A>
>
> otbcli_BandMath -il "input.hdf?&sdataidx=0" "input.hdf?&sdataidx=1" -out 
> output.hdf -exp "im1b1+1"
>
>
> Julien
>
> -- 
> Julien MICHEL
> CNES - DCT/SI/AP - BPI 1219
> 18, avenue Edouard Belin
> 31401 Toulouse Cedex 09 - France
> Tel: +33 561 282 894 - Fax: +33 561 283 109 
>
> 

-- 
-- 
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to