UrlsToList Method

Creates and populates a table of climate index values parsed from NOAA ESRL climate index time series data downloaded from a list of URLs.

Class:ESRLClimateIndices
Intended use:Recommended for external callers
COM:Exposed as the UrlsToList method of COM class GeoEco.ESRLClimateIndices
ArcGIS:Not exposed as an ArcGIS geoprocessing tool
Method type:Classmethod

Usage

table, noDataValues, comments = ESRLClimateIndices.UrlsToList(urls[, setNoDataValuesToNone])

Arguments

urls
Python type:list of unicode
Minimum length:1

List of URLs to text files containing climate index data in ERSL PSD time series format.

http://www.cdc.noaa.gov/ClimateIndices/List/ contains a large table that lists the available climate index data produced by ERSL. The left column contains hyperlinks to the datasets and the right column contains the descriptions of the datasets. Find the datasets you are interested in, extract the URLs from the hyperlinks, and provide them to this tool.

For example, if you are interested in the Oceanic Nino Index (ONI), scroll down the table until you reach ONI in the left column. Click on the ONI hyperlink to bring up the page http://www.cdc.noaa.gov/Correlation/oni.data. Copy/paste that URL from your browser.

setNoDataValuesToNone
Python type:bool
Default value:True

If True, the returned table will contain a Python None (NULL in other languages) wherever the original data has a missing_value. If False, the table will contain the missing_value as it appears in the original data.

Returns

table
Python type:list of list of object
Minimum length:0

Table of index values parsed from the input data, represented as a list of lists. The outer list contains the rows of the table. Each inner list contains the field values for a row.

There are at least two fields:

There will be one Value field for each climate index that you provide as input. For example, if you provide three climate indices, a table with four fields will be returned:

[[datetime.datetime(1948, 1, 1, 0, 0), 2.5, None, 1.0],
 [datetime.datetime(1948, 2, 1, 0, 0), 1.5, None, -2.0],
 [datetime.datetime(1948, 3, 1, 0, 0), 2.75, -8.0, 3.0],
 ...]

The rows will be ordered in ascending date order and all 12 months will be included for every year. If these months occur in the future they will have the missing_value (or None). If the occur prior to the first month for which data are available, as shown in the example above for the second climate index, they will also have the missing_value (or None).

noDataValues
Python type:list of float or None
Minimum length:1

List of values that mean "no data is available" in the value fields of the returned table. Each item in this list corresponds to one of the climate indices you provide as input. If setNoDataValuesToNone is False, the list items will be the missing_values parsed from the input data. If True, the list items will all be Python None (NULL in other languages).

comments
Python type:list of unicode
Minimum length:1

List of comments parsed from the input data. Each item in this list corresponds to one of the climate indices you provide as input. If no comment was present in the input data for an index, an empty string will be stored for it in the list.