Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modis_convert.py error: XML or text declaration not at start of entity #108

Open
Ghonex opened this issue May 13, 2018 · 1 comment
Open

Comments

@Ghonex
Copy link

Ghonex commented May 13, 2018

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.

@lucadelu
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants