SIM2_tools#
Under progress…
Function under development
Created on Fri Apr 5 18:08:57 2024
@author: Alexandre Kenshilik Coche @contact: alexandre.co@hotmail.fr
Based on the work of Ronan Abhervé and Loic Duffar (loicduffar)
- SIM2_tools.folder_to_netcdf(folder)[source]#
Parameters#
- folderstr
Folder containing the .csv files.
Returns#
None. Creates the .nc files in the folder ‘netcdf’
- SIM2_tools.plot_map(var, *, file_folder=None, mode='sum', timemode='annual')[source]#
Generates interactive maps from SIM2 data (html).
Example#
import SIM2_tools as smt
smt.plot_map(‘PRETOT’, mode = “sum”, timemode = ‘annual’)
- for timemode in [‘JJA’, ‘SON’, ‘DJF’, ‘MAM’]:
smt.plot_map(‘SWI’, mode = “mean”, timemode = timemode, file_folder = folder)
Parameters#
- varstr
- SIM2 variables:
‘ETP’ | ‘EVAP’ | ‘PRELIQ’ | ‘PRENEI’ | ‘PRETOT’ | ‘DRAINC’ | ‘RUNC’ | ‘T’ | ‘TINF_H’ | ‘TSUP_H’ | ‘WG_RACINE’ | ‘WGI_RACINE’ | ‘SWI’ …
- modestr, optional
‘sum’ | ‘min’ | ‘max’ | ‘mean’ | ‘ratio’ | ‘ratio_precip’ | ‘mean_cumdiff’ | ‘sum_cumdiff’ | ‘min_cumdiff’ | ‘max_cumdiff’ ‘mean_cumdiff_ratio’ | ‘sum_cumdiff_ratio’ ‘mean_deficit’ | ‘sum_deficit’ The default is “sum”.
- timemodestr, optional
‘annual’ | ‘ONDJFM’ | ‘AMJJAS’ | ‘DJF’ | ‘MAM’ | ‘JJA’ | ‘SON’. The default is ‘annual’.
Returns#
None. Creates the html maps.