utils
aquacrop.utils.data
get_data(filename, **kwargs)
get selected data file
Source code in aquacrop/utils/data.py
25 26 27 28 29 30 31 |
|
get_filepath(filename)
get selected data file
Source code in aquacrop/utils/data.py
16 17 18 19 20 21 22 |
|
list_data()
lists all built-in data files
Source code in aquacrop/utils/data.py
7 8 9 10 11 12 13 |
|
aquacrop.utils.lars
AquaCropModel
This is the main class of the AquaCrop-OSPy model. It is in charge of executing all the operations.
Parameters:
sim_start_time (str): YYYY/MM/DD, Simulation start date
sim_end_time (str): date YYYY/MM/DD, Simulation end date
weather_df: daily weather data , created using prepare_weather
soil: Soil object contains paramaters and variables of the soil
used in the simulation
crop: Crop object contains Paramaters and variables of the crop used
in the simulation
initial_water_content: Defines water content at start of simulation
irrigation_management: Defines irrigation strategy
field_management: Defines field management options
fallow_field_management: Defines field management options during fallow period
groundwater: Stores information on water table parameters
co2_concentration: Defines CO2 concentrations
off_season: (True) simulate off-season or (False) skip ahead to start of
next growing season
Source code in aquacrop/core.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 |
|
sim_end_time: str
property
writable
Return sim end date
sim_start_time: str
property
writable
Return sim start date
weather_df: DataFrame
property
writable
Return weather dataframe
get_additional_information()
Additional model information.
Returns:
Name | Type | Description |
---|---|---|
dict |
Dict[str, Union[bool, float]]
|
{has_model_finished,execution_time} |
Source code in aquacrop/core.py
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 |
|
get_crop_growth()
Return crop growth results
Source code in aquacrop/core.py
417 418 419 420 421 422 423 424 425 426 427 |
|
get_simulation_results()
Return all the simulation results
Source code in aquacrop/core.py
378 379 380 381 382 383 384 385 386 387 388 389 390 391 |
|
get_water_flux()
Return water flux results
Source code in aquacrop/core.py
405 406 407 408 409 410 411 412 413 414 415 |
|
get_water_storage()
Return water storage in soil results
Source code in aquacrop/core.py
393 394 395 396 397 398 399 400 401 402 403 |
|
run_model(num_steps=1, till_termination=False, initialize_model=True, process_outputs=False)
This function is responsible for executing the model.
Arguments:
num_steps: Number of steps (Days) to be executed.
till_termination: Run the simulation to completion
initialize_model: Whether to initialize the model (i.e., go back to beginning of season)
process_outputs: process outputs into dataframe before simulation is finished
Returns:
Type | Description |
---|---|
bool
|
True if finished |
Source code in aquacrop/core.py
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
|
CO2
Bases: object
Attributes:
ref_concentration (float): reference CO2 concentration
current_concentration (float): current CO2 concentration (initialize if constant_conc=True)
constant_conc (bool): use constant conc every season
co2_data (DataFrame): CO2 timeseries (2 columns: 'year' and 'ppm')
Source code in aquacrop/entities/co2.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
FieldMngt
Field Management Class containing mulches and bunds parameters
Attributes:
mulches (bool): Soil surface covered by mulches (yield_ or N)
bunds (bool): Surface bunds present (yield_ or N)
curve_number_adj (bool): Field conditions affect curve number (yield_ or N)
sr_inhb (bool): Management practices fully inhibit surface runoff (yield_ or N)
mulch_pct (float): Area of soil surface covered by mulches (%)
f_mulch (float): Soil evaporation adjustment factor due to effect of mulches
z_bund (float): Bund height, user specifies in (m) but immediately converted to (mm) on initialisation for coherent calculations
bund_water (float): Initial water height in surface bunds (mm)
curve_number_adj_pct (float): Percentage change in curve number (positive or negative)
Source code in aquacrop/entities/fieldManagement.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|
GroundWater
Ground Water Class stores information on water table params
Attributes:
water_table (str): Water table considered (Y or N)
method (str): Water table input data ('Constant' or 'Variable')
dates (list): water table observation dates
values (list): water table observation depths
Source code in aquacrop/entities/groundWater.py
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
IrrigationManagement
IrrigationManagement Class defines irrigation strategy
Attributes:
irrigation_method (int): Irrigation method {0: rainfed, 1: soil moisture targets, 2: set time interval,
3: predifined schedule, 4: net irrigation, 5: constant depth }
WetSurf (int): Soil surface wetted by irrigation (%)
AppEff (int): Irrigation application efficiency (%)
MaxIrr (float): Maximum depth (mm) that can be applied each day
SMT (list): Soil moisture targets (%taw) to maintain in each growth stage (only used if irrigation method is equal to 1)
IrrInterval (int): Irrigation interval in days (only used if irrigation method is equal to 2)
Schedule (pandas.DataFrame): DataFrame containing dates and depths
NetIrrSMT (float): Net irrigation threshold moisture level (% of taw that will be maintained, for irrigation_method=4)
Depth (float): constant depth to apply on each day (mm)
Source code in aquacrop/entities/irrigationManagement.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
Output
Class to hold output data
During Simulation these are numpy arrays and are converted to pandas dataframes at the end of the simulation
Atributes:
water_flux (pandas.DataFrame, numpy.array): Daily water flux changes
water_storage (pandas.DataFrame, numpy array): daily water content of each soil compartment
crop_growth (pandas.DataFrame, numpy array): daily crop growth variables
final_stats (pandas.DataFrame, numpy array): final stats at end of each season
Source code in aquacrop/entities/output.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
check_iwc_soil_match(iwc_layers, soil_layers)
This function checks if the number of soil layers is equivalent between the user-specified soil profile and initial water content.
Return
boolean: True if number of layers match
Source code in aquacrop/core.py
450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 |
|
check_model_is_finished(step_end_time, simulation_end_date, model_is_finished, season_counter, n_seasons, harvest_flag)
Function to check and declare model termination
Arguments:
step_end_time (str): date of next step
simulation_end_date (str): date of end of simulation
model_is_finished (bool): is model finished
season_counter (int): tracking the number of seasons simulated
n_seasons (int): total number of seasons being simulated
harvest_flag (bool): Has crop been harvested
Returns:
model_is_finished (bool): is simulation finished
Source code in aquacrop/timestep/check_if_model_is_finished.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
compile_all_AOT_files()
Numba AOT compile functions to improve speed
Source code in aquacrop/scripts/checkIfPackageIsCompiled.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
compute_variables(param_struct, weather_df, clock_struct, acfp=dirname(dirname(abspath(__file__))))
Function to compute additional variables needed to run the model eg. CO2 Creates cropstruct jit class objects
Arguments:
param_struct (ParamStruct): Contains model paramaters
weather_df (DataFrame): weather data
clock_struct (ClockStruct): time params
acfp (Path): path to aquacrop directory containing co2 data
Returns:
param_struct (ParamStruct): updated model params
Source code in aquacrop/initialize/compute_variables.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
|
create_soil_profile(param_struct)
funciton to create soil profile namedTuple to store soil info. Its much faster to access the info when its in a namedTuple compared to a dataframe
Arguments:
param_struct (ParamStruct): Contains model crop and soil paramaters
Returns:
param_struct (ParamStruct): updated with soil profile
Source code in aquacrop/initialize/create_soil_profile.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
outputs_when_model_is_finished(model_is_finished, flux_output, water_output, growth_outputs, steps_are_finished)
Function that turns numpy array outputs into pandas dataframes
Arguments:
model_is_finished (bool): is model finished
flux_output (numpy.array): water flux_output
water_output (numpy.array): water storage in each compartment
growth_outputs (numpy.array): crop growth variables
n_seasons (int): total number of seasons being simulated
steps_are_finished (bool): have the simulated num_steps finished
Returns:
flux_output (pandas.DataFrame): water flux_output
water_output (pandas.DataFrame): water storage in each compartment
growth_outputs (pandas.DataFrame): crop growth variables
Source code in aquacrop/timestep/outputs_when_model_is_finished.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
|
prepare_lars_weather(file, year, generated=True, order=['year', 'jday', 'minTemp', 'maxTemp', 'precip', 'rad'], wind_speed=3.4)
Uses FAO-PM to calculate reference evapotranspiration for LARS generated and baseline input data.
Source code in aquacrop/utils/lars.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|
read_clock_parameters(sim_start_time, sim_end_time, off_season=False)
Function to read in start and end simulation time and return a ClockStruct object
Arguments:
sim_start_time (str): simulation start date
sim_end_time (str): simulation start date
off_season (bool): True, simulate off season
False, skip ahead to next season post-harvest
Returns:
clock_struct (ClockStruct): simulation time paramaters
Source code in aquacrop/initialize/read_clocks_parameters.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
|
read_field_management(ParamStruct, FieldMngt, FallowFieldMngt)
store field management variables as FieldMngtStruct object
Arguments:
ParamStruct (ParamStruct): Contains model crop and soil paramaters
FieldMngt (FieldMngt): field mngt params
FallowFieldMngt (FieldMngt): fallow field mngt params
Returns:
ParamStruct (ParamStruct): updated ParamStruct with field management info
Source code in aquacrop/initialize/read_field_managment.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
read_groundwater_table(ParamStruct, GwStruct, ClockStruct)
Function to initialise groundwater parameters
Arguments:
ParamStruct (ParamStruct): Contains model paramaters
GwStruct (GroundWater): groundwater params
ClockStruct (ClockStruct): time params
Returns:
ParamStruct (ParamStruct): updated with GW info
Source code in aquacrop/initialize/read_groundwater_table.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|
read_irrigation_management(ParamStruct, IrrMngt, ClockStruct)
initilize irrigation management and store as IrrMngtStruct object
Arguments:
ParamStruct (ParamStruct): Contains model crop and soil paramaters
IrrMngt (IrrigationManagement): irr mngt params object
ClockStruct (ClockStruct): time paramaters
Returns:
ParamStruct (ParamStruct): updated model paramaters
Source code in aquacrop/initialize/read_irrigation_management.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
|
read_model_initial_conditions(ParamStruct, ClockStruct, InitWC, crop)
Function to set up initial model conditions
Arguments:
ParamStruct (ParamStruct): Contains model paramaters
ClockStruct (ClockStruct): time paramaters
InitWC (InitialWaterContent): initial water content
crop (Crop): crop parameters
Returns:
ParamStruct (ParamStruct): updated ParamStruct object
InitCond (InitialCondition): containing initial model conditions/counters
Source code in aquacrop/initialize/read_model_initial_conditions.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 |
|
read_model_parameters(clock_struct, soil, crop, weather_df)
Finalise soil and crop paramaters including planting and harvest dates save to new object param_struct
Arguments:
clock_struct (ClockStruct): time params
soil (Soil): soil object
crop (Crop): crop object
weather_df (DataFrame): list of datetimes
Returns:
clock_struct (ClockStruct): updated time paramaters
param_struct (ParamStruct): Contains model crop and soil paramaters
Source code in aquacrop/initialize/read_model_parameters.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
|
read_weather_inputs(clock_sctruct, weather_df)
Clip weather to start and end simulation dates
Arguments:
clock_sctruct (ClockStruct): ClockStruct object
weather_df (DataFrame): weather dataframe
Returns:
weather_df (DataFrame): clipped weather dataframe
Source code in aquacrop/initialize/read_weather_inputs.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
solution_single_time_step(init_cond, param_struct, clock_struct, weather_step, outputs)
Function to perform AquaCrop solution for a single time step
Arguments:
init_cond (InitialCondition): containing current variables+counters
param_struct (ParamStruct): contains model paramaters
clock_struct (ClockStruct): model time paramaters
weather_step (numpy.ndarray): contains precipitation,ET,temp_max,temp_min for current day
outputs (Output): object to store outputs
Returns:
NewCond (InitialCondition): containing updated simulation variables+counters
param_struct (ParamStruct): contains model paramaters
outputs (Output): object to store outputs
Source code in aquacrop/timestep/run_single_timestep.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 |
|
update_time(clock_struct, init_cond, param_struct, weather, crop)
Function to update current time in model.
Arguments:
clock_struct (ClockStruct): model time paramaters
init_cond (InitialCondition): containing sim variables+counters
param_struct (ParamStruct): containing model paramaters
weather (numpy.array): weather data for simulation period
Returns:
clock_struct (ClockStruct): model time paramaters
init_cond (InitialCondition): containing reset model paramaters
param_struct (ParamStruct): containing model paramaters
Source code in aquacrop/timestep/update_time.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
aquacrop.utils.prepare_weather
prepare_weather(weather_file_path)
function to read in weather data and return a dataframe containing
the weather data
Arguments:
FileLocations): FileLocationsClass
: input File Locations
weather_file_path): `str): file location of weather data
Returns:
weather_df (pandas.DataFrame): weather data for simulation period
Source code in aquacrop/utils/prepare_weather.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|