I want to find information on a specific air pollutant, like Aerosol, in a certain area using a geojson file created on geojson.io. I know how to search using a bbox that outlines the area I’m interested in, as shown in my code. But how can I use a geojson file instead of manually entering the box coordinates?
My code is as follows:
If you open a geojson in a text editor, you will see it has the same structure as the geojson in the example above. You can use the Geometry module to also open a geojson file if this has already been predefined. There are several methods for doing this, so it is up to you on how to do this. A quick google search found this page: parsing - How can I parse GeoJSON with Python - Stack Overflow