Re: How to get all metadata

Hi Radovan,

If I understand your question correctly, I have been thinking about this issue recently.

Some types of metadata are built in to the system. Units, coordinate systems and error estimate propagation are all part of the VisAD Data model. However, I suspect what you mean by "metadata" is the auxiliary information (other than pixel data) embedded within a file. Unfortunately, support for reading this type of information is not fully implemented (although the VisAD API supports it).

There are two ways VisAD can handle file metadata:

1) Sometimes the file form adapter includes relevant metadata as part of the data object. You can determine whether this is happening in the VisAD SpreadSheet by bringing up the Edit Mappings dialog, and taking a look at the MathType. If it is big and complex, chances are that it represents a large tuple containing both pixel data and various metadata parameters. I believe (although I am not certain) that the netCDF Plain form behaves this way. Unfortunately, I don't think the FITS form does.

2) To generalize the file metadata concept, I recently created an optional interface for VisAD file form adapters: It allows the file form to provide a Hashtable containing all metadata extracted from the file, represented as key/value pairs. (Of course, what this metadata is completely depends on the file format.) I have implemented MetadataReader for the file form adapters in, but most other file forms do not yet support it. Whether it gets implemented for other formats will depend on user interest and VisAD developers' time availability.


Radovan Stas wrote:

Sorry for newbie question, but i dont know how to get all metada from data objects. I want to get metadata from for example FITS files - TELESCOP, CCD-TEMP, OBSERVER .... . I am able to get data from *SScell. Please send me a simple example of how to list all metadata from data objects.
                        Radovan Stas
                        radoone at szm dot sk

  • 2004 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: