Download the .m file and save it to a directory in the MATLAB path, then start MATLAB and run it using the syntax: [data,msg] = knb_lter_XX_YY(pn,cachedata,username,password,entities)
Where: knb_lter_XX_YY is the function m-file name derived from the packageID of the dataset (e.g. knb_lter_knz_95_5) pn = file system path for saving temporary files (default = pwd) cachedata = option to use cached entity files if they exist in pn (0 = no/default, 1 = yes) username = username for HTTPS authentication (default = for anonymous) password = password for HTTPS authentication (default = for anonymous) entities = cell array of entities to retrieve (default = for all) data = structure containing fields for parsed metadata and data arrays msg = text of any error messages ( for no errors)
Note that username and password are only required for data tables where authenticated access is required, and the cURL executable must be present in the MATLAB path (see http://curl.haxx.se/).
Copyright 2017 Environmental Data Initiative.
This material is based upon work supported by the National Science Foundation under grants
#1565103 and #1629233. Any opinions, findings, conclusions, or recommendations
expressed in the material are those of the author(s) and do not necessarily reflect the views of
the National Science Foundation. Please
with questions, comments, or for technical assistance regarding this web site or the
Environmental Data Initiative.
EDI is proud to be affiliated with the following organizations: