Re: addfiles and plotting multiple wrfout_d01 files

From: <jwsmith_at_nyahnyahspammersnyahnyah>
Date: Fri, 05 Jun 2009 09:12:07 -0600

Thanks for the earlier responses.
Including the [0] seems to have resolved some errors.

I now have another error with the wrf_contour function.

I currently have the following line of script in the code:
contour_o3 = wrf_contour(mulfiles[0],wks,o3(,:,:),opts)
The code terminates at this line. I then get the following error:

Number of subscripts do not match number of dimensions of variable,
(3) Subscripts used, (4) Subscripts expected

I am using the addfiles function. Please refer the file
o3_surface_multiple_wrfout_test.ncl that was attached in the initial
e-mail.

Jonathan

Quoting Mary Haley <haley_at_ucar.edu>:

>
> Hi Jonathan,
>
> Your "fils" variable is just a string array of file names.
>
> The "wrf_map" function needs a file that has been opened with
> "addfile" or "addfiles".
>
> I think want you want is:
>
> map = wrf_map(wks,f[0],mpres)
>
> Note that you can't use "f", because "f" is a special "List" variable.
> "f[0]" references the first file opened with "addfiles".
>
> --Mary
>
>
> On Wed, 20 May 2009 jwsmith_at_ucar.edu wrote:
>
>> NCL_talk,
>>
>> Is there a mapping function that is specific to the addfiles and
>> systemfunc functions? I
>> am unable to plot figures for multiple wrfout_d01 files due to the
>> wrf_map that I have
>> been using with the addfile function.
>>
>> I have attached a the script that I am using to plot multple
>> wrfout_d01 files.
>>
>> Thanks,
>>
>> fatal:Argument type mismatch on argument (1) of (wrf_map) can not coerce
>> fatal:Number of elements of dimension (0) of argument (1) is (3) in
>> function (wrf_map),
>> exp ected (1) elements
>> fatal:Execute: Error occurred at or near line 48 in file
>> o3_surface_multiple_wrfout_test.ncl
>>
>>
>> Jonathan Wynn Smith
>>
>> Doctoral Student in Howard University
>> Program in Atmospheric Sciences (HUPAS)
>> 2008 ASP Graduate Student Visitor
>> 2006 ASP Summer Colloquium Participant
>>
>> 408 Thirkield Building
>> 2355 6th St. NW
>> Washington, DC 20059
>>
>> E-mail: jw_smith_at_howard.edu or jwsmith9_at_gmail.com
>> Cell Phone: 336-601-4563
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>>

Jonathan Wynn Smith

Doctoral Student in Howard University
Program in Atmospheric Sciences (HUPAS)
2008 ASP Graduate Student Visitor
2006 ASP Summer Colloquium Participant

408 Thirkield Building
2355 6th St. NW
Washington, DC 20059

E-mail: jw_smith_at_howard.edu or jwsmith9_at_gmail.com
Cell Phone: 336-601-4563

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Received on Fri Jun 05 2009 - 09:12:07 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 08 2009 - 09:30:31 MDT