Hi could it be possible to try a split image application with your HDF as input in order to investigate a mis understanding with multiband HDF ?
cheers, Jonathan 2014-05-29 20:38 GMT+02:00 dcd <[email protected]>: > Hi all, > > I've been trying to use otbcli_BandMath with a HDF file with 17 > sub-datasets, but it appears I can only interact with the first band. On > that note, otbcli_ReadImageInfo only appears to acknowledge the existence > of a single band. Using gdalinfo, I am able correctly identifies all 17 > layers of the HDF file). I can extract each subdataset using > gdal_translate, and then use otbcli_BandMath, but I would prefer to stay > within OTB if at all possible. > > My questions: are HDF files with multiple subdatasets supported in > otbcli_BandMath? If so, what is the correct syntax for working with > subdatasets within a HDF file using otbcli_BandMath? > > I've tried the following: > > $ otbcli_BandMath -il input.hdf -out output.hdf -exp "im1b17+1" > > > and > > $ otbcli_BandMath -il HDF4_EOS:EOS_GRID:"input.hdf":Grid:mask -out > output.hdf -exp "im1b1+1" > > Neither of the above examples work, although the first example will if set > to "im1b1", but then this only works on the first subdataset within the > HDF file (i.e., "band 1") > > Cheers, > > PS-loving the new OTB 4...great work! > > Dennis > > -- > -- > 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. > -- -- 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.
