Re: Chart Plotting from GRIB-2

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Sun Apr 08 2012 - 09:12:16 MDT

We have no problems under AIX.

  f1 = addfile("YHXE20KWBC011800.grib2", "r")
  hgt = f1->HGT_P0_L100_GLL0
  printVarSummary(hgt)

  f2 = addfile("20120401_1800f18.grib2" , "r")
  t1 = f2->TMP_P0_L100_GLL0
  printVarSummary(t1)

  t2 = f2->TMP_P0_L7_GLL0
  printVarSummary(t2)

  u1 = f2->UGRD_P0_L100_GLL0
  printVarSummary(u1)

===
Variable: hgt
Type: float
Total Size: 167040 bytes
             41760 values
Number of Dimensions: 2
Dimensions and sizes: [lat_0 | 145] x [lon_0 | 288]
Coordinates:
             lat_0: [90..-90]
             lon_0: [ 0..358.75]
Number Of Attributes: 13
   center : US National Weather Service - NCEP (WMC)
   production_status : Operational products
   long_name : Geopotential height
   units : gpm
   _FillValue : 1e+20
   grid_type : Latitude/longitude
   parameter_discipline_and_category : Meteorological products, Mass
   parameter_template_discipline_category_number : ( 0, 0, 3, 5 )
   level_type : Isobaric surface (Pa)
   level : 20000
   forecast_time : 12
   forecast_time_units : hours
   initial_time : 04/01/2012 (18:00)

===
Variable: t1
Type: float
Total Size: 2171520 bytes
             542880 values
Number of Dimensions: 3
Dimensions and sizes: [lv_ISBL0 | 13] x [lat_0 | 145] x [lon_0 | 288]
Coordinates:
             lv_ISBL0: [10000..85000]
             lat_0: [90..-90]
             lon_0: [ 0..358.75]
Number Of Attributes: 12
   center : US National Weather Service - NCEP (WMC)
   production_status : Operational products
   long_name : Temperature
   units : K
   _FillValue : 1e+20
   grid_type : Latitude/longitude
   parameter_discipline_and_category : Meteorological products,
Temperature
   parameter_template_discipline_category_number : ( 0, 0, 0, 0 )
   level_type : Isobaric surface (Pa)
   forecast_time : 18
   forecast_time_units : hours
   initial_time : 04/01/2012 (18:00)
n
===
Variable: t2
Type: float
Total Size: 167040 bytes
             41760 values
Number of Dimensions: 2
Dimensions and sizes: [lat_0 | 145] x [lon_0 | 288]
Coordinates:
             lat_0: [90..-90]
             lon_0: [ 0..358.75]
Number Of Attributes: 13
   center : US National Weather Service - NCEP (WMC)
   production_status : Operational products
   long_name : Temperature
   units : K
   _FillValue : 1e+20
   grid_type : Latitude/longitude
   parameter_discipline_and_category : Meteorological products,
Temperature
   parameter_template_discipline_category_number : ( 0, 0, 0, 0 )
   level_type : Tropopause
   level : 0
   forecast_time : 18
   forecast_time_units : hours
   initial_time : 04/01/2012 (18:00)
===
Variable: u1
Type: float
Total Size: 2171520 bytes
             542880 values
Number of Dimensions: 3
Dimensions and sizes: [lv_ISBL0 | 13] x [lat_0 | 145] x [lon_0 | 288]
Coordinates:
             lv_ISBL0: [10000..85000]
             lat_0: [90..-90]
             lon_0: [ 0..358.75]
Number Of Attributes: 12
   center : US National Weather Service - NCEP (WMC)
   production_status : Operational products
   long_name : U-component of wind
   units : m s-1
   _FillValue : 1e+20
   grid_type : Latitude/longitude
   parameter_discipline_and_category : Meteorological products, Momentum
   parameter_template_discipline_category_number : ( 0, 0, 2, 2 )
   level_type : Isobaric surface (Pa)
   forecast_time : 18
   forecast_time_units : hours
   initial_time : 04/01/2012 (18:00)
n

On 4/8/12 6:33 AM, Syed Hassan Gilani wrote:
> Hi Dennis,
>
> tks for ur reply.
> I don't face any problem in dumping GRIB-2 data. The problem is when I
> am trying to extract variable data... e.g temp. data, wind data....etc.
> Can advice?
>
> /(*Note: *My previous email has screenshot of command I have used and
> error I am receiving)/
> /
> /
> tks & best regards,
> Hassan
>
> On Sat, Apr 7, 2012 at 12:59 AM, Dennis Shea <shea@ucar.edu
> <mailto:shea@ucar.edu>> wrote:
>
> NCL works fine under AIX.
>
> %> uname -a
> AIX be1005en 3 5 00CBF2314C00
>
> We only have 6.0.0 on this machine.
>
> %> ncl -V
> 6.0.0
>
> %> ncl_filedump YHXE20KWBC011800.grib2 > out.YHXE20KWBC011800
> %> ncl_filedump 20120401_1800f18.grib2 > out.20120401_1800f18
>
> I have attached two 2 gzip'd outputs.
>
> ---
> As always ...
> make sure you have your NCARG_ROOT environment variable
> set correctly
>
> Cheers
>
>
> On 04/02/2012 09:13 PM, Syed Hassan Gilani wrote:
>
> Hi Mary,
>
> tks for your reply.
>
> My current production env is AIX v5.3.
> I can setup a linux env to try out using NCL v6.0 but our
> preference is
> still to make it work on AIX as the system has fail-over backup.
>
> I have uploaded two files:
>
> - YHXE20KWBC011800.grib2 (extracted from bundle of compressed
> grib2 files)
> - 20120401_1800f18.grib2 (one of the compressed
> grib2 files
> downloaded from WIFS site)
>
>
> both files give the same error.
>
> tks & best regards,
> Hassan
>
>
> On Tue, Apr 3, 2012 at 12:49 AM, Mary Haley <haley@ucar.edu
> <mailto:haley@ucar.edu>
> <mailto:haley@ucar.edu <mailto:haley@ucar.edu>>> wrote:
>
> Hi Hassan,
>
> I noticed you are running NCL V5.2.1. Do you have a system
> where you
> can try this with NCL V6.0.0?
>
> Meanwhile, can you also provide us with the file? Please
> see this
> for information on where to put the file:
>
> http://www.ncl.ucar.edu/__report_bug.shtml#HowToFTP
> <http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP>
>
> Thanks,
>
> --Mary
>
> On Apr 2, 2012, at 3:32 AM, Syed Hassan Gilani wrote:
>
> > Hi,
> >
> > I am trying to output the GRIB-2 variable data but ending up with
> following error's:
> > Any advice? tks
> >
> > <image.png>
> >
> > On Sun, Apr 1, 2012 at 10:07 PM, Dennis Shea <shea@ucar.edu
> <mailto:shea@ucar.edu>
> <mailto:shea@ucar.edu <mailto:shea@ucar.edu>>> wrote:
> > All netCDF, all GRIB, all HDF are read via the same function:
> addfile
> >
> http://www.ncl.ucar.edu/__Document/Functions/Built-in/__addfile.shtml
> <http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml>
> >
> > f = addfile("FOO.grb", "r")
> > print(f) ; examine file contents
> >
> > Also, ncl_filedump can be used from the command line
> >
> > %> ncl_filedump FOO.grb | less
> >
> > Find something on the Examples page and modify as necessary
> > http://www.ncl.ucar.edu/__Applications/
> <http://www.ncl.ucar.edu/Applications/>
> >
> > If you are new to NCL, please see the Mini-Language manual at:
> > http://www.ncl.ucar.edu/__Document/Manuals/
> <http://www.ncl.ucar.edu/Document/Manuals/>
> >
> > Please respond only to ncl-talk@ucr.edu
> <mailto:ncl-talk@ucr.edu> <mailto:ncl-talk@ucr.edu
> <mailto:ncl-talk@ucr.edu>>
>
> > Do not include my email address.
> >
> > Good luck
> >
> >
> > On 3/31/12 11:48 AM, Syed Hassan Gilani wrote:
> > Hi,
> >
> > Is there any example on using GRIB-2 data for plotting wind or
> temp chart?
> >
> > Any advice or link reference will be helpful, tks
> >
> > Best Regards,
> > Hassan
> >
> > Sent from my iPhone
> > _________________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/__mailman/listinfo/ncl-talk
> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
> >
> > _________________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/__mailman/listinfo/ncl-talk
> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
>
>
> _________________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/__mailman/listinfo/ncl-talk
> <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Apr 8 09:12:26 2012

This archive was generated by hypermail 2.1.8 : Mon Apr 09 2012 - 13:43:03 MDT