mesmer.io.load_constant_files.load_regs_ls_wgt_lon_lat¶
- mesmer.io.load_constant_files.load_regs_ls_wgt_lon_lat(reg_type, lon, lat)¶
Load constant files.
- Parameters
reg_type (str) – region type (“ar6.land”, “countries”, “srex”)
lon (dict) – longitude dictionary with key
[“c”] (1d array with longitudes at center of grid cell)
lat (dict) – latitude dictionary with key
[“c”] (1d array with latitudes at center of grid cell)
- Returns
reg_dict (dict) – region dictionary with keys
[“type”] (region type)
[“abbrevs”] (abbreviations for regions)
[“names”] (full names of regions)
[“grids”] (3d array (region, lat, lon) of subsampled region fraction)
[“grid_b”] (2d array (lat, lon) of regions with each grid point being assigned to a single region (“binary” grid))
[“full”] (full Region object (for plotting region outlines))
ls (dict) – land-sea dictionary with keys
[“grid_raw”] (2d array (lat, lon) of subsampled land fraction)
[“grid_no_ANT”] (grid_raw with Antarctica removed)
wgt (np.ndarray) – 2d array (lat,lon) of weights to be used for area weighted means
lon (dict) – longitude dictionary with added keys
[“e”] (1d array with longitudes at edges of grid cells)
[“grid”] (2d array (lat,lon) of longitudes)
lat (dict) – latitude dictionary with added keys
[“e”] (1d array with latitudes at edges of grid cells)
[“grid”] (2d array (lat,lon) of latitudes)
Notes
If additional region types are added in this function, mesmer.utils.select.extract_land() needs to be adapted too