[gradsusr] How to get user authentication to work with GrADS (changed from Re: Hello Everyone)
Jennifer M Adams
jadams21 at gmu.edu
Fri Aug 26 08:49:09 EDT 2016
Hello Avi et al.,
With some help from the folks at NASA, we have figured out what is needed to get this authentication to work.
1. Make sure you are using a build of GrADS that is linked with netcdf version 4.3.3. Check the output from ‘q config’ to be sure. The recent release of version 2.1.0 for CentOS is okay, and I have just updated the OS X build of GrADS version 2.1.0. Older releases that are not linked with netcdf-4.3.3 are returning errors.
2. Create a file in your home directory called .urs_cookies. It can be empty, but it must exist.
3. Create a file in your home directory called .netrc. Change the permissions so it is only readable by you. It should contain an entry like the one below with the server name and your own authentication info.
machine goldsmr4.sci.gsfc.nasa.gov<http://sci.gsfc.nasa.gov> login <YourLoginName> password <YourPassword>
4. If you don’t already have one, create a file in your home directory called .dodsrc. Add the following two lines, using the full path for your own home directory:
HTTP.NETRC=<YourHomeDirectory>/.netrc
HTTP.COOKIEJAR=<YourHomeDirectory>/.urs_cookies
With all these pieces in place, you should be able to use sdfopen with this URL as is:
ga-> sdfopen http://goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV
Scanning self-describing file: http://goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV
SDF file http://goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV is open as file 1
LON set to 0 360
LAT set to -90 90
LEV set to 0 0
Time values set: 1980:1:1:0 1980:1:1:0
E set to 1 1
—Jennifer
On Aug 16, 2016, at 12:07 AM, avi kojokro <kojokroavi at gmail.com<mailto:kojokroavi at gmail.com>> wrote:
Hi
When I entered this url into a browser
http://goldsmr4.sci.gsfc.nasa.gov:80/dods/M2TMNXSLV<http://goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV>
It connects to the server as you can see in the screenshot, that after setting a username and password to the site Earthdata.
When I try to enter through Grads it fails.
Avi.
2016-08-16 6:41 GMT+03:00 James T. Potemra <jimp at hawaii.edu<mailto:jimp at hawaii.edu>>:
Hi Avi,
I entered your URL below into a browser, using my own Earthdata credentials, and was redirected to a web site, not an OPeNDAP URL. Usually you can append a .info on the end of an OPeNDAP URL to see the DAP info page. For example, the OPeNDAP URL for TRMM 3B42 (on the monsoon.org<http://monsoon.org/> server is):
http://monsoondata.org:9090/dods/trmm/3B42
if you append .info on this, and enter it into your browser,
http://monsoondata.org:9090/dods/trmm/3B42.info
you should see the info page for this data set. This is what I tried with the URL below, and it doesn't work. You might try check with GSFC and see if they changed their server end points, or maybe their server is just down?
Jim
On 8/15/16 5:32 PM, avi kojokro wrote:
Jim
Why this address is not a valid OPeNDAP URL ? , I did not understand you.
I've used this address in the past many times and now it does not work following the changes made .
What should I do now to fix the URL ?
Avi.
2016-08-15 23:12 GMT+03:00 James T. Potemra <jimp at hawaii.edu<mailto:jimp at hawaii.edu>>:
Avi,
goldsmr4.sci.gsfc.nasa.gov:80/dods/M2TMNXSLV<http://kojokroavi:000000000000@goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV> is not a valid OPeNDAP URL. Are you should you have this correct?
Jim
On 8/15/16 10:01 AM, avi kojokro wrote:
Hi Jim
It also does not work in this way
0 [main] opengrads 4472 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to
the public mailing list cygwin at cygwin.com<mailto:cygwin at cygwin.com>
Starting X server under C:\OPENGR~1\Contents\Resources\Xming
Starting OPENGR~1 under C:\OPENGR~1\Contents\Cygwin\Versions\202OGA~1.2\i686 ...
Grid Analysis and Display System (GrADS) Version 2.0.2.oga.2
Copyright (c) 1988-2011 by Brian Doty and the
Institute for Global Environment and Society (IGES)
GrADS comes with ABSOLUTELY NO WARRANTY
See file COPYRIGHT for more information
Config: v2.0.2.oga.2 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff shapefile
Issue 'q config' command for more detailed configuration information
Loading User Defined Extensions table </cygdrive/c/OPENGR~1/Contents/Cygwin/Versions/202OGA~1.2/i686/gex/udxt> ... ok.
Landscape mode? ('n' for portrait):
GX Package Initialization: Size = 11 8.5
Command line history in \Users\OWNER/.grads.log
ga-> 0av9
No hardcopy metafile open
All files closed; all defined objects released;
All GrADS attributes have been reinitialized
curl error details:
Error: nc_open failed to open file http://kojokroavi:000000000000@goldsmr4.sci.gsfc.nasa.gov:80/dods/M2TMNXSLV<http://kojokroavi:000000000000@goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV>
NetCDF: I/O failure
gadsdf: Couldn't ingest SDF metadata.
SET Error: No files open yet
SET Error: No files open yet
SET Error: No files open yet
No Files Open
No Files Open
DISPLAY error: no file open yet
T500DISPLAY error: no file open yet
DISPLAY error: no file open yet
T850DISPLAY error: no file open yet
DISPLAY error: no file open yet
T2MDISPLAY error: no file open yet
DISPLAY error: no file open yet
H500DISPLAY error: no file open yet
DISPLAY error: no file open yet
H850DISPLAY error: no file open yet
DISPLAY error: no file open yet
SLPDISPLAY error: no file open yet
DISPLAY error: no file open yet
500DISPLAY error: no file open yet
SET Error: No files open yet
SET Error: No files open yet
DISPLAY error: no file open yet
T850DISPLAY error: no file open yet
DISPLAY error: no file open yet
T2MDISPLAY error: no file open yet
SET Error: No files open yet
SET Error: No files open yet
DISPLAY error: no file open yet
T850DISPLAY error: no file open yet
DISPLAY error: no file open yet
T2MDISPLAY error: no file open yet
No hardcopy metafile open
All files closed; all defined objects released;
All GrADS attributes have been reinitialized
curl error details:
Error: nc_open failed to open file http://kojokroavi:000000000000@goldsmr5.sci.gsfc.nasa.gov:80/dods/M2IMNPASM<http://kojokroavi:000000000000@goldsmr5.sci.gsfc.nasa.gov/dods/M2IMNPASM>
NetCDF: I/O failure
gadsdf: Couldn't ingest SDF metadata.
SET Error: No files open yet
SET Error: No files open yet
SET Error: No files open yet
No Files Open
No Files Open
SET Error: No files open yet
DISPLAY error: no file open yet
H700DISPLAY error: no file open yet
DISPLAY error: no file open yet
T700DISPLAY error: no file open yet
ga->
Avi.
2016-08-15 22:45 GMT+03:00 James T. Potemra <jimp at hawaii.edu<mailto:jimp at hawaii.edu>>:
Avi,
Try take off the angle brackets, i.e.,
sdfopen http://kojokroavi:000000000000@goldsmr4.sci.gsfc.nasa.gov:80/dods/M2TMNXSLV<http://goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV>
Jim
On 8/15/16 2:14 AM, avi kojokro wrote:
Recently to enter the merra reanalysis we need to subscribe to Earthdata Login.
After registered to the site , I still can not log on to servers.I tried this way:
sdfopen http://<kojokroavi>:<000000000000>@goldsmr4.sci.gsfc.nasa.gov:80/dods/M2TMNXSLV<http://goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV>
But it does not connect.Does anyone have an idea how to connect to the servers?
The password is not true.
0 [main] opengrads 4512 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to
the public mailing list cygwin at cygwin.com<mailto:cygwin at cygwin.com>
Starting X server under C:\OPENGR~1\Contents\Resources\Xming
Starting OPENGR~1 under C:\OPENGR~1\Contents\Cygwin\Versions\202OGA~1.2\i686 ...
Grid Analysis and Display System (GrADS) Version 2.0.2.oga.2
Copyright (c) 1988-2011 by Brian Doty and the
Institute for Global Environment and Society (IGES)
GrADS comes with ABSOLUTELY NO WARRANTY
See file COPYRIGHT for more information
Config: v2.0.2.oga.2 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn athena geotiff shapefile
Issue 'q config' command for more detailed configuration information
Loading User Defined Extensions table </cygdrive/c/OPENGR~1/Contents/Cygwin/Versions/202OGA~1.2/i686/gex/udxt> ... ok.
Landscape mode? ('n' for portrait):
GX Package Initialization: Size = 11 8.5
Command line history in \Users\OWNER/.grads.log
ga-> 0av9
No hardcopy metafile open
All files closed; all defined objects released;
All GrADS attributes have been reinitialized
curl error details:
Error: nc_open failed to open file http://<kojokroavi>:<00000000000>@goldsmr4.sci.gsfc.nasa.gov:80/dods/M2TMNXSLV<http://goldsmr4.sci.gsfc.nasa.gov/dods/M2TMNXSLV>
NetCDF: I/O failure
gadsdf: Couldn't ingest SDF metadata.
SET Error: No files open yet
SET Error: No files open yet
SET Error: No files open yet
No Files Open
No Files Open
DISPLAY error: no file open yet
T500DISPLAY error: no file open yet
DISPLAY error: no file open yet
T850DISPLAY error: no file open yet
DISPLAY error: no file open yet
T2MDISPLAY error: no file open yet
DISPLAY error: no file open yet
H500DISPLAY error: no file open yet
DISPLAY error: no file open yet
H850DISPLAY error: no file open yet
DISPLAY error: no file open yet
SLPDISPLAY error: no file open yet
DISPLAY error: no file open yet
500DISPLAY error: no file open yet
SET Error: No files open yet
SET Error: No files open yet
DISPLAY error: no file open yet
T850DISPLAY error: no file open yet
DISPLAY error: no file open yet
T2MDISPLAY error: no file open yet
SET Error: No files open yet
SET Error: No files open yet
DISPLAY error: no file open yet
T850DISPLAY error: no file open yet
DISPLAY error: no file open yet
T2MDISPLAY error: no file open yet
No hardcopy metafile open
All files closed; all defined objects released;
All GrADS attributes have been reinitialized
curl error details:
Error: nc_open failed to open file http://<kojokroavi>:<00000000000>@goldsmr5.sci.gsfc.nasa.gov:80/dods/M2IMNPASM<http://goldsmr5.sci.gsfc.nasa.gov/dods/M2IMNPASM>
NetCDF: I/O failure
gadsdf: Couldn't ingest SDF metadata.
SET Error: No files open yet
SET Error: No files open yet
SET Error: No files open yet
No Files Open
No Files Open
SET Error: No files open yet
DISPLAY error: no file open yet
H700DISPLAY error: no file open yet
DISPLAY error: no file open yet
T700DISPLAY error: no file open yet
ga->
Avi.
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________ gradsusr mailing list gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org> http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________ gradsusr mailing list gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org> http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
<1.png>_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160826/12b2f1f0/attachment-0001.html
More information about the gradsusr
mailing list