ILAMB.Regions.Regions

class ILAMB.Regions.Regions[source]

A class for unifying the treatment of regions in ILAMB.

This class holds a list of all regions currently registered in the ILAMB system via a static property of the class. It also comes with methods for defining additional regions by lat/lon bounds or by a mask specified by a netCDF4 file. A set of regions used in the Global Fire Emissions Database (GFED) is included by default.

Regions.addRegionLatLonBounds(label, name, …)

Add a region by lat/lon bounds.

Regions.addRegionNetCDF4(filename)

Add regions found in a netCDF4 file.

Regions.getMask(label, var)

Given the region label and a ILAMB.Variable, return a mask appropriate for that variable.

Regions.getRegionName(label)

Given the region label, return the full name.

Regions.getRegionSource(label)

Given the region label, return the source.

Regions.hasData(label, var)

Checks if the ILAMB.Variable has data on the given region.

Regions.regions

Returns a list of region identifiers.