[ncl-talk] systemfunc issue

Amadou Coulibaly mpapin24 at gmail.com
Thu Jun 2 14:47:45 MDT 2016


Hi Rick,

If I used the command "ncl 1>print(systemfunc("ls -l"))", it works. But as
I said earlier my code works with the file type "x11", but not for any
other file types. If I used for examples "png" or "eps" I am till getting
the following errors:

fatal:systemfunc: cannot create child process:[errno=12]
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4151 in
file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl

fatal:["Execute.c":8575]:Execute: Error occurred at or near line 93 in file
mon_precip_trmm.ncl

where line 93 corresponds to:  wks =
gsn_open_wks("png","Mean_Monthly_Rainfall_TRMM")

Best regards

On 1 June 2016 at 23:16, Rick Brownrigg <brownrig at ucar.edu> wrote:

> Hi,
>
> errno 12 is "Cannot allocate memory".  Line 4151of gsn_code.ncl is the
> second of this block of code:
>
>    cmdStr = "if [ -w " + res_dir + " ] ; then echo 1 ; else echo 0 ; fi"
>     if (type.ne."x11" .and. systemfunc(cmdStr).ne.1) then
>         print("gsn_open_wks: Error: directory '" + res_dir + "' does not
> exist or lacks write permissions.");
>         status_exit(1)
>     end if
>
> All this is doing is a testing to make sure the output directory exists
> and is writeable.  Is your system really stressed or otherwise memory
> constrained?
>
>
> Running NCL interactively, can you do something like:
>
> ncl 1>print(systemfunc("ls -l"))
>
> and get the same error?
>
> Not sure what to suggest here...
> Rick
>
>
> On Wed, Jun 1, 2016 at 1:04 PM, Amadou Coulibaly <mpapin24 at gmail.com>
> wrote:
>
>> Hello NCL users,
>>
>> I am facing an issue about systemfunc. I have 4 years daily TRMM data to
>> plot. I used NCO "ncrcat" to mergetime. But when I wanted to plot, I am
>> getting the following errors:
>>
>> fatal:systemfunc: cannot create child process:[errno=12]
>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4151 in
>> file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl
>>
>> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 93 in
>> file mon_precip_trmm.ncl
>>
>> This line 93 corresponds to: wks =
>> gsn_open_wks("png","Mean_Monthly_Rainfall_TRMM")
>>
>> But if I used "x11" as plot type, it works, but not for "png" or "eps".
>>
>> How to solve this issue?
>>
>> --
>> * 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/20160602/acd31f57/attachment.html 


More information about the ncl-talk mailing list