standardize_sim2#

standardize_sim2.standardize_sim2(data, var_list=None, output_path=None, output_prefix='SIM2', low_memory=False, target_crs=4326)[source]#

Standardize SIM2 reanalysis data.

Parameters#

datastr, pathlib.Path, pd.DataFrame, or xr.Dataset

Input data (directory of CSVs, single CSV, DataFrame, or Dataset).

var_listlist of str, optional

Variables to standardize.

output_pathbool, str, pathlib.Path, or None

Output control (False = memory only, None = next to input, path = there).

output_prefixstr

Filename prefix. Default ‘SIM2’.

low_memorybool

Process files one at a time.

target_crsint, str, or None, default 4326

Output CRS (EPSG code or any rioxarray-accepted spec). Default WGS84 so SIM2 lines up with ERA5-Land and other lat/lon datasets. Pass 27572 to keep the SIM2 native Lambert II étendu grid, or None to disable reprojection entirely.

Returns#

xr.Dataset

Standardized dataset.