easyclimate.core.utility

easyclimate.core.utility#

Functions for package utility.

Functions

assert_compared_version(ver1, ver2)

Compare python library versions.

compare_multi_dataarray_coordinate(...[, ...])

Compare multi-DataArray data whether they have the same dimensions (without comparing internal data)

compare_two_dataarray_coordinate(...[, ...])

Compare two DataArray data whether they have the same dimensions (without comparing internal data)

dequantify_metpy_xarraydata(data)

Return a new DataArray with the data as magnitude and the units as an attribute (Metpy).

find_dims_axis(data, dim)

Find the index of dim in the xarray DataArray.

generate_datanode_dispatcher(func)

Function Dispensers: Iterate over the variables in the xarray.Dataset data using a function that only supports xarray.DataArray data

generate_dataset_dispatcher(func)

Function Dispensers: Iterate over the variables in the xarray.Dataset data using a function that only supports xarray.DataArray data

generate_datatree_dispatcher(func)

Function Dispensers: Iterate over the variables in the xarray.Dataset data using a function that only supports xarray.DataArray data

get_compress_xarraydata(data, complevel)

Export compressible netCDF files from xarray data (xarray.DataArray, xarray.Dataset)

get_weighted_spatial_data(data_input[, ...])

Get the area-weighting data.

module_available(module)

Checks whether a module is installed without importing it.

reverse_bool_xarraydata(data_input)

Reverse the bool type in the data_input.

sort_ascending_latlon_coordinates(data[, ...])

Sort the dimensions lat, lon in ascending order.

split_datetime2yearday(ds)

Convert np.datetime64 type with years and days to year and day coordinates.

transfer_dFdp2dFdz(dFdp_data[, rho_d, g])

The transformation relationship between the z coordinate system and the p coordinate system.

transfer_data_difference_units(input_data, ...)

Data unit conversion for difference transition.

transfer_data_multiple_units(input_data, ...)

Data unit conversion for multiple transition.

transfer_deg2rad(ds)

Convert Degrees to Radians.

transfer_inf2nan(ds)

Convert np.inf in ds to np.nan, respectively.

transfer_int2datetime(data)

Convert a numpy array of years of type integer to np.datetime64 type.

transfer_nan2value(ds, value)

Convert np.inf in ds to np.nan, respectively.

transfer_units_coeff(input_units, output_units)

Unit conversion factor

transfer_xarray_lon_from180TO360(data, ...)

transfer_xarray_lon_from360TO180(data, ...)