question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trouble running download.sh

See original GitHub issue

Loving this wind layer example, but having trouble running it locally.

  • When I try to download data, I got a no messages found in utml.grub error.
  • Running on OSX Mojave and have the brew dependencies mentioned in readme.

Thanks in advance!

{"u":no messages found in utmp.grib,"v":no messages found in vtmp.grib}

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
grahamkanecommented, Sep 13, 2021

The url seems to have changed again. I found I also needed to change download.sh as grib_set (ecCodes Version 2.22.1) was complaining about the input / output files having identical names:

GFS_URL="https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_${RES}.pl?file=gfs.t${GFS_TIME}z.pgrb2.${RES}.f000&${LEVEL}&${BBOX}&dir=%2Fgfs.${GFS_DATE}/${GFS_TIME}/atmos"

curl "${GFS_URL}&var_UGRD=on" -o utmp.grib
curl "${GFS_URL}&var_VGRD=on" -o vtmp.grib

grib_set -r -s packingType=grid_simple utmp.grib utmp_out.grib
grib_set -r -s packingType=grid_simple vtmp.grib vtmp_out.grib

printf "{\"u\":`grib_dump -j utmp_out.grib`,\"v\":`grib_dump -j vtmp_out.grib`}" > tmp.json

rm utmp.grib vtmp.grib utmp_out.grib vtmp_out.grib

This worked along with the changes to prepare.js previously mentioned.

0reactions
nikolamilunoviccommented, Aug 27, 2021

I found I had to change the URL as follows:

GFS_URL="https://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_${RES}.pl?file=gfs.t${GFS_TIME}z.pgrb2.${RES}.anl&lev_max_wind=on&${BBOX}&dir=%2Fgfs.${GFS_DATE}%2F${GFS_TIME}%2Fatmos"

and update prepare.js as follows:

const umessage = data.u.messages[0];
const vmessage = data.v.messages[0];

const unpack = (message) =>
    message.reduce((acc, { key, value }) => ({ ...acc, [key]: value }), {});
const u = unpack(umessage);
const v = unpack(vmessage);

URL Not working for me,

Data file is not present: /common/data/model/com/gfs/prod/gfs.20200701/00/atmos/gfs.t00z.pgrb2.1p00.anl

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >
I've downloaded a .sh file - how do I install this? - Ask Ubuntu
Then you double-click the file and select 'Run in Terminal' or 'Run'. Share.
Read more >
Trouble running C# code in VS Code: Getting scriptcs error
In VS Code goto Terminal and execute dotnet run --project TestConsoleApp to run your application. Alternatively you can start Debugging (F5).
Read more >
Trouble Getting a SH Script to Run on Macs Via BigFix
Hello, I am trying to make a fixlet that simply runs an SH script we ... Script is working fine until the last...
Read more >
Fix problems that block programs from being installed or ...
If you see the File Download box when you start downloading, select Run or Open. The troubleshooter provides steps for you to follow....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found