source:
trunk/SRC/ReadWrite/idl-NetCDF/ncdf_listvars.pro
@
114
Last change on this file since 114 was 114, checked in by smasson, 18 years ago | |
---|---|
|
|
File size: 201 bytes |
Line | |
---|---|
1 | FUNCTION ncdf_listvars,ncid |
2 | ; |
3 | compile_opt idl2, strictarrsubs |
4 | ; |
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.