[ncl-talk] Return values in user defined functions

Tabish Ansari tabishumaransari at gmail.com
Tue Mar 21 12:14:25 MDT 2017


Hi

I'm trying to write a user defined function which calculates 6 arrays, say,
co, o3,no2, so2, pm25, pm10. I want to call this function inside a loop
which supplies different station-names each time - so that the function
computes these variables for each station. But is it possible to return 6
variables through one function?

How would the format be where this function is called, and also in the
return statement?
I would really appreciate an example for this.

Thanks

Tabish

Tabish U Ansari
PhD student, Lancaster Environment Center
Lancaster Univeristy
Bailrigg, Lancaster,
LA1 4YW, United Kingdom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170321/317a8637/attachment.html 


More information about the ncl-talk mailing list