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

Download URL, file name & attribute changes #9

Open
Mike-Honey opened this issue Sep 24, 2019 · 0 comments
Open

Download URL, file name & attribute changes #9

Mike-Honey opened this issue Sep 24, 2019 · 0 comments

Comments

@Mike-Honey
Copy link

The download page has changed recently. From my analysis, the section we want is now labeled "Notices - Legal Amazon".

Clicking on the Download button for that entry now points to:
http://terrabrasilis.dpi.inpe.br/file-delivery/download/deter-amz/shape

Using a browser, that URL seems to return a varying file name e.g. deter-amz-public-2019Set24.zip. However the current python script design seems to always download as deter-amz_all.zip, so I think that is ok with a minor edit to the script.

Another change is the contents of the zip have been renamed e.g. deter_public.shp (was deter_all.shp). Again this seems to be ok with another minor edit to the script.

Also the attributes have changed, however by luck the renamed VIEW_DATE is still the 4th attribute, so the current code that extracts the date value seems to still work.

All of the above is what I've gleaned from testing and making the obvious edits to the script (e.g. URL). I don't have a deep understanding of what the script is doing so it would be great if someone who can debug python could review my analysis above.

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

1 participant