[ncl-talk] Making a 2d-array

Rick Brownrigg brownrig at ucar.edu
Thu Sep 5 10:18:37 MDT 2019


Hi,

See the attached script. The plots look believable to me, although I don't
know for certain. This is a bit hackish in that it critically depends upon
knowing the incoming dimensionality (rather than going to lengths to scan
through the raw data trying to calculate what the lat/lon dimensions are).
Extracting the lat/lon arrays is not particularly efficient, as the values
get overwritten by the same values repeatedly, but it gets the job done.

Rick



On Thu, Sep 5, 2019 at 8:27 AM Debashis Paul via ncl-talk <ncl-talk at ucar.edu>
wrote:

> Hello ncl community.,
> I have a csv data which has got 121 latitude values and 320 longitude
> values in a repeated manner for two different variables, my inquiry is I am
> able to make a 2-d array when I have only one variable but if it's more
> than 1 I am facing the problem, I am not able to make any 2-d array. So if
> any can help me how to solve this problem or what's the procedure to follow
> through it will be much appreciated.
> For your convenience I am attaching the dataset along with the code which
> I have made.
>
> With regards.
> Debashis Paul
> _______________________________________________
> 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/20190905/50388ac9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.ncl
Type: application/octet-stream
Size: 892 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190905/50388ac9/attachment.obj>


More information about the ncl-talk mailing list