get_instrument_data#

neonutilities.api.get_instrument_data(product, site, start=None, end=None, tmi=None, outdir=None)[source]#

Get NEON instrumented systems (IS) data files. This includes data from the eddy covariance (EC) tower and the sensor-based soil plots.

Parameters:
  • product (str) – The data product code (eg. ‘DP1.00024.001’)

  • site (str) – The 4-digit NEON site code (eg. ‘HARV’, ‘WERF’)

  • start (str) – Start date in YYYY-MM format (e.g. ‘2019-01’) Downloads entire month worth of data. Use with end parameter to download data from a range

  • end (str, optional) – End date in YYYY-MM format (e.g. ‘2020-12’) Used in conjunction with start parameter to download a range of available data

  • tmi (int) – Temporal index (tmi)for instrument data (e.g. 1 for minute observations, 30 for 30 min, observations, etc.)

  • outdir (str, optional) – Output directory for downloaded data. If left empty, data will not be saved.

Returns:

Returns a Pandas DataFrame of all monthly data merged

Return type:

DataFrame

Examples

>>> import neonutilities as nu
>>> par_data = nu.api.get_instrument_data("DP1.00024.001", "HARV",
>>>                                       start="2020-01", end="2020-12", tmi = 30, outdir = "./NEON_PAR_HARV")