You don't need to write a module to do this. You can write a little C or FORTRAN program to read the netCDF metadata, and dump the list to stdout. You should run the program as a filter (! in front of executable name) in Import, using the general array reader. You can pass the netCDF file name via an interactor, for example or via construction (i.e., date/time) using Format to go to Import.
This approach is about 1/10 the work and can be nicely integrated into your DX network If there is a scripting language interface for netCDF these days, then you could do it via perl or python, too. This same approach will work with CDF, HDF or other self-describing structures/ Patrick Joeckel <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 12/14/2001 05:13:35 AM Please respond to [email protected] Sent by: [EMAIL PROTECTED] To: [email protected] cc: [email protected] Subject: [opendx-users] module with string list output Dear openDX experts, I would like to write a module which scans a netCDF file and returns the names of the netCDF variables as a string list. I started with the dx -builder, however "string" or "string lists" is not an option for the output of a module. Why is that, and is there a way around? Any helpful comments are appreciated ... Yours, Patrick Joeckel -- --------------------------------------------------------------- Dr. Patrick Joeckel Max Planck Institute for Chemistry Joh.-J. Becher Weg 27 55128 Mainz phone:++49-6131-305452 Germany fax :++49-6131-305436 e-mail:[EMAIL PROTECTED] http://www.mpch-mainz.mpg.de/~joeckel --------------------------------------------------------------- Never trust an operating system you don't have sources for.
