Comments (6)
Hi @ddy1912 , can you share the parameters you were passing to the post request? If the area contains no GEDI orbits, it may return an empty response.
from gedi_tutorials.
from gedi_tutorials.
@ddy1912 It's great that you got the search working. Step 13 might take time, depending on how many HDF files you are trying to subset. You can check outdir
folder to see if the subset HDF files are being created correctly.
from gedi_tutorials.
@rupesh2 I saw another issue opened about feed but similarly do not understand why this error is occurring. So far I haven't gotten it to go away yet. I am working through1_gedi_l4a_search_download.ipynb and using my own geojson boundary file. I imported a vector of Colombia country boundaries and the first cell (cell 6) plotting it had no issues. However, I try to run the next cell and get the following
KeyError Traceback (most recent call last)
Input In [13], in <cell line: 23>()
29 granulesearch = cmrurl + 'granules.json'
30 response = requests.post(granulesearch, data=cmr_param, files=geojson)
---> 31 granules = response.json()['feed']['entry']
33 if granules:
34 for g in granules:
KeyError: 'feed'
Let me know what further information you need that would be helpful. Thanks!
from gedi_tutorials.
Mine was due to too large of a shapefile which you can see from response.json()
from gedi_tutorials.
Hi @vsgriffey , I am sorry I missed your comments earlier. The CMR API has a 1000000 bytes limit for polygon files. You can reduce the number of vertices in the polygon as follows:
amapa = geopandas.read_file("polygons/amapa.json")
amapa = amapa.simplify(0.0005)
In the above, the tolerance (0.0005) is in degrees. You can use the tolerance in the same units as the coordinates in your geojson file. More info about simplify here.
from gedi_tutorials.
Related Issues (11)
- Third GEDI tutorial HOT 2
- polygons/harvard.json is missing HOT 2
- Package Versions for Turorials HOT 1
- Two questions about the tutorial HOT 2
- Feed word or doi value HOT 1
- Parameters and their values in `model_data` HOT 8
- AGBD linear models HOT 3
- NetCDF: Unknown file format: b'hyrax' error message HOT 12
- Not listed HOT 2
- Subsetting only quality shots in the OpenDAP tutorial HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gedi_tutorials.