Re: Problem reading variables from multiple files

From: Will Hobbs <Will.Hobbs_at_nyahnyahspammersnyahnyah>
Date: Mon Jul 15 2013 - 14:09:55 MDT


Segmentation faults usually arise in NCL because you're running out of memory. You may have to add a loop to your script to deal with the data piecemeal, rather than all in one go. This will slow down you script of course, but it should run.

Also, don't forget to check that your computer's stack size is set to 'unlimited';


From: <Pon>, Karen <<>>
Date: Tuesday, 16 July 2013 6:04 AM
To: "<>" <<>>
Subject: Problem reading variables from multiple files


I am using NCL 6.1.2 on Linux RH gcc 4.4.5.

I am getting error message "Segmentation fault (core dumped)" when trying to extract variables from multiple files added using the addfiles function. I downloaded and tested on 6.1.0, which worked fine, but which gave other errors. I noticed that the problem has been reported previously (see link below), but I didn't see a resolution. I'm only using 4 files for the test script.

My test script as follows:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"


files=systemfunc("ls /export/data1/kpon/jan23/amps_raw/wrfout_d03_2013012300_f00*")




I've also tried other variables, including using the wrf_user_getvar function, all with the same error.


ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Jul 15 14:10:21 2013

This archive was generated by hypermail 2.1.8 : Tue Jul 16 2013 - 13:21:17 MDT