erget / wgrib2 Goto Github PK
View Code? Open in Web Editor NEWRead and write GRIB2 files
Read and write GRIB2 files
wgrib2 revised 7.2016 wgrib2 is a program to read/write grib2 files. For documentation, see http://www.cpc.ncep.noaa.gov/products/wesley/wgrib2/index.html For documentation of commonly used program options, type wgrib2 For documentation of all program options, type wgrib2 -help all For documenation of any program option that is poorly described on-line or by the "wgrib2 -help all", check the source code by searching for "f_{option}" where the option does not include the minus sign. Default makefile options USE_NETCDF3=1 USE_NETCDF4=0 USE_REGEX=1 USE_TIGGE=1 USE_MYSQL=0 USE_IPOLATES=0 USE_UDF=0 USE_OPENMP=1 USE_PROJ4=0 USE_WMO_VALIDATION=0 DISABLE_TIMEZONE=0 MAKE_FTN_API=0 USE_G2CLIB=0 USE_PNG=1 USE_JASPER=1 USE_AEC=1 To compile without netcdf, set USE_NETCDF3=0 and USE_NETCDF4=0 To compile without netcdf v3, set USE_NETCDF3=1 and USE_NETCDF4=0 To compile without netcdf v4, set USE_NETCDF3=0 and USE_NETCDF4=1 For netcdf4, the netcdf4 and hdf5 libraries are usually not included in the wgrib2.tgz file to save space. The makefile suggests how to download the netcdf4 and hdf5 libraries. If you have non-POSIX C compiler system that doesn't include <regex.h>, then you have to set USE_REGEX=0. This disables the use of regular expressions. No harm to keep TIGGE support on. USE_TIGGE=1 Support for Mysql is an option. You have to modify the makefile to indicate the locations of the mysql includes and libraries and set USE_MYSQL=1 The option -new_grid uses the ipolates library to do the interpolation. The required libraries are written in fortran and a few compilers are already supported in the makefile. For other compilers, you are on your own. The source code and makefile will have to be modified to use the ipolates option. Consult a local expert if you want to install this optional package. No help is available from NCEP for installing the package. User Defined Functions (UDF) allow you to run shell commands from within wgrib2. UDF are not available on windows machines unless <unistd.h> is implimented by the compiler (cygwin, MinGW). For the security paranoid, turn off UDF by USE_UDF=0. OpenMP allows wgrib2 to run on many cores for a faster run time. See README.openmp. The USE_OPENMP option will compile wgrib2 with openmp for several compilers. Proj4 is a open-source geolocation library. Usually the faster gctpc library is used for geolocation. At the current time, Proj4 does not add any capabilty over gctpc. Wgrib2 has been used to test proposals to the WMO grib standard. Developers might want to have conditional compilation of the tests using #ifdef WMO_VALIDATION ... test code ... #endif and compile using USE_WMO_VALIDATION=1 If you have a non-POSIX C compiler system that doesn't support time zones or supports time zones in a non-POSIX manner, then you have to set DISABLE_TIMEZONE to 1. Wgrib2 is both a stand alone utility and a library that is callable from both C and Fortran. To enable the making the wgrib2 library, you have to set MAKE_FTN_API=1 In older versions of wgrib2, the g2clib was the default decoder of grib files. In the current version, you can use g2clib as an optional decoder. The main use of compiling wgrib2 with g2clib is for testing g2clib. USE_G2CLIB=1 Support for the png, jpeg2000 and CDCSD(AEC) compression can be turned off through the following options. USE_PNG=0 USE_JASPER=0 USE_AEC=0 You might want to turn off the various compressions because 1) libraries do not compile correctly (icc and pgcc have problems with Jasper) 2) reduce the executable size and compile time 3) problems with cross-compiling
These templates were accepted at IPET-DRMM III and were validated using wgrib2 and GRIB API. Wesley would like to integrate the PDTs himself, so this branch should provide example code to use as inspiration.
Template 5.42 for GRIB2 provides efficient and quick packing of integers, well suitable for use for meteorological data.
The validation report for this template is included here. It is hoped that it will be approved at IPET-DRMM IV.
These provide support for statistical processes in variables associated with a distribution function.
How to export data into MYSQL DB while DB'S port isn't 3306?
./wgrib2 /data/gfs/gfs.t00z.pgrb2.1p00.f144 -mysql ip username password DB table
This bash works,but my db's port is not 3306.
I am trying to reproject rotated lat/lon grids with gdt=1, but am getting the error: "FATAL ERROR: mk_kgds: unsupported input grid code table 3.1=1. This is expected as the gdt does not equal either of the acceptable rotated lat/lon values (32768/32769)." I am, however, trying to determine how I can reproject these types of grids to a rectangular lat/lon grid. Any ideas? Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.