Re: ncl-talk Digest, Vol 73, Issue 2

From: Muhammad Amjad <callamjad_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 03 2009 - 02:38:40 MST

Hi Rich,

I am also bearing similar situation with "wrf_user_getvar" function and was
advised to use ncl version 5.1.1. I would recommend you the same.

Hope this will help!

Cheers,

M. Amjad.

On Wed, Dec 2, 2009 at 12:00 AM, <ncl-talk-request@ucar.edu> wrote:

> Send ncl-talk mailing list submissions to
> ncl-talk@ucar.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> or, via email, send a message with subject or body 'help' to
> ncl-talk-request@ucar.edu
>
> You can reach the person managing the list at
> ncl-talk-owner@ucar.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ncl-talk digest..."
>
>
> Today's Topics:
>
> 1. wrf_user_getvar - select time period (Richard Hewston)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 01 Dec 2009 18:35:07 +0000
> From: Richard Hewston <r.hewston@swansea.ac.uk>
> Subject: wrf_user_getvar - select time period
> To: ncl-talk@ucar.edu
> Message-ID: <4B1561DB.2000804@swansea.ac.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
> I'm using ncl 5.0, and have a relatively simple question (i think) which
> I can't seem to find an answer to anywhere.
>
> In the simple script:
>
> ;---------------------------------------------
> ; derive a mslp field from the wrfout file, and writes it out to netcdf
> file
> ;---------------------------------------------
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
> begin
> ;---------------------------------------------
> ;open file and read in data
> ;---------------------------------------------
>
> z = addfile ("wrfout_d01_2000-01-01_00:00:00.nc", "r")
> slp = wrf_user_getvar(z,"slp",-1) ; slp (-1 indicates for all times)
>
> ;---------------------------------------------
> ;create reference to output file
> ;---------------------------------------------
> fout = addfile("MSLP_530.nc" , "c")
> ;---------------------------------------------
> ;Output variable slp to netCDF file
> ;-----------------------------------------------
> fout->MSLP= slp
> end
>
> I'm trying to select a subset of the temp.nc file, based on time. How
> can i select eg. timesteps 0-10?
> I can select timestep 0 by using
> slp = wrf_user_getvar(z,"slp",0)
>
> or timestep 5 with:
> slp = wrf_user_getvar(z,"slp",5)
>
> etc etc
>
> But I cannot figure out how to make to use a selection of 0 to 10??
>
> Any help greatly appreciated.
>
> Thanks,
> Rich
>
>
> ------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> End of ncl-talk Digest, Vol 73, Issue 2
> ***************************************
>

-- 
Muhammad Amjad
Scientific Officer (Climate Section)
Global  Change Impact Studies Centre (GCISC),
National Centre for Physics (NCP) Complex,
Shahdara Road, Quaid-i-Azam University Campus,
P.O. QAU-45320, Islamabad, Pakistan.
Off: 92 51 9230226, Fax: 92 51 2077385, Mob: 92 321 5309339
www.gcisc.org.pk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 3 02:38:48 2009

This archive was generated by hypermail 2.1.8 : Thu Dec 03 2009 - 09:53:22 MST