

def time_stats(self, start, end, type, **kwargs):
    ' Returns a dictionary of discrete time statistics (count, standard deviation, average, median, maximum,\n        minimum, min time, and max time depending on user specified type) of a time series for a specified range of time\n        at user specified location. Users must specify at least one geographic search parameter (\'stid\', \'state\',\n        \'country\', \'county\', \'radius\', \'bbox\', \'cwa\', \'nwsfirezone\', \'gacc\', or \'subgacc\') to obtain observation data.\n        Other parameters may also be included. See below mandatory and optional parameters. Also see the metadata()\n        function for station IDs.\n\n        Arguments:\n        ----------\n        type: string, mandatory\n            Describes what statistical values will be returned. Can be one of the following values:\n            "avg"/"average"/"mean", "max"/"maximum", "min"/"minimum", "stdev"/"standarddeviation"/"std", "median"/"med",\n            "count", or "all". "All" will return all of the statistics.\n        start: string, optional\n            Start date in form of YYYYMMDDhhmm. MUST BE USED WITH THE END PARAMETER. Default time is UTC\n            e.g. start=201506011800.\n        end: string, optional\n            End date in form of YYYYMMDDhhmm. MUST BE USED WITH THE START PARAMETER. Default time is UTC\n            e.g. end=201506011800.\n        obtimezone: string, optional\n            Set to either UTC or local. Sets timezone of obs. Default is UTC. e.g. obtimezone=\'local\'\n        showemptystations: string, optional\n            Set to \'1\' to show stations even if no obs exist that match the time period. Stations without obs are\n            omitted by default.\n        stid: string, optional\n            Single or comma separated list of MesoWest station IDs. e.g. stid=\'kden,kslc,wbb\'\n        county: string, optional\n            County/parish/borough (US/Canada only), full name e.g. county=\'Larimer\'\n        state: string, optional\n            US state, 2-letter ID e.g. state=\'CO\'\n        country: string, optional\n            Single or comma separated list of abbreviated 2 or 3 character countries e.g. country=\'us,ca,mx\'\n        radius: list, optional\n            Distance from a lat/lon pt or stid as [lat,lon,radius (mi)] or [stid, radius (mi)]. e.g. radius="-120,40,20"\n        bbox: string, optional\n            Stations within a [lon/lat] box in the order [lonmin,latmin,lonmax,latmax] e.g. bbox="-120,40,-119,41"\n        cwa: string, optional\n            NWS county warning area. See http://www.nws.noaa.gov/organization.php for CWA list. e.g. cwa=\'LOX\'\n        nwsfirezone: string, optional\n            NWS fire zones. See http://www.nws.noaa.gov/geodata/catalog/wsom/html/firezone.htm for a shapefile\n            containing the full list of zones. e.g. nwsfirezone=\'LOX241\'\n        gacc: string, optional\n            Name of Geographic Area Coordination Center e.g. gacc=\'EBCC\' See http://gacc.nifc.gov/ for a list of GACCs.\n        subgacc: string, optional\n            Name of Sub GACC e.g. subgacc=\'EB07\'\n        vars: string, optional\n            Single or comma separated list of sensor variables. Will return all stations that match one of provided\n            variables. Useful for filtering all stations that sense only certain vars. Do not request vars twice in\n            the query. e.g. vars=\'wind_speed,pressure\' Use the variables function to see a list of sensor vars.\n        units: string, optional\n            String or set of strings and pipes separated by commas. Default is metric units. Set units=\'ENGLISH\' for\n            FREEDOM UNITS ;) Valid  other combinations are as follows: temp|C, temp|F, temp|K; speed|mps, speed|mph,\n            speed|kph, speed|kts; pres|pa, pres|mb; height|m, height|ft; precip|mm, precip|cm, precip|in; alti|pa,\n            alti|inhg. e.g. units=\'temp|F,speed|kph,metric\'\n        groupby: string, optional\n            Results can be grouped by key words: state, county, country, cwa, nwszone, mwsfirezone, gacc, subgacc\n            e.g. groupby=\'state\'\n        timeformat: string, optional\n            A python format string for returning customized date-time groups for observation times. Can include\n            characters. e.g. timeformat=\'%m/%d/%Y at %H:%M\'\n\n        Returns:\n        --------\n            Dictionary of discrete time statistics.\n\n        Raises:\n        -------\n            None.\n\n        '
    self._check_geo_param(kwargs)
    kwargs['type'] = type
    kwargs['start'] = type
    kwargs['end'] = end
    kwargs['token'] = self.token
    return self._get_response('stations/statistics', kwargs)

dataset/ETHPy150Open mesowx/MesoPy/MesoPy.py Meso.time_stats/VarMisuse@40/1717 `start`->`type`