; IDL-OPENDAP interface. ; Copyright (c) 2006 OPeNDAP, Inc. ; Author: Patrick West UCAR/HAO ; ; Based on IDL-DODS Written by Daniel J. Carr - Research Systems, Inc. ; ; This is free software; you can redistribute it and/or ; modify it under the terms of the GNU Lesser General Public ; License as published by the Free Software Foundation; either ; version 2.1 of the License, or (at your option) any later version. ; ; This library is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ; Lesser General Public License for more details. ; ; You should have received a copy of the GNU Lesser General Public ; License along with this library; if not, write to the Free Software ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ; ; You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112. PRO opendap_handle_attribute, opendap_attr, attr_name, attr ;{ OPENDAP_GET_ATTRIBUTE_INFO, attr, attr_name, attr_type, n_values OPENDAP_FIX_NAME, attr_name OPENDAP_GET_ATTRIBUTE_VALUE, attr, attr_type, 0ul, attr_val opendap_attr = attr_val FOR i_n_values = 1ul, n_values-1 DO BEGIN ;{ OPENDAP_GET_ATTRIBUTE_VALUE, attr, attr_type, i_n_values, attr_val opendap_attr = [opendap_attr,attr_val] ENDFOR ;} ;} END