[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I have the craziest idea...
- Subject: Re: I have the craziest idea...
- From: Paul van Delst <pvandelst(at)ncep.noaa.gov>
- Date: Wed, 14 Feb 2001 15:27:51 -0500
- Newsgroups: comp.lang.idl-pvwave
- Organization: CIMSS @ NOAA/NCEP
- References: <email@example.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:23532
> I've written a widget program that I've tried to design as a general data
> import interface.
> 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
; YDATA DOUBLE Array
; ZDATA DOUBLE Array
; TDATA BYTE 0
; ANCILLARYDATA BYTE 0
; DATANAME STRING 'c532(1/m)'
; FILENAME STRING Array
; 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.
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.
firstname.lastname@example.org Alexander Pope.