-
foxes.input.states.NEWAStates(input_files_nc, time_coord=
'time', west_east_coord='west_east', south_north_coord='south_north', height_coord='height', xlat_coord='XLAT', xlon_coord='XLON', output_vars=None, var2ncvar=None, load_mode='fly', time_format=None, interp_pars={}, wrf_point_plot=None, **kwargs)[source] Constructor.
Parameters¶
- input_files_nc: str
The input netcdf file(s), can contain wildcards, e.g. ‘wrfout_2025*.nc’
- time_coord: str
The time coordinate name in the data
- west_east_coord: str
The west-east coordinate name in the data
- south_north_coord: str
The south-north coordinate name in the data
- height_coord: str, optional
The height coordinate name in the data
- xlat_coord: str
The latitude coordinate name in the data
- xlon_coord: str
The longitude coordinate name in the data
- output_vars: list of str, optional
The output variables to load, if None, the default variables are loaded (FV.WS, FV.WD, FV.TI, FV.RHO)
- var2ncvar: dict, optional
A dictionary mapping foxes variable names to the corresponding netcdf variable names.
- load_mode: str
The load mode, choices: preload, lazy, fly. preload loads all data during initialization, lazy lazy-loads the data using dask, and fly reads only states index and weights during initialization and then opens the relevant files again within the chunk calculations.
- time_format: str
The datetime parsing format string
- interp_pars: dict, optional
Additional parameters for scipy.interpolate.griddata, e.g. {‘method’: ‘linear’, ‘fill_value’: None, ‘rescale’: True}
- wrf_point_plot: str, optional
Path to a plot file, e.g. wrf_points.png, to visualize the selected WRF grid points and the layout of the farm.
- kwargs: dict, optional
Additional parameters for the base class