[ncl-talk] Segmentation fault

Guilherme Martins jgmsantos at gmail.com
Fri Dec 10 03:53:26 MST 2021


Dear Dennis,

I don't know but the program is working perfectly. I didn't fix anything

Thank for all tips.



Em dom., 5 de dez. de 2021 às 01:36, Dennis Shea <shea at ucar.edu> escreveu:

> Given that the problems begin on 28 Nov 2021 but work previously, I am not
> sure what the problem might be.
> ---
> Could you create a stand alone NCL script that (a) creates the file names;
> (b) uses addfiles;
> (c) PRECIP = g[:]->prec(::-1,:,:)
> and
> (d) precip = g[:]->\$nome_var_precip\$(::-1,:,:)  ; Importação da variável
> precipitação.
>
> ========================================================
> I assume that the* \$* character sequence is to escape unix shell issues ?
>            *\$*nome_var_precip*\$*
> ---------------------------------
> ; Leitura dos arquivos de precipitação.
>
> lista_arquivos = systemfunc("ls ${nome_arquivos}")
>
> g = addfiles(lista_arquivos,"r")
>
> ListSetType(g,"cat")
>
> nome_var_precip = "prec" ; Nome da variável do arquivo de precipitação do
> imerg.
>
> ; A dimensão tempo (time) foi invertida (::-1). Isso foi feito para
> facilitar
> ; o trabalho com as datas dos arquivos.
> ; Como a dimensão tempo foi invertida, irá aparecer a seguinte mensaem:
> ; warning:error attempting to fix non-monotonic aggregation variable
> ; Pode continuar o cálculo sem problemas.
>
> PRECIP = g[:]->prec(::-1,:,:)
> printVarSummary(PRECIP)
>
> precip = g[:]->$nome_var_precip$(::-1,:,:)  ;    no \$
> printVarSummary(precip)
>
>
>
>
> On Sat, Dec 4, 2021 at 4:05 AM Guilherme Martins via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Dear NCL users,
>>
>> I was searching for some solution to my case, but I did not get it.
>>
>> When I run my script (in attach) I receive an error message (in attach).
>>
>> I did realize that error occur in line 155:
>>
>> *precip = g[:]->\$nome_var_precip\$(::-1,:,:)  ; Importação da variável
>> precipitação.*
>>
>> When I run using another date, I don't have a problem. My problem began
>> on 28 nov 2021. Since this date I'm not capable of running my script.
>>
>> I'd like some help. Some tips are very appreciated.
>>
>> Best regards,
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20211210/e7a98710/attachment.html>


More information about the ncl-talk mailing list