[ncl-talk] Array Issue
Marston Johnston
marston.johnston at gu.se
Tue Nov 15 15:14:47 MST 2016
Hi Forest,
You are inside a do loop and sometimes even though the dimensions are the same, the variable will not over write it.
When reading in vectors or arrays, I find it safest to use “:=” to overwrite the variable. I don’t think the problem is with FNAME.
If it the lines which is probably changing dimensions with each iteration. Use the “:=” to solve this.
Hope this helps,
/M
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Marston S. Johnston, PhD
Department of Earth Sciences
University of Gothenburg, Sweden
Email: marston.johnston at gu.se<mailto:marston.johnston at gu.se>
SkypeID: marston.johnston
Phone: +46-31-7864901
Only the fruitful thing is true!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: <ncl-talk-bounces at ucar.edu> on behalf of "Black, Forrest (LARC-D318)[UNIVERSITIES SPACE RESEARCH ASSOCIATION]" <forrest.black at nasa.gov>
Date: Tuesday, 15 November 2016 at 23:08
To: "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
Subject: [ncl-talk] Array Issue
Hello, fellow NCL users,
I am getting the following error on the attached script:
Variable: fname
Type: string
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) 2016-01-21_09.csv
fatal: Dimension sizes of left hand side and right hand side of assignment do not match
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 96 in file traject_xy.ncl
I tried deleting the associated variables per iteration, but still can’t seems to fix the error. Any suggestions would be greatly appreciated.
- Forrest
_______________________________________________ ncl-talk mailing list ncl-talk at ucar.edu List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161115/e67a4728/attachment.html
More information about the ncl-talk
mailing list