[ncl-talk] Argument type mismatch

Amadou Coulibaly mpapin24 at gmail.com
Mon May 16 07:50:29 MDT 2016


Hello NCL users

Using the following command:
fils = systemfunc ("ls /home_dir/wrfout_d01_2014-12-13*")
  f   = addfiles (fils, "r")

  printVarSummary(f)   ; type list; this contiains reference (pointers) to
files

   nfils = dimsizes(fils)
   do nf=0,nfils-1
        contour_tc = wrf_contour(f[nf], wks,tc_plane(it,level,:,:),opts)
 end do
I am getting another error, which is:
fatal:List subscripting used on non-list variable, can't continue
Because the function "wrf_contour" expected "f" as nc_file rather than a
list.

Best




On 16 May 2016 at 13:54, Dennis Shea <shea at ucar.edu> wrote:

>   fils = systemfunc ("ls /home_dir/wrfout_d01_2014-12-13*")
>   f   = addfiles (fils, "r")
>
>   printVarSummary(f)   ; type list; this contiains reference (pointers) to
> files
>
>    nfils = dimsizes(fils)
>    do nf=0,nfils-1
>         contour_tc = wrf_contour(f[nf], wks,tc_plane(it,level,:,:),opts)
>  end do
>
>
> On Mon, May 16, 2016 at 5:42 AM, Amadou Coulibaly <mpapin24 at gmail.com>
> wrote:
>
>> Hello NCL users,
>>
>> I am getting an error when I tried to use "wrf_contour" function to my
>> input data, which is in format "list" from:
>>
>> fils = systemfunc ("ls /home_dir/wrfout_d01_2014-12-13*")
>>   f   = addfiles (fils, "r")
>>
>> And after using the following command:
>>  contour_tc = wrf_contour(f,wks,tc_plane(it,level,:,:),opts)
>>
>> I am getting the following error:
>> fatal:Argument type mismatch on argument (0) of (wrf_contour) can not
>> coerce
>>
>> ​Is there a way to convert "f" from list to file format, required by
>> "wrf_contour" function?
>>
>> Best​
>>
>> --
>> * COULIBALY   AMADOU   *
>> PhD  Student  on  West  African  Climate  System (WACS)
>> FUTA - Federal  University  of  Technology of Akure, Nigeria
>>
>> *Visiting Student - *
>> *University of Cologne, Germany**Institute of Geophysics and Meteorology*
>> Pohligstr. 3 / Office 3.102
>> D-50969 Köln
>>
>> *Project*: WASCAL (West African Science Service Centre on Climate Change
>> and Adapted Land Use)
>> Phone:(+234) 812 965 3659 /(+223) 90 08 26 71 /(+226) 64 57 37 27 /+49
>> 15218352574
>>
>> E-mail: mpapin24 at gmail.com / coulibalya68 at yahoo.com
>>
>> "*The time is always right to do right": Nelson Mandela*
>>
>> *"Character is like a tree and reputation like a shadow.  The shadow is
>> what we think of it; the tree is the real thing" : Abraham Lincoln*
>>
>> *"Do what you can, with what you have, where you are" Theodore Roosevelt*
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>


-- 
* COULIBALY   AMADOU   *
PhD  Student  on  West  African  Climate  System (WACS)
FUTA - Federal  University  of  Technology of Akure, Nigeria

*Visiting Student - *
*University of Cologne, Germany**Institute of Geophysics and Meteorology*
Pohligstr. 3 / Office 3.102
D-50969 Köln

*Project*: WASCAL (West African Science Service Centre on Climate Change
and Adapted Land Use)
Phone:(+234) 812 965 3659 /(+223) 90 08 26 71 /(+226) 64 57 37 27 /+49
15218352574

E-mail: mpapin24 at gmail.com / coulibalya68 at yahoo.com

"*The time is always right to do right": Nelson Mandela*

*"Character is like a tree and reputation like a shadow.  The shadow is
what we think of it; the tree is the real thing" : Abraham Lincoln*

*"Do what you can, with what you have, where you are" Theodore Roosevelt*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160516/d0748ca8/attachment.html 


More information about the ncl-talk mailing list