I answer to myself, after compiling with gdal 2.1 it's the same: it works well but the syntax that I use to extract only 20m bands give the same results as 10m.
Best On Tuesday, February 23, 2016 at 1:53:13 PM UTC+1, CedricL wrote: > > Hi, > > thanks for the tricks. > > I have tried and it works well with 10m. > > However, I tried to extract 20m bands and the results is the same as 10m. > > otbcli_ExtractROI -in > "/media/sf_clardeux/TMP/S2/Cameroon/S2A_OPER_PRD_MSIL1C_PDMC_20151206T152255_R093_V20151206T094609_20151206T094609.SAFE/S2A_OPER_MTD_SAFL1C_PDMC_20151206T152255_R093_V20151206T094609_20151206T094609.xml?&sdataidx=SENTINEL2_L1C:S2A_OPER_MTD_SAFL1C_PDMC_20151206T152255_R093_V20151206T094609_20151206T094609.xml:20m:EPSG_32632" > > -out /media/sf_clardeux/TMP/S2/roi_s2.tif uint16 -startx 10000 -starty > 15000 -sizex 5000 -sizey 5000 > > What should be the good command line ? > > For information, in windows (not ubuntu for otb), I tried with gdal > translate and it works very well. > > I will try to compile again otb with superbuild but with gdal 2 and not > 1.11 > > Best > > Le mardi 8 décembre 2015 16:26:28 UTC+1, Grizonnet Manuel a écrit : >> >> I've downloaded a L1C product today and make a quick experiment with OTB >> (otb trunk compiled against gdal trunk with integrated s2 driver) and >> monteverdi and it works well so far. >> >> - ReadImageInfo is working without problem (on L1C product and also on >> subdatasets with each resolution) >> >> I was able to access S2 10 meters bands using OTB extended filenames ans >> "sdataidx" keyword. >> >> I've made an extract 10000*10000 using the ExtractRoi application: >> >> ./otbcli_ExtractROI -in >> "/product_path/S2A_OPER_PRD_MSIL1C_PDMC_20151208T114907_R120_V20151208T070604_20151208T070604.SAFE/S2A_OPER_MTD_SAFL1C_PDMC_20151208T114907_R120_V20151208T070604_20151208T070604.xml?&sdataidx=SENTINEL2_L1C:S2A_OPER_MTD_SAFL1C_PDMC_20150818T101440_R022_V20150813T102406_20150813T102406.xml:10m:EPSG_32632" >> >> >> -out ~/temp/roi_s2.tif uint16 -sizex 10000 -sizey 10000 >> >> What we should do now: >> >> - Test the support with gdal 1.X (with the superbuild for instance) >> - In Monteverdi we can't for now use extended filenames syntax to open >> directly subdatasets from a product (from the GUI or from the command >> line). We need most likely a dedicated interface to browse and select >> subdatasets wich corresponds to a set of bands in a specific UTM zone. >> All the info can be retrieved from gdal. >> >> Note that there are some useful examples in the driver documentation to >> access subdatasets, create VRT, convert products tiled tif... >> >> >> Manuel >> >> >> Le 08/12/2015 15:55, CedricL a écrit : >> > Hi, >> > >> > thanks for news. >> > >> > I will probably compile OTB when I will be more available. >> > >> > Best >> > >> > On Tuesday, December 8, 2015 at 2:10:48 PM UTC+1, Julien Michel wrote: >> > >> > Hi Cédric, >> > >> > CNES has funded a gdal driver for Sentinel 2 products. It is >> already >> > available in gdal trunk and documentation [1]. Supporting S2 in OTB >> is >> > therefore more a matter of packaging : to distribute binary >> > packages of >> > OTB reading S2, we need to wait for the next official gdal release, >> and >> > then for all distribs to update their gdal packages to this new >> > release. >> > >> > In the mean time, if you build your gdal and otb yourself, you can >> > already have S2 support. For next OTB release (5.2, in a few days), >> we >> > will also try to get the S2 driver in Superbuild and standalone >> > linux/mac/windows packages. >> > >> > Regards, >> > >> > Julien >> > >> > [1] http://gdal.org/frmt_sentinel2.html >> > <http://gdal.org/frmt_sentinel2.html> >> > >> > Le 08/12/2015 02:21, CedricL a écrit : >> > > Hello, >> > > >> > > Now sentinel 2 data are available I would like to usebmy >> favorite >> > toolbox to process it. >> > > >> > > Unfortunately when I try to load manifest file or xml otb does >> > not want to load it. >> > > >> > > However with jp2 files it works but without metadata. >> > > >> > > I see some old pdf saying that otb is designed to use s2 but I >> am >> > not able to to do it. >> > > May be I miss something...? >> > > >> > > Best >> > > >> > >> > >> > -- >> > 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] >> > <mailto:[email protected]>. >> > For more options, visit https://groups.google.com/d/optout. >> >> -- >> Manuel GRIZONNET >> >> -- -- 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.
