Closed AlysonStahl-NOAA closed 3 weeks ago
Hi, The program wgrib is an old program, and was developed on the Amiga OS. At the time, the "make" program was more-or-less a unix only program. So for the convenience of the users, the various .h and .c files were combined into wgrib.c by the script src2all. As a result, the user only downloaded one file (wgrib.c) and compiled the code with a single line
ibm/sp (32 bit ints): c89 -O2 -o wgrib wgrib.c
ibm/sp (64 bit ints): c89 -O2 -q64 -o wgrib wgrib.c
sun: acc -o wgrib wgrib.c -lm
sun: gcc -o wgrib wgrib.c -lm
(note: sun's cc is not an ANSI C compiler)
cray C90: cc -o wgrib wgrib.c
sgi: cc -o wgrib wgrib.c -lm
hp risc: gcc -o wgrib wgib.c -lm
hp risc: cc -Aa -o wgrib wgrib.c -lm
68K amiga: sc link math=ieee output=wgrib wgrib.c
The program wgrib.c was designed for distribution-only. People who want to develop wgrib2 should go to the .h and .c files which are available in the tarball.
https://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/wgrib.tar.v1.8.5
For a NCEPlib's release, I suggest you base it on the makefile, .h .c files.
On Thu, Jun 13, 2024 at 2:23 AM Edward Hartnett @.***> wrote:
Merged #140 https://github.com/NOAA-EMC/wgrib2/pull/140 into develop.
— Reply to this email directly, view it on GitHub https://github.com/NOAA-EMC/wgrib2/pull/140#event-13140969084, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIB7ZWO4O5WUWAHU7SLZRDZHE3EBAVCNFSM6AAAAABJHAEDYOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGE2DAOJWHEYDQNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Fixes #139