GFS maps creation with OpenGrads - does it work?

Sorry, that won’t work. Time to eat but I’ll look for other things to check tonight

Lets see if you see any different errors this way. Open the CMD window and cd to the “C:\OpenGrADS” directory.

Run “opengrads.exe -lb”. You should get a new CMD window and eventually a prompt “ga->”.

At the prompt type “reinit” and press Enter. You should see a reinitialization message.

At the prompt type “sdfopen https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20200522/gfs_0p25_1hr_06z” and press Enter. If all is well you should see something like…

Scanning self-describing file: https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20200522/gfs_0p25_1hr_06z OC xxdr depends on the assumption that sizeof(off_t) == sizeof(void*) SDF file https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20200522/gfs_0p25_1hr_06z is open as file 1 LON set to 0 360 LAT set to -90 90 LEV set to 1000 1000 Time values set: 2020:5:22:6 2020:5:22:6 E set to 1 1

At the prompt type “q ctlinfo” and press Enter. You should see a lot of info scroll past, listing details of the GFS data file. It will probably start something like this…

dset https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20200522/gfs_0p25_1hr_06z title GFS 0.25 deg starting from 06Z22may2020, downloaded May 22 09:59 UTC undef 9.999e+20 dtype netcdf xdef 1440 linear 0 0.25 ydef 721 linear -90 0.25 zdef 34 levels 1000 975 950 925 900 850 800 750 700 650 600 550 500 450 400 350 300 250 200 150 100 70 50 40 30 20 15 10 7 5 3 2 1 0.4 tdef 121 linear 06Z22MAY2020 60mn vars 195 absvprs=>absvprs 34 t,z,y,x ** (1000 975 950 925 900.. 30 20 15 10 40) absolute vorticity [1/s] no4lftxsfc=>no4lftxsfc 0 t,y,x ** surface best (4 layer) lifted index [k] no5wavh500mb=>no5wavh500mb 0 t,y,x ** 500 mb 5-wave geopotential height [gpm]

Now type the following commands, each followed by Enter…


set t 6
define t2m  = const(tmp2m-273.16,0,-u)
set gxout shaded
set csmooth on
d t2m
cbarm
printim gfs_test.png x1700 y1275

You should now have a file called gfs_test.png with a 2M Temperature plot for the whole world. However, I’m assuming that somewhere along this process you’ll get an error. Please let me know which step you get the error at and what the error is. I’m hoping it might have more detail than when run from script and allow us to narrow down the cause.

Hi Chris,

I got the following error from running the command below:


ga-> sdfopen https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20200522/gfs_0p25_1hr_06z
Scanning self-describing file:  https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20200522/gfs_0p25_1hr_06z
curl error details:
Error: nc_open failed to open file https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20200522/gfs_0p25_1hr_06z
NetCDF: I/O failure
gadsdf: Couldn't ingest SDF metadata.

I installed the OpenGrads software as a new install and had these problems, I don’t think it is worth wasting any more time on this software, it clearly has problems.

Thanks for your help,

Dave

Trying to search for this suggests it’s not a common problem and I think OpenGrADS is fairly widely used.

I’m pretty sure your problem relates to curl and I’ve had ‘fun’ getting curl to work a few times in the past (not OpenGrADS related). Does your PC have curl installed for some other reason? Or might your firewall be blocking the curl program from accessing the URL? Testing access to the URL with your browser doesn’t prove that curl can access the same URL.

Try downloading any file by https from the internet using curl - just enter ‘curl https://URL/file’. Try your WD clientraw.txt file for example.

Hi Chris,

I read is that the CURL error is due to the change to https:

This version of OpenGrads is not enabled with SSL and nothing has come along to fix the problem.

There are lots of reports of this error online, and I have not found a solution to the problem.

Dave

I’m running exactly the same version as you and downloading https data so that doesn’t seem to be the problem. The https issues reported all seem to be from a few years ago so don’t seem to relate to the current version.

Hi Chris,

so you download “win32_superpack.exe” from SourceForge and ran a Windows install?

Dave.

Yes, I downloaded the SuperPack from here - Open Grid Analysis and Display System - Browse /grads2/2.2.1.oga.1/Windows at SourceForge.net

Then installed it. I had “Add application directory to your system path” ticked (I think that’s default) and I think everything else was default acceptances.

That is strange

“curl https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25_1hr/gfs20200522/gfs_0p25_1hr_06z

from a DOS prompt actually worked.

Dave

I just checked my firewall rules and opengrads.exe was blocked by default. I’ve previously added a rule to allow it to access the Internet. Can you check your firewall rules and add opengrads.exe if required?

So perhaps curl isn’t blocked but opengrads.exe it? I’m not sure if opengrads calls an external version of curl or if it’s built into the opengrads.exe code. If it’s the latter then you will need to give opengrads.exe Internet access permissions through your firewall.

I have already tried turning off the Firewall.

Hmmm I’d forgotten you said that. One last thing and then I’m out of ideas. In weather-watch-1.gs try changing the https in the URL to http.

I’m puzzled why it works for me and not for you though. I wonder if there are other differences? I’m running a fast path version of Windows 10 but I don’t know of any differences that might give that would be helpful.

I have tried that before, it doesn’t even work putting the address in a browser.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.