source:
trunk/SRC/ReadWrite/idl-NetCDF/ncdf_listvars.pro
@
134
Last change on this file since 134 was 134, checked in by navarro, 18 years ago | |
---|---|
|
|
File size: 201 bytes |
Rev | Line | |
---|---|---|
[67] | 1 | FUNCTION ncdf_listvars,ncid |
[114] | 2 | ; |
3 | compile_opt idl2, strictarrsubs | |
4 | ; | |
[67] | 5 | |
6 | n=(ncdf_inquire(ncid)).nvars | |
7 | ||
8 | names=strarr(n) | |
9 | ||
10 | for i=0,n-1 do begin | |
11 | names[i]=(ncdf_varinq(ncid,i)).name | |
12 | endfor | |
13 | ||
14 | return,names | |
15 | ||
16 | end |
Note: See TracBrowser
for help on using the repository browser.