[ncl-talk] A Fatal Error Question: is this a bug in NCL?

Barry Lynn barry.h.lynn at gmail.com
Sun Jul 16 20:56:42 MDT 2017


Hi:

I have a program that does multiple loops.

I had this error:

0) i_dir = 6

fatal:systemfunc: cannot create child process:[errno=12]

fatal:["Execute.c":8640]:Execute: Error occurred at or near line 84 in file
./plot_loop_700mb.ncl


This occurred when reading the file from the sixth directory of 20.


Here was the read from the 5th directory:

(0) i_dir = 5

(0) all_files(n) =
/home/cust100021_vol1/barry/cust100021_vol2/GEFS/GEFS_05/gep05.t00z.pgrb2b.0p50.f084.grb

Here is a listing of both files:

They are both present, but the second attempted allocation/definition of
the file fails with the read that follows:


[barry at cust100021-login1 GEFS]$ ls -ltr
/home/cust100021_vol1/barry/cust100021_vol2/GEFS/GEFS_05/gep05.t00z.pgrb2b.0p50.f084.grb

-rw-r--r-- 1 barry cust100021 78985320 Jul 16 04:58
/home/cust100021_vol1/barry/cust100021_vol2/GEFS/GEFS_05/gep05.t00z.pgrb2b.0p50.f084.grb

[barry at cust100021-login1 GEFS]$ ls -ltr
/home/cust100021_vol1/barry/cust100021_vol2/GEFS/GEFS_06/gep06.t00z.pgrb2b.0p50.f084.grb

-rw-r--r-- 1 barry cust100021 80466702 Jul 16 04:58
/home/cust100021_vol1/barry/cust100021_vol2/GEFS/GEFS_06/gep06.t00z.pgrb2b.0p50.f084.grb

Here is the read:


  print("i_dir = " + i_dir)

  diri = dirWRF(i_dir) + "/"

; define individual file read

   all_files = systemfunc("ls " + diri + "ge*pgrb2b*grb")

   print("all_files(n) = " + all_files(n))

  filename = all_files(n)


Is the problem that I make this allocation multiple times, each directory,
each file? Perhaps I should read all files at once into a two dimensional
filename array?


Thanks



-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170717/f8ef5b8e/attachment.html 


More information about the ncl-talk mailing list