sentinel_simulator.jules package¶
Submodules¶
sentinel_simulator.jules.py_importNML module¶
-
sentinel_simulator.jules.py_importNML.importJulesNML(nml)¶ Parse a JULES nml file and write it in the style used for the julesNML class.
Parameters: nml (str.) – JULES NML file name. Returns: None
sentinel_simulator.jules.py_jules module¶
-
sentinel_simulator.jules.py_jules.crop_run(sow_date=110, b=6.631, smwilt=0.1866, neff=0.00057, output_name=’none’)¶ Function that runs JULES with crop model turned on and given user defined parameters at Wallerfing site. Output is saved in folder and file specified within function.
Parameters: - sow_date (int.) – Sow date, between 90 and 150.
- b (float.) – Brooks-Corey exponent factor.
- smwilt (float.) – Soil moisture wilting point.
- neff (float.) – Nitrogen use efficiency of crop (Vcmax).
- output_name (str.) – Name to use for outputted JULES netCDF file.
Returns: ‘Done’ to notify used JULES run has finished.
Return type: str
-
class
sentinel_simulator.jules.py_jules.jules(jules_exe=’/home/if910917/jules/models/jules4.8/build/bin/jules.exe’)¶ Bases:
sentinel_simulator.jules.py_jules.julesAllNMLClass to run JULES.
Parameters: jules_exe (str) – location of JULES executable. Note
You must have JULES installed on local system with a version of 4.8 or higher.
Class to run JULES.
Parameters: jules_exe (str) – location of JULES executable. Note
You must have JULES installed on local system with a version of 4.8 or higher.
-
runJules()¶ Write all NML files to disk. Run JULES in a subprocess. Check output for fatal errors.
Returns: stdout and stderr output from JULES model run. Return type: str
-
runJules_print()¶ Write all NML files to disk. Run JULES in a subprocess. Check output for fatal errors.
Returns: stdout and stderr output from JULES model run. Return type: str
-
-
class
sentinel_simulator.jules.py_jules.julesAllNML¶ This class is populated by the contents of a module which contains templates of all the required JULES namelist files
-
writeNML()¶
-
-
sentinel_simulator.jules.py_jules.plot_class_var(output_nc, var, level=0, line_type=’-‘, ax=’None’)¶ Plot specified variable.
Parameters: - output_nc (str) – Location of JULES output netCDF file.
- var (str) – Variables from JULES to plot.
Returns: Figure.
Return type: object
sentinel_simulator.jules.py_julesNML module¶
This module holds JULES namelist files. It has been automatically generated.