[ncl-talk] tc not getting recognized in version 6.3.0

Muhammad Omer Mughal m.mughal1 at postgrad.curtin.edu.au
Thu Jul 6 18:54:09 MDT 2017


Hi Mary


Kindly see the details of the error below


 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.
ncl 0> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
ncl 1> load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
ncl 2> a = addfile("./wrfout_d05_2016-04-01_00:00:00.nc","r")
ncl 3>  tc = wrf_user_getvar(a,"tc",-1)
fatal:Variable (t) is undefined
fatal:["Execute.c":8578]:Execute: Error occurred at or near line 1065 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl

fatal:["Execute.c":8576]:Execute: Error occurred at or near line 3


Muhammad Omer Mughal
MSc BSc Mechanical Engineering
PhD  Research Scholar
Remote Sensing and Satellite Research Group
Department of Imaging and Applied Physics
Curtin University

Curtin University
Tel | +61 8 9266 7962
Fax | +61 8 9266 2377
Mobile | 0470 237 525

Email | m.mughal1 at postgrad.curtin.edu.au<mailto:m.lynch at curtin.edu.au>
Web | http://curtin.edu.au<http://curtin.edu.au/>

Curtin University is a trademark of Curtin University of Technology.
CRICOS Provider Code 00301J (WA), 02637B (NSW)


________________________________
From: Muhammad Omer Mughal
Sent: Friday, 7 July 2017 8:08:35 AM
To: Mary Haley
Subject: Re: [ncl-talk] tc not getting recognized in version 6.3.0

Hi Mary
I am just using the code on the following link

http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/BASIC_SFC/wrf_Surface1.ncl
I used it previously and it worked fine. I am actually using modified WRF version for urban physics using BEP/BEM. I can find output variables such as PSFC and T2 but I am not sure why ncl is giving me the error
Variable "t" is not recognized at the line where tc is defined.
​
Muhammad Omer Mughal
MSc BSc Mechanical Engineering
PhD  Research Scholar
Remote Sensing and Satellite Research Group
Department of Imaging and Applied Physics
Curtin University

Curtin University
Tel | +61 8 9266 7962
Fax | +61 8 9266 2377
Mobile | 0470 237 525

Email | m.mughal1 at postgrad.curtin.edu.au
Web | http://curtin.edu.au

​ Curtin University is a trademark of Curtin University of Technology.
CRICOS Provider Code 00301J (WA), 02637B (NSW)

​
________________________________
From: Mary Haley <haley at ucar.edu>
Sent: Friday, 7 July 2017 12:03:59 AM
To: Muhammad Omer Mughal
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] tc not getting recognized in version 6.3.0

Hi Muhammad,

Important things to note about wrf_user_getvar:

 - You can only use this function on WRF-ARW data.

 - You must call this function with the file pointer from opening the WRF output file:

  f =
​​
addfile("wrfout_d01_2008-09-29_20:30:00.nc<http://00.nc>","r")

​ ​
tc = wrf_user_getvar(f,"tc",-1)

If you continue to have problems, please provide the relevant code where you call wrf_user_getvar
​ along with ​
the exact error message, so we can debug this.
​​

​Thanks,

--Mary
​


On Wed, Jul 5, 2017 at 8:02 PM, Muhammad Omer Mughal <m.mughal1 at postgrad.curtin.edu.au<mailto:m.mughal1 at postgrad.curtin.edu.au>> wrote:

Hi all


I am using wrf_user_getvar  function I am using temperature variable tc but its not getting recognized for some reason. Can any one suggest a solution


Muhammad Omer Mughal
MSc BSc Mechanical Engineering
PhD  Research Scholar
Remote Sensing and Satellite Research Group
Department of Imaging and Applied Physics
Curtin University

Curtin University
Tel | +61 8 9266 7962
Fax | +61 8 9266 2377
Mobile | 0470 237 525

Email | m.mughal1 at postgrad.curtin.edu.au<mailto:m.lynch at curtin.edu.au>
Web | http://curtin.edu.au<http://curtin.edu.au/>

Curtin University is a trademark of Curtin University of Technology.
CRICOS Provider Code 00301J (WA), 02637B (NSW)



_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170707/31655e22/attachment.html 


More information about the ncl-talk mailing list