bbrede / S2utils

Utilities to work with ESA Sentinel-2 satellite products
GNU General Public License v3.0
3 stars 2 forks source link

Error in UseMethod("xmlAttrs", node) #1

Open safalabolo opened 8 years ago

safalabolo commented 8 years ago

Dear Benjamin, after this command:

granule_path<-('G:/S2A_USER_PRD_MSIL2A_PDMC_20160714T091218_R022_V20160708T101602_20160708T101602.SAFE/') S2_L2A_granule(granule_path, band='B01', resolution = '60', filename='prova')

Error in UseMethod("xmlAttrs", node) : no applicable method for 'xmlAttrs' applied to an object of class "NULL"

Surely the error depends on my wrong execution. It could provide a concrete example of how to perform 'S2_L2A_granule'? Thanks in advance for your support and for your reply.

bbrede commented 8 years ago

Hi safalabolo,

with sen2cor the L2A products doesn't have the B01 band (it's used for the water vapor column retrieval).

Cheers, Ben

safalabolo commented 8 years ago

doc1.pdf

Dear Benjamin, definitely it will be a sen2cor 2.2.1 problem, but its output has always been like this: there is the band 01 and the band 10 is absent. Now also changing the band the error is always the same. Thank you for your response and for support. All the best S.

safalabolo commented 8 years ago

Sorry I report below, there are commands in R.

granule_path<-('G:/2016_Tarquinia_Maremma_FATIMA/S2A_USER_PRD_MSIL2A_PDMC_20160714T091218_R022_V20160708T101602_20160708T101602.SAFE/') prova<-('G:/2016_Tarquinia_Maremma_FATIMA/nome.tif') S2_L2A_granule(granule_path, band='B08', resolution = c(10), filename='prova') Error in UseMethod("xmlAttrs", node) : no applicable method for 'xmlAttrs' applied to an object of class "NULL"

bbrede commented 8 years ago

Your granule_path variable points to the S2A product folder, not to a granule folder. Please read the help more carefully.