From 9e07ed7aeb8a415531845bca43bb5b69f8a68d25 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sep 24 2009 16:52:43 +0000 Subject: - Update to 1.8.0.13d --- diff --git a/.cvsignore b/.cvsignore index 00991b5..4262242 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -wgrib.c.v1.8.0.13b +wgrib.c.v1.8.0.13d diff --git a/Changes b/Changes index 092d687..5ddb113 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ +v1.8.0.13d 9/09 added ncep table 141, fixed typo in ncep table 129 (thanks YT) +v1.8.0.13c 6/09 Dusan Jovic's changes for Arakawa staggered b-grid (205) v1.8.0.13b 6/09 updated ncep table 129 v1.8.0.13a 5/09 added SUNSD ncep table 133 v1.8.0.13 5/09 added -cmc by NCO request, updated ncep table 129 diff --git a/sources b/sources index 735e0c8..94d7266 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -abe0e8c9ed97a80c9a029970effa325d wgrib.c.v1.8.0.13b +142fb748048401fd45ea37ba73247001 wgrib.c.v1.8.0.13d diff --git a/tricks.wgrib b/tricks.wgrib index d38c60b..88d7013 100644 --- a/tricks.wgrib +++ b/tricks.wgrib @@ -24,6 +24,15 @@ excuse that feature is already available with a bit of UNIX trickery. wgrib grib_file | egrep "(^20:|^30:)" | wgrib -i grib_file -o binary_file +(3'') How do I extract the 1, 9, 17, ... records into a new grib file? + + wgrib grib_file | awk '{if ($1 % 8 == 1) print $0}' FS=':' | + wgrib -s grib_file -i -grib -o new_grib_file + +(3''') How do I remove the 2, 10, 18, ... records from a grib file? + + wgrib grib_file | awk '{if ($1 % 8 != 2) print $0}' FS=':' | + wgrib -s grib_file -i -grib -o new_grib_file (4) How do I extract the first 10 records as a grib file? diff --git a/wgrib.spec b/wgrib.spec index 88ed003..07dd2d6 100644 --- a/wgrib.spec +++ b/wgrib.spec @@ -1,5 +1,5 @@ Name: wgrib -Version: 1.8.0.13b +Version: 1.8.0.13d Release: 1%{?dist} Summary: Manipulate, inventory and decode GRIB files @@ -75,6 +75,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Sep 24 2009 - Orion Poplawski - 1.8.0.13d-1 +- Update to 1.8.0.13d + * Mon Aug 24 2009 - Orion Poplawski - 1.8.0.13b-1 - Update to 1.8.0.13b