[ncl-talk] f2foshv_Wrap function do not match

Guilherme Martins jgmsantos at gmail.com
Tue Apr 12 11:08:39 MDT 2016


Dear Adam,

The same occur to fo2fshv_Wrap function at line 5710 the contributed.file:

fatal:Dimension sizes of left hand side and right hand side of assignment
do not match
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 5710 in
file ./contributed.ncl

I changed the line 5695:
nlat1   = nlat+1                             ; f has one more lat
to
nlat1   = nlat                                ; f has one more lat

Guilherme.

Em seg, 11 de abr de 2016 às 23:12, Guilherme Martins <jgmsantos at gmail.com>
escreveu:

> Dera Adam,
>
> Thanks a lot! It works!
>
> Guilherme.
>
> Em seg, 11 de abr de 2016 às 16:45, Adam Phillips <asphilli at ucar.edu>
> escreveu:
>
>> Hi Guilherme,
>> Thanks for sending in a short script and providing a data file so we can
>> test things out here. I think you have found a bug with the f2foshv_Wrap
>> procedure. I would recommend copying your version of contributed.ncl to a
>> local directory, and modify line 5651 from this:
>> nlat1= nlat-1
>> to this:
>> nlat1= nlat
>>
>> Then, load the local contributed.ncl in your regular script and run it. I
>> ran a brief test here and the plots looked good, but you should check your
>> results as well.
>>
>> I will file a JIRA ticket about this. Let me know if you have any
>> questions about what I recommended above.
>> Adam
>>
>>
>>
>> On Fri, Apr 8, 2016 at 5:42 AM, Guilherme Martins <jgmsantos at gmail.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> Trying to use the f2foshv_Wrap function, I get the messege below.
>>>
>>> fatal:Dimension sizes of left hand side and right hand side of
>>> assignment do not match
>>>
>>> According to the link:
>>>
>>> http://www.ncl.ucar.edu/Document/Functions/Contributed/f2foshv_Wrap.shtml
>>>
>>> The result (uoff;voff) has the same same size dimensions of ure;vreg except
>>> the latitude dimension must have one less element.
>>>
>>> Declaring my variables:
>>>
>>> nt = 3
>>> nz = 12
>>> ny = 72
>>> nx = 144
>>>
>>> uN = new((/nt,nz,ny,nx/),typeof(u))
>>> vN = new((/nt,nz,ny,nx/),typeof(v))
>>>
>>> The latitude has one less element than original file.
>>>
>>> I can't understand where is my error.
>>>
>>> The input file (uwnd.vwnd.nc) can be downloaded at:
>>>
>>> http://ftp-supercomputacao.inpe.br/public/jose.martins/
>>>
>>> Thanks,
>>>
>>> Guilherme.
>>> --
>>>
>>> ------------------------------------------------------------------------------------------
>>> Dr. Guilherme Martins
>>> Instituto Nacional de Pesquisas Espaciais (INPE)
>>> Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES
>>> Grupo de Superfície-Biosfera-Atmosfera (GSBA)
>>> Telefone (INPE/CP): +55 12 3186-9520 || Celular (TIM): +55 12 98152-8580
>>> 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
>>>
>>> ------------------------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>> --
>> Adam Phillips
>> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
>> www.cgd.ucar.edu/staff/asphilli/   303-497-1726
>>
>> <http://www.cgd.ucar.edu/staff/asphilli>
>>
> --
>
> ------------------------------------------------------------------------------------------
> Dr. Guilherme Martins
> Instituto Nacional de Pesquisas Espaciais (INPE)
> Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES
> Grupo de Superfície-Biosfera-Atmosfera (GSBA)
> Telefone (INPE/CP): +55 12 3186-9520 || Celular (TIM): +55 12 98152-8580
> 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
>
> ------------------------------------------------------------------------------------------
>
-- 
------------------------------------------------------------------------------------------
Dr. Guilherme Martins
Instituto Nacional de Pesquisas Espaciais (INPE)
Centro de Ciência do Sistema Terrestre (CCST) - Prédio CES
Grupo de Superfície-Biosfera-Atmosfera (GSBA)
Telefone (INPE/CP): +55 12 3186-9520 || Celular (TIM): +55 12 98152-8580
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/20160412/afd4f4a3/attachment.html 


More information about the ncl-talk mailing list