[ncl-talk] Reading NAM files

Barry Lynn barry.h.lynn at gmail.com
Mon Nov 21 06:17:24 MST 2016


Guido:

Thank you.

Exactly what I was looking for!

Barry

On Mon, Nov 21, 2016 at 2:43 PM, Guido Cioni <guidocioni at gmail.com> wrote:

> By the way, NCL can read GRIB file directly, which is definitely better
> than converting it into netcdf. See https://www.ncl.ucar.edu/
> Document/Functions/Built-in/addfile.shtml
>
> Guido Cioni
> http://guidocioni.altervista.org
>
> On 21 Nov 2016, at 13:41, Guido Cioni <guidocioni at gmail.com> wrote:
>
> Hey Barry,
>
>
>    1. ncl_grib2nc is deprecated, please use ncl_convert2nc instead.
>    2. This is a shell command, you have to call it outside of NCL (in the
>    terminal). I just tried and it worked, although with some warning...
>
> cheers
>
> Guido Cioni
> http://guidocioni.altervista.org
>
> On 21 Nov 2016, at 12:38, Barry Lynn <barry.h.lynn at gmail.com> wrote:
>
> Hi:
>
> I assume that I need to convert namanl files to .nc format before using
> NCL.
>
> However, the attached program (which should be simple to execute) will not
> read the attached file.
>
> Thank you for your help,
>
> Barry
>
> [wrf at mn03 NAM]$ ncl ./grib_to_ncl.ncl
>  Copyright (C) 1995-2014 - All Rights Reserved
>  University Corporation for Atmospheric Research
>  NCAR Command Language Version 6.2.1
>  The use of this software is governed by a License Agreement.
>  See http://www.ncl.ucar.edu/ for more details.
> fatal:syntax error: line 19 in file ./grib_to_ncl.ncl before or near
> namanl_218_20130208_0000_000
>   ncl_grib2nc namanl_218_20130208_0000_000
> -----------------------------------------^
>
> fatal:error in statement
> fatal:Syntax Error in block, block not executed
> fatal:error at line 21 in file ./grib_to_ncl.ncl
>>  namanl_218_20130208_0000_000.grb
> <https://drive.google.com/file/d/0B3E3GjUeKpBdQmJMZ01WVGdBRFk/view?usp=drive_web>
>>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108
> <grib_to_ncl.ncl>_______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>


-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161121/218a6429/attachment.html 


More information about the ncl-talk mailing list