Earth2Studio is now OSS!

earth2studio.data.Random#

class earth2studio.data.Random(domain_coords)[source]#

A randomly generated normally distributed data. Primarily useful for testing.

Parameters:

domain_coords (OrderedDict[str, np.ndarray]) – Domain coordinates that the random data will assume (such as lat, lon).

__call__(time, variable)[source]#

Retrieve random gaussian data.

Parameters:
  • time (datetime | list[datetime] | TimeArray) – Timestamps to return data for.

  • variable (str | list[str] | VariableArray) – Strings or list of strings that refer to variables to return.

Returns:

Random data array

Return type:

xr.DataArray