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

Re: I have the craziest idea...



tbowers wrote:
> 
> I've written a widget program that I've tried to design as a general data
> import interface.

Cool.

<snip>

> Feedback would be appreciated.

Your snippet of code under the EXAMPLE: heading scared me away. I would pare it down to:

;  sImported = ngDataImporter()
;
;  ;//Let's say the data imported was a US ARMY GMS 3D grid file
;  IDL> help, sImported, /STRUCT
;  ** Structure <1354308>, 13 tags, length=2022472, refs=1:
;     DATA            DOUBLE    Array[101, 61, 41]
;     XDATA           DOUBLE    Array[101]
;     YDATA           DOUBLE    Array[61]
;     ZDATA           DOUBLE    Array[41]
;     TDATA           BYTE         0
;     ANCILLARYDATA   BYTE         0
;     DATANAME        STRING    'c532(1/m)'
;     FILENAME        STRING    Array[1]
;     DATACLASS       STRING    'SCAL_GRID_3S0T'
;     DATATYPE        STRING    'USA_GMS3DG'
;     POLYLINES       BYTE         0
;     ERROR           BYTE         0
;     CANCEL          BYTE         0

So how would you enable it to read netCDF and HDF data files and all their associated
attributes? Would that be a simple addition? I have a netCDF reader function, that returns
data in a structure sorta like your, to plug in if you'd like to try it. I'm sure others
out there have similar for HDF. 

paulv

-- 
Paul van Delst           A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP        Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274  There shallow draughts intoxicate the brain,
Fax:(301)763-8545        And drinking largely sobers us again.
pvandelst@ncep.noaa.gov                   Alexander Pope.