[ncl-install] Zero length dimension errors

Crooks, Cynthia J cynthia.crooks at bp.com
Tue Apr 19 13:00:17 MDT 2016


I just realized that I probably should have included the cdl file and the output nc file.

Cindy

From: ncl-install-bounces at ucar.edu [mailto:ncl-install-bounces at ucar.edu] On Behalf Of Crooks, Cynthia J
Sent: Tuesday, April 19, 2016 9:54 AM
To: ncl-install at ucar.edu
Subject: [ncl-install] Zero length dimension errors

I recently compiled ncl_ncarg-6.3.0 for one of our users.  She has written the ncl script below:

; NCL script to time interpolate hycom to 1 hour time interval
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
;load "/usr/lib/ncarg/nclscripts/csm/contributed.ncl"

setfileoption("nc","Format","LargeFile")

ii=2
fileno_in=sprintf("%04.0f",ii)
iii=ii-1
fileno_out=sprintf("%04.0f",iii)

file_out = "/lustre04/vol0/crookscj/ncl/reems/test_"+fileno_out+".nc"
file_in = "/lustre04/vol0/crookscj/ncl/reems/SV_tides_100m_his_"+fileno_in+".nc"
file_time = "/lustre04/vol0/crookscj/ncl/reems/SV_tides_500m_his_"+fileno_in+".nc"

fin = addfile(file_in,"r")
ftime = addfile(file_time,"r")

system("ncgen -o "+file_out+" SV_his.cdl")
out = addfile(file_out,"w")

The script appears to work until the last statement which generates the "Zero length dimension" errors.  She has checked the file created by "ncgen" and feels it is correct.  She has looked through the FAQ and did not find anything she felt was helpful.

We are wondering if I have missed something in the compile steps or setting up the user environment.   I have attached a copy of the script, a log file with the error messages and a file with the steps I took to compile the software.  I have also attached the lua module file which sets the environment.

I am trying to collect the data and rewrite the script so that everything would be contained in the current directory.

Please let me know if this should be more appropriately posted to ncl-talk.

Thanks for your help.

Cindy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20160419/2b114692/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SV_his.cdl
Type: application/octet-stream
Size: 4530 bytes
Desc: SV_his.cdl
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20160419/2b114692/attachment-0002.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_0001.nc
Type: application/octet-stream
Size: 14358 bytes
Desc: test_0001.nc
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20160419/2b114692/attachment-0003.obj 


More information about the ncl-install mailing list