[ncl-talk] wind_component not working for single values?

Guilherme Martins jgmsantos at gmail.com
Thu Jul 13 09:43:09 MDT 2017


Dear Grim,

I'm using NCL 6.4.0.

This function is *Available in version 6.1.0
<http://www.ncl.ucar.edu/prev_releases.shtml#6.1.0> and later.*


*http://www.ncl.ucar.edu/Document/Functions/Contributed/wind_component.shtml
<http://www.ncl.ucar.edu/Document/Functions/Contributed/wind_component.shtml>*

I used your informations and my results are:

(0,0) 0
(1,0) 17

Guilherme.

Em qui, 13 de jul de 2017 às 11:48, Joe Grim <grim at ucar.edu> escreveu:

> Hi,
>
> When I try to use the valuable function "wind_component" with single
> values (e.g.,  uv = wind_component(17.0,180.,0)), I get the following error
> message:
> fatal:Number of subscripts (1) and number of dimensions (2) do not match
> for variable (uv)
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 1279 in
> file /usr/local/ncl/lib/ncarg/nclscripts/csm/contributed.ncl
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4 in file
> temp.ncl
>
> It looks like it expects "wspd" and "wdir" to have at least two elements
> in both arrays.  I know how to program around this, but was wondering if
> the intention for this function was to also deal with single values for
> wspd and wdir?
>
> Thanks!
>
> Joe
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-- 
------------------------------------------------------------------------------------------------
Instituto Nacional de Pesquisas Espaciais (INPE)
Centro de Previsão de Tempo e Estudos Climáticos (CPTEC)
Divisão de Satélites e Sistemas Ambientais (DSA)
Programa de Monitoramento de Queimadas
Telefone (INPE/CP): +55 12 3186-9205 || Celular (TIM): +55 12 98111-4292
E-mail: guilherme.martins at inpe.br || jgmsantos at gmail.com
Skype: guilherme.martins.
Homepage: https://sites.google.com/site/jgmsantos
Currículo Lattes: http://lattes.cnpq.br/5997657584785803
------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170713/b671710c/attachment.html 


More information about the ncl-talk mailing list