APP keys for scripted NRT product downloads

Please enter here to ask a question about any NASA Science related topics!
Post Reply
evgeniy_lebed
Posts: 1
Joined: Fri Nov 27, 2020 3:28 pm America/New_York

APP keys for scripted NRT product downloads

by evgeniy_lebed » Sun Dec 27, 2020 6:09 pm America/New_York

Hello everyone,

Merry Christmas and Happy Holidays!
I have a question regarding obtaining an APP key for LANCE NRT products to be able to download VIIRS NRT data.
I go to https://nrt4.modaps.eosdis.nasa.gov/archive/, then in the top right corner I click on "Profile", then "API Keys". I enter some text in the description, and click on "Create New App Key" but it does not look like that any key is generated. Is anyone else experiencing this issue?
Attachments
Screen shot
Screen shot
APP Key.png (44.13 KiB) Not viewed yet

Tags:

LAADS_UserServices_M
User Services
User Services
Posts: 34
Joined: Mon Sep 30, 2019 8:33 am America/New_York

Re: APP keys for scripted NRT product downloads

by LAADS_UserServices_M » Tue Jan 12, 2021 9:15 am America/New_York

Dear Evgeniy Lebed:
Our web development team has resolved the Appkey issue by transitioning to a new token generation system.

Please note that NRT is no longer allowing the creation of new app keys. Instead, please generate a token for use with your download scripts. This token will be used everywhere the app key are currently used.

The NRT system will not save previously-generated tokens on this page. You are welcome to generate a new token if you lose an old one. Tokens currently do not expire, but NRT may introduce expiration dates in the near future.

stfeirer
Posts: 3
Joined: Fri Nov 05, 2021 3:59 pm America/New_York

Re: APP keys for scripted NRT product downloads

by stfeirer » Fri Nov 05, 2021 4:02 pm America/New_York

When using the token with R, I am getting 'Username/Password Authentication Failed', when I try to download modis data.

LAADS_UserServices_M
User Services
User Services
Posts: 34
Joined: Mon Sep 30, 2019 8:33 am America/New_York

Re: APP keys for scripted NRT product downloads

by LAADS_UserServices_M » Tue Nov 09, 2021 4:46 pm America/New_York

Please check few things:
- Make sure your token is from NRT[3,4] system and not from Earthdata (that starts with EDL-...).
- If you are trying to download data from NRT4,try your command with NRT3 because few week back we have had an issue with NRT4 authentication which has been fixed but just in case.
Finally, what header(s) is R sending with the token?

stfeirer
Posts: 3
Joined: Fri Nov 05, 2021 3:59 pm America/New_York

Re: APP keys for scripted NRT product downloads

by stfeirer » Tue Nov 09, 2021 5:01 pm America/New_York

How do I generate a token for the NRT(3,4) system and not the earth data system? What URL should I go to for that?

Also the r script I am running is:
wget -e robots=off -m -np -R .html,.tmp -nH --cut-dirs=9 "https://nrt3.modaps.eosdis.nasa.gov/api ... 05.006.hdf" --header "Authorization: Bearer token" -P, where token is my token from the site.

LAADS_UserServices_M
User Services
User Services
Posts: 34
Joined: Mon Sep 30, 2019 8:33 am America/New_York

Re: APP keys for scripted NRT product downloads

by LAADS_UserServices_M » Thu Nov 11, 2021 7:51 am America/New_York

You can find information on how to generate token at:
https://nrt3.modaps.eosdis.nasa.gov/help/downloads

stfeirer
Posts: 3
Joined: Fri Nov 05, 2021 3:59 pm America/New_York

Re: APP keys for scripted NRT product downloads

by stfeirer » Mon Nov 15, 2021 12:08 pm America/New_York

I get the following error message when I go the recommended page.

This server does not understand your most recent request.

Please use reference number: 141ee4462e69152215deba5d27963407 when contacting MODAPS User Support

Questions can be directed to MODAPS User Support.

LAADS_UserServices_M
User Services
User Services
Posts: 34
Joined: Mon Sep 30, 2019 8:33 am America/New_York

Re: APP keys for scripted NRT product downloads

by LAADS_UserServices_M » Thu Nov 18, 2021 9:30 am America/New_York

We are looking into the issue with the link. Try following for right now:
- go to https://nrt3.modaps.eosdis.nasa.gov/,
- click on "Help" top right,
- click on "Automating NRT Download" from the pull-down menu,
- click on "Requesting a Download Token" from the page.

Post Reply