Git Product home page Git Product logo

Comments (7)

JessicaS11 avatar JessicaS11 commented on July 19, 2024

Hello @Siyuanhou - thanks for reaching out. The capability_url you cited is for cloud data access (only). Are you on the early access list with NSIDC for beta test access to ICESat-2 data in the cloud? If not, you will not be able to create the proper credentials to access ICESat-2 data in the cloud (and you would likely not be downloading the data in a cloud-access scenario).

If you continue to have issues, please post the icepyx code that you are using that's returning the error along with the error traceback and icepyx version.

from icepyx.

weiji14 avatar weiji14 commented on July 19, 2024

Haven't tested this, but it seems as though NSIDC has opened up cloud access to everyone as of 29 Sep 2022? See https://nsidc.org/data/user-resources/data-announcements/data-set-updates-new-earthdata-cloud-access-option-icesat-2-and-icesat-data-sets. What ICESat-2 data product are you trying to access @Siyuanhou? ATL03, ATL06, or some other one? Ideally you would need to be running on the same AWS server (us-west2 I'm assuming) to make full use of this though.

from icepyx.

Siyuanhou avatar Siyuanhou commented on July 19, 2024

from icepyx.

Siyuanhou avatar Siyuanhou commented on July 19, 2024

from icepyx.

weiji14 avatar weiji14 commented on July 19, 2024

The cloud data access is still quite new, but try following the instructions at https://nsidc.org/data/user-resources/help-center/nasa-earthdata-cloud-data-access-guide. I just tried it on https://hub.aws-uswest2-binder.pangeo.io/hub/login and it seems to work, though the setup is a bit complicated for now. Basic steps seems to be:

  1. Get credentials from https://data.nsidc.earthdatacloud.nasa.gov/s3credentials, and input these lines into the terminal
export AWS_ACCESS_KEY_ID=<your_accessKeyId>
export AWS_SECRET_ACCESS_KEY=<your_secretAccessKey>
export AWS_SESSION_TOKEN=<you_sessionToken>
  1. Install some AWS command line interface tool, e.g.
pip install awscli
  1. Run some test command to list the files like:
aws s3 ls s3://nsidc-cumulus-prod-protected/ATLAS/ATL03/005/2018/10/14/

which should produce an output like:

2021-11-14 21:26:51  419002911 ATL03_20181014000347_02350101_005_01.h5
2021-11-14 21:26:59    3192825 ATL03_20181014000347_02350101_005_01.h5.dmrpp
2021-11-14 21:13:19 1850440524 ATL03_20181014001049_02350102_005_01.h5
2021-11-14 21:13:38   12453743 ATL03_20181014001049_02350102_005_01.h5.dmrpp
2021-11-15 07:56:20 1775356258 ATL03_20181014001920_02350103_005_01.h5
2021-11-15 07:56:40   12186366 ATL03_20181014001920_02350103_005_01.h5.dmrpp
2021-11-15 18:14:22 1039203722 ATL03_20181014002445_02350104_005_01.h5
2021-11-15 18:14:39    8055791 ATL03_20181014002445_02350104_005_01.h5.dmrpp
2021-11-16 08:06:43  308164510 ATL03_20181014002954_02350105_005_01.h5
...

If you can get this far, then great! That means you have access to ICESat-2 data in the cloud. As for how to use icepyx to read these cloud data, we'll probably need to update the notebook at https://icepyx.readthedocs.io/en/latest/example_notebooks/IS2_cloud_data_access.html to make it clearer how this can actually be used in a more user-friendly way.

from icepyx.

Siyuanhou avatar Siyuanhou commented on July 19, 2024

from icepyx.

JessicaS11 avatar JessicaS11 commented on July 19, 2024

As for how to use icepyx to read these cloud data, we'll probably need to update the notebook at https://icepyx.readthedocs.io/en/latest/example_notebooks/IS2_cloud_data_access.html to make it clearer how this can actually be used in a more user-friendly way.

This is on my to-do list now that NSIDC has publicly released the data. I suspect @Siyuanhou may have identified the issue with:

the web of AWS S3 is invalid

It's possible that with the public release they updated the s3 urls required to access the data on the cloud, and because they weren't public (i.e. included in metadata from CMR) before, icepyx was constructing them manually.

from icepyx.

Related Issues (20)

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.