Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Hi, I'm currently trying to write some simple user functions and custom file input routines under ENVI 2.7 on a PC (NT). I'm not sure if this is the correct newsgroup (couldn't find an ENVI one!). If so, does anyone have any experience of this type of thing? I've managed to read in some data correctly, but I haven't been able to find out how to apply specific user routines to my data. Mark Buckley Rutherford Appleton Laboratory mark.buckley@rl.ac.uk
Mark Buckley <mab@rl.ac.uk> wrote: > I'm currently trying to write some simple user functions and custom file > input routines under ENVI 2.7 on a PC (NT). I'm not sure if this is the > correct newsgroup (couldn't find an ENVI one!). If so, does anyone have any > experience of this type of thing? I've managed to read in some data > correctly, but I haven't been able to find out how to apply specific user > routines to my data. I guess you've come to the right place, even though there's scarcely ever a mention of ENVI in this group. You didn't mention whether you have much experience with IDL. If you are familiar with IDL widget programming then you should find it quite easy to program an ENVI user function that blends OK with ENVI. Apart from using a handful of core ENVI routines (and following a couple of other small steps) it's really up to you to do your thing in IDL. (ENVI has a lot of support routines including compound widgets and such, but you can get away with using a fairly small subset.) But if you are new to IDL programming then you should really get into IDL first. Check out David Fanning's web page (http://www.dfanning.com) for the excellent resources and services he offers. Assuming you know IDL... I'd recommend that you get the current version of ENVI - 3. The documentation on programming user functions has improved. There's even a little tutorial on it. And there are several examples in ENVI's LIB directory. In my opinion the first ENVI routines you should get to know are ENVI_SELECT, ENVI_FILE_QUERY, MAGIC_MEM_CHECK, ENVI_INIT_TILE, ENVI_GET_TILE, ENVI_TILE_DONE, ENVI_ENTER_DATA and ENVI_SETUP_HEAD (to work with ENVI's "available bands list", etc, rather than doing independent file handling). Also learn how to add your functions to ENVI's menu (dead simple). I haven't done a great deal of ENVI programming (just a couple of routines, actually), but feel free to emai> <input type= -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/ Now offering spam-free web-based newsreading