[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IDV #JUN-146918]: jython: return tuple of GRIDded Objects

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [IDV #JUN-146918]: jython: return tuple of GRIDded Objects
  • Date: Thu, 11 Feb 2010 13:47:23 -0700

Hi Tyn-

> > However, to pass a tuple, you would create an array:
> >
> > tuple = []
> > tuple.append(newc)
> > tuple.append(newd)
> >
> > and access them as tuple[0] and tuple[1].
> >
> > What do you want to pass the tuple off to?
> 
> Should this:
> exportGridToNetcdf(grid, filename)
> 
> As in this example:
> exportGridToNetcdf(tuple[0, /path/filename)
> 
> work?

Theoretically, yes (with the closing ] after the 0).
 
Don

Ticket Details
===================
Ticket ID: JUN-146918
Department: Support IDV
Priority: Normal
Status: Open