GithubHelp home page GithubHelp logo

Feed error about gedi_tutorials HOT 6 CLOSED

ornldaac avatar ornldaac commented on July 29, 2024
Feed error

from gedi_tutorials.

Comments (6)

rupesh2 avatar rupesh2 commented on July 29, 2024

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.

ddy1912 avatar ddy1912 commented on July 29, 2024

from gedi_tutorials.

rupesh2 avatar rupesh2 commented on July 29, 2024

@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.

vsgriffey avatar vsgriffey commented on July 29, 2024

@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.

vsgriffey avatar vsgriffey commented on July 29, 2024

Mine was due to too large of a shapefile which you can see from response.json()

from gedi_tutorials.

rupesh2 avatar rupesh2 commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.