lulc

Functions that convert different landuse classifications into the ETLook variables land_mask, lue_max, rs_min and z_obst_max.

lulc_to_x(ds, var, convertor, in_var=None, out_var=None)

Convert values in a classified map to other values based on a dictionary.

Parameters
  • ds (xr.Dataset) – Dataset containing var.

  • var (str) – Variable name.

  • convertor (dict) – Dictionary with keys corresponding to values in var and values the replacements.

  • in_var (str, optional) – Overwrites var, by default None.

  • out_var (str, optional) – New variable name in case var should not be overwritten, by default None.

Returns

Dataset with the replaced values.

Return type

xr.Dataset

wapor_to_land_mask()

Generate a converter dictionary to be used by lulc.lulc_to_x to convert from WaPOR-lulc to the ETlook land_mask.

Returns

Describes the conversions to be made.

Return type

dict

wapor_to_lue_max()

Generate a converter dictionary to be used by lulc.lulc_to_x to convert from WaPOR-lulc to the ETlook lue_max.

Returns

Describes the conversions to be made.

Return type

dict

wapor_to_rs_min()

Generate a converter dictionary to be used by lulc.lulc_to_x to convert from WaPOR-lulc to the ETlook rs_min.

Returns

Describes the conversions to be made.

Return type

dict

wapor_to_z_obst_max()

Generate a converter dictionary to be used by lulc.lulc_to_x to convert from WaPOR-lulc to the ETlook z_obst_max.

Returns

Describes the conversions to be made.

Return type

dict

globcover_to_land_mask()

Generate a converter dictionary to be used by lulc.lulc_to_x to convert from GLOBCOVER-lulc to the ETlook land_mask.

Returns

Describes the conversions to be made.

Return type

dict

globcover_to_lue_max()

Generate a converter dictionary to be used by lulc.lulc_to_x to convert from GLOBCOVER-lulc to the ETlook lue_max.

Returns

Describes the conversions to be made.

Return type

dict

globcover_to_rs_min()

Generate a converter dictionary to be used by lulc.lulc_to_x to convert from GLOBCOVER-lulc to the ETlook rs_min.

Returns

Describes the conversions to be made.

Return type

dict

globcover_to_z_obst_max()

Generate a converter dictionary to be used by lulc.lulc_to_x to convert from GLOBCOVER-lulc to the ETlook z_obst_max.

Returns

Describes the conversions to be made.

Return type

dict