[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: <96ema1$r1h$1@ra.nrl.navy.mil>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:23532
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.