pyModis
pyModis copied to clipboard
modis_convert.py error: XML or text declaration not at start of entity
Hi everyone!!!
I am currently working on MOD11A1 (https://e4ftl01.cr.usgs.gov/MOLT/MOD11A1). I have successfully executed modis_mosaic.py but I am having trouble executing modis_convert.py. it gave me this error
xml.etree.ElementTree.ParseError: XML or text declaration not at start of entity: line 1, column 166
I turned into one of the XML files generated by modis_mosaic.py and made the following change:
from
.......
to
........
After making this change, modis_convert.py runs successfully. But I am dealing with 18 years of daily data. Is there another way to deal with this problem aside from editing every xml file generated by modis_mosaic.py? That was 6500+ xml files.
Any help would be appreciated.
Hi @Ghonex ,
sorry for the delay in the answer, I cannot see what do you modify in the XML file. Could you also attach your full procedure?
Thanks Luca