Re: wind gfs

From: Kyle Griffin <kgriffin_at_nyahnyahspammersnyahnyah>
Date: Thu May 31 2012 - 05:52:02 MDT

Christelle,

To reference a specific value of a coordinate array, you need to place the
coordinate in curly braces. This tells it to look for the value of that
coordinate variable instead of the index of that coordinate variable. In
your case, the vertical coordinate of the XXXX_P0_L103_GLL0 variables are
(/10,80,100/) - so what you do right now is try and refer to the 11th index
of that 3-value array, which is clearly out of bounds. You'll want to
change your statements to look like:

UGRD_P0_L103_GLL0({10},:,:)
VGRD_P0_L103_GLL0({10},:,:)

To read more on the variable subscripting, see this section of the NCL
Language Guide:
http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml

Kyle
-----------------------------------------------------
Kyle S. Griffin
Dept. of Atmospheric and Environmental Sciences
University at Albany, SUNY
1400 Washington Ave, Albany, NY 12222
Office: ES-218 Email: kgriffin@albany.edu
http://www.atmos.albany.edu/student/kgriffin/

On Thu, May 31, 2012 at 4:37 AM, Christelle LACROIX <cl@meteoconsult.fr>wrote:

> Hi,
>
>
> I tried to plot wind 10m above ground from gfs datas, i
> use UGRD_P0_L103_GLL0 and VGRD_P0_L103_GLL0, but when i write
>
> UGRD_P0_L103_GLL0(10,:,:)
> VGRD_P0_L103_GLL0(10,:,:)
>
> i have some errors
>
> /datas/grib/gfs/18/gblav.T18Z.PGrbF06.grb
> Copyright (C) 1995-2011 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 6.0.0
> The use of this software is governed by a License Agreement.
> See http://www.ncl.ucar.edu/ for more details.
> warning: Entry (224) not found in code table file
> /usr/local/src/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.0.2.table
> warning: NclGRIB2: codetable file
> "/usr/local/src/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.2.4.table" not a
> valid GRIB2 code table.
> warning: Entry (2) not found in code table file
> /usr/local/src/ncl/lib/ncarg/grib2_codetables/ncep/4/4.2.table
> fatal:Subscript out of range, error in subscript #0
>
>
> Do you have an idea to help me , please?
>
>
> Thanks
>
> CL
>
>
>
> _______________________________________________
> 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 Thu May 31 05:52:31 2012

This archive was generated by hypermail 2.1.8 : Wed Jun 06 2012 - 15:17:44 MDT