PCSE 6.0.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. PCSE-6.0.9.dist-info/LICENSE +19 -0
  2. PCSE-6.0.9.dist-info/METADATA +187 -0
  3. PCSE-6.0.9.dist-info/RECORD +187 -0
  4. PCSE-6.0.9.dist-info/WHEEL +5 -0
  5. PCSE-6.0.9.dist-info/top_level.txt +3 -0
  6. exp/__init__.py +0 -0
  7. exp/__main__.py +22 -0
  8. exp/process_experiment_collections.py +210 -0
  9. exp/reduce_yaml.py +43 -0
  10. pcse/__init__.py +104 -0
  11. pcse/agromanager.py +961 -0
  12. pcse/base/__init__.py +16 -0
  13. pcse/base/config_loader.py +117 -0
  14. pcse/base/dispatcher.py +33 -0
  15. pcse/base/engine.py +105 -0
  16. pcse/base/parameter_providers.py +283 -0
  17. pcse/base/simulationobject.py +280 -0
  18. pcse/base/states_rates.py +421 -0
  19. pcse/base/variablekiosk.py +243 -0
  20. pcse/base/weather.py +397 -0
  21. pcse/conf/Alcepas10_PP.conf +38 -0
  22. pcse/conf/FAO_WRSI.conf +42 -0
  23. pcse/conf/Lingra_NWLP_FD.conf +38 -0
  24. pcse/conf/Lingra_PP.conf +36 -0
  25. pcse/conf/Lingra_WLP_FD.conf +39 -0
  26. pcse/conf/Lintul3.conf +40 -0
  27. pcse/conf/Wofost72_PP.conf +44 -0
  28. pcse/conf/Wofost72_Pheno.conf +38 -0
  29. pcse/conf/Wofost72_WLP_CWB.conf +46 -0
  30. pcse/conf/Wofost73_PP.conf +44 -0
  31. pcse/conf/Wofost73_WLP_CWB.conf +42 -0
  32. pcse/conf/Wofost73_WLP_MLWB.conf +42 -0
  33. pcse/conf/Wofost81_NWLP_CWB_CNB.conf +46 -0
  34. pcse/conf/Wofost81_NWLP_MLWB_CNB.conf +46 -0
  35. pcse/conf/Wofost81_NWLP_MLWB_SNOMIN.conf +46 -0
  36. pcse/conf/Wofost81_PP.conf +44 -0
  37. pcse/conf/Wofost81_WLP_CWB.conf +46 -0
  38. pcse/conf/Wofost81_WLP_MLWB.conf +47 -0
  39. pcse/conf/Wofost_winterkill.conf +52 -0
  40. pcse/conf/__init__.py +0 -0
  41. pcse/crop/__init__.py +18 -0
  42. pcse/crop/abioticdamage.py +640 -0
  43. pcse/crop/alcepas.py +617 -0
  44. pcse/crop/assimilation.py +618 -0
  45. pcse/crop/evapotranspiration.py +728 -0
  46. pcse/crop/greenlayercrop.py +123 -0
  47. pcse/crop/leaf_dynamics.py +767 -0
  48. pcse/crop/lingra.py +668 -0
  49. pcse/crop/lingraN.py +691 -0
  50. pcse/crop/lingra_ndynamics.py +454 -0
  51. pcse/crop/lintul3.py +893 -0
  52. pcse/crop/n_dynamics.py +212 -0
  53. pcse/crop/npk_dynamics.py +410 -0
  54. pcse/crop/nutrients/__init__.py +2 -0
  55. pcse/crop/nutrients/n_demand_uptake.py +251 -0
  56. pcse/crop/nutrients/n_stress.py +131 -0
  57. pcse/crop/nutrients/npk_demand_uptake.py +372 -0
  58. pcse/crop/nutrients/npk_stress.py +247 -0
  59. pcse/crop/nutrients/npk_translocation.py +233 -0
  60. pcse/crop/partitioning.py +310 -0
  61. pcse/crop/phenology.py +495 -0
  62. pcse/crop/respiration.py +107 -0
  63. pcse/crop/root_dynamics.py +313 -0
  64. pcse/crop/stem_dynamics.py +165 -0
  65. pcse/crop/storage_organ_dynamics.py +154 -0
  66. pcse/crop/wofost72.py +298 -0
  67. pcse/crop/wofost73.py +333 -0
  68. pcse/crop/wofost81.py +365 -0
  69. pcse/crop/wofost_winterkill.py +313 -0
  70. pcse/db/__init__.py +11 -0
  71. pcse/db/cgms12/__init__.py +13 -0
  72. pcse/db/cgms12/data_providers.py +809 -0
  73. pcse/db/cgms14/__init__.py +14 -0
  74. pcse/db/cgms14/data_providers.py +790 -0
  75. pcse/db/cgms18/__init__.py +12 -0
  76. pcse/db/cgms18/data_providers.py +34 -0
  77. pcse/db/cgms8/__init__.py +21 -0
  78. pcse/db/cgms8/data_providers.py +319 -0
  79. pcse/db/hdf5/__init__.py +2 -0
  80. pcse/db/hdf5/cgms2hdfstore.py +285 -0
  81. pcse/db/hdf5/hdf5_readers.py +609 -0
  82. pcse/db/pcse/__init__.py +15 -0
  83. pcse/db/pcse/database_definition.py +315 -0
  84. pcse/db/pcse/db_input.py +818 -0
  85. pcse/db/pcse/pcse_dump.sql +47816 -0
  86. pcse/db/wofost_parameters.py +18 -0
  87. pcse/decorators.py +99 -0
  88. pcse/empty_model.py +39 -0
  89. pcse/engine.py +558 -0
  90. pcse/exceptions.py +44 -0
  91. pcse/fileinput.py +3 -0
  92. pcse/input/__init__.py +34 -0
  93. pcse/input/cabo_reader.py +247 -0
  94. pcse/input/cabo_weather.py +427 -0
  95. pcse/input/csvweatherdataprovider.py +268 -0
  96. pcse/input/excelweatherdataprovider.py +259 -0
  97. pcse/input/nasapower.py +350 -0
  98. pcse/input/pcsefilereader.py +125 -0
  99. pcse/input/sitedataproviders.py +223 -0
  100. pcse/input/soildataproviders.py +28 -0
  101. pcse/input/yaml_agro_loader.py +29 -0
  102. pcse/input/yaml_cropdataprovider.py +306 -0
  103. pcse/models.py +260 -0
  104. pcse/pydispatch/__init__.py +6 -0
  105. pcse/pydispatch/dispatcher.py +492 -0
  106. pcse/pydispatch/errors.py +10 -0
  107. pcse/pydispatch/robust.py +57 -0
  108. pcse/pydispatch/robustapply.py +57 -0
  109. pcse/pydispatch/saferef.py +172 -0
  110. pcse/rerunner.py +83 -0
  111. pcse/settings/__init__.py +60 -0
  112. pcse/settings/default_settings.py +88 -0
  113. pcse/signals.py +205 -0
  114. pcse/soil/__init__.py +11 -0
  115. pcse/soil/classic_waterbalance.py +715 -0
  116. pcse/soil/lintul3soil.py +271 -0
  117. pcse/soil/multilayer_waterbalance.py +910 -0
  118. pcse/soil/n_soil_dynamics.py +178 -0
  119. pcse/soil/snomin.py +1107 -0
  120. pcse/soil/snowmaus.py +163 -0
  121. pcse/soil/soil_profile.py +418 -0
  122. pcse/soil/soil_wrappers.py +96 -0
  123. pcse/soil/soiln_profile.py +203 -0
  124. pcse/start_wofost.py +74 -0
  125. pcse/taskmanager.py +159 -0
  126. pcse/tests/__init__.py +41 -0
  127. pcse/tests/run_wofost.py +116 -0
  128. pcse/tests/test_abioticdamage.py +76 -0
  129. pcse/tests/test_agromanager.py +287 -0
  130. pcse/tests/test_assimilation.py +68 -0
  131. pcse/tests/test_data/10870_munchen_flughafen.csv +528 -0
  132. pcse/tests/test_data/2297_sweden.csv +528 -0
  133. pcse/tests/test_data/8011_asturias.csv +528 -0
  134. pcse/tests/test_data/8443_ronda.csv +403 -0
  135. pcse/tests/test_data/LINTUL3_reference_results.csv +226 -0
  136. pcse/tests/test_data/NL1.976 +390 -0
  137. pcse/tests/test_data/NL1.977 +389 -0
  138. pcse/tests/test_data/NL1.978 +391 -0
  139. pcse/tests/test_data/NL1.979 +389 -0
  140. pcse/tests/test_data/NL1.980 +390 -0
  141. pcse/tests/test_data/NL1.981 +389 -0
  142. pcse/tests/test_data/NL1.982 +389 -0
  143. pcse/tests/test_data/NL1.983 +389 -0
  144. pcse/tests/test_data/NL1.984 +390 -0
  145. pcse/tests/test_data/NL1.985 +389 -0
  146. pcse/tests/test_data/NL1.986 +391 -0
  147. pcse/tests/test_data/NL1.987 +416 -0
  148. pcse/tests/test_data/NL1.988 +413 -0
  149. pcse/tests/test_data/NL1.989 +430 -0
  150. pcse/tests/test_data/NL1.990 +397 -0
  151. pcse/tests/test_data/NL1.991 +272 -0
  152. pcse/tests/test_data/NL1.992 +397 -0
  153. pcse/tests/test_data/NL1.993 +394 -0
  154. pcse/tests/test_data/NL1.994 +394 -0
  155. pcse/tests/test_data/NL1.995 +394 -0
  156. pcse/tests/test_data/NL1.996 +397 -0
  157. pcse/tests/test_data/NL1.997 +394 -0
  158. pcse/tests/test_data/NL1.998 +394 -0
  159. pcse/tests/test_data/NL1.999 +394 -0
  160. pcse/tests/test_data/__init__.py +6 -0
  161. pcse/tests/test_data/evapotranspiration_testdata.py +124 -0
  162. pcse/tests/test_data/frostol_testdata.py +268 -0
  163. pcse/tests/test_data/lintul3.csv +184 -0
  164. pcse/tests/test_data/lintul3_springwheat.agro +19 -0
  165. pcse/tests/test_data/lintul3_springwheat.crop +142 -0
  166. pcse/tests/test_data/lintul3_springwheat.site +11 -0
  167. pcse/tests/test_data/lintul3_springwheat.soil +8 -0
  168. pcse/tests/test_data/respiration_testdata.py +35 -0
  169. pcse/tests/test_data/wofost_npk.agro +19 -0
  170. pcse/tests/test_data/wofost_npk.crop +235 -0
  171. pcse/tests/test_data/wofost_npk.site +36 -0
  172. pcse/tests/test_data/wofost_npk.soil +52 -0
  173. pcse/tests/test_data/wofost_npk_potential.csv +217 -0
  174. pcse/tests/test_data/wofost_npk_waterlimited.csv +217 -0
  175. pcse/tests/test_evapotranspiration.py +129 -0
  176. pcse/tests/test_lintul3.py +88 -0
  177. pcse/tests/test_partitioning.py +58 -0
  178. pcse/tests/test_penmanmonteith.py +90 -0
  179. pcse/tests/test_respiration.py +50 -0
  180. pcse/tests/test_wofost72.py +291 -0
  181. pcse/timer.py +159 -0
  182. pcse/traitlets.py +68 -0
  183. pcse/util.py +901 -0
  184. tests/__init__.py +0 -0
  185. tests/__main__.py +34 -0
  186. tests/run_tests.py +115 -0
  187. tests/test_code.py +232 -0
@@ -0,0 +1,19 @@
1
+ # Copyright 2024 Wageningen Environmental Research, Wageningen-UR
2
+
3
+
4
+ # Licensed under the EUPL, Version 1.1 or – as soon they
5
+ # will be approved by the European Commission - subsequent
6
+ # versions of the EUPL (the "Licence");
7
+ # You may not use this work except in compliance with the
8
+ # Licence.
9
+ # You may obtain a copy of the Licence at:
10
+
11
+ # http://ec.europa.eu/idabc/eupl
12
+
13
+ # Unless required by applicable law or agreed to in
14
+ # writing, software distributed under the Licence is
15
+ # distributed on an "AS IS" basis,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
17
+ # express or implied.
18
+ # See the Licence for the specific language governing
19
+ # permissions and limitations under the Licence.
@@ -0,0 +1,187 @@
1
+ Metadata-Version: 2.2
2
+ Name: PCSE
3
+ Version: 6.0.9
4
+ Summary: Framework for developing crop simulation models, includes an implementation of the WOFOST and LINTUL crop simulation models and the LINGRA grassland simulation model.
5
+ Home-page: http://github.com/ajwdewit/pcse/
6
+ Download-URL: http://github.com/ajwdewit/pcse/tarball/6.0.9
7
+ Author: Allard de Wit
8
+ Author-email: allard.dewit@wur.nl
9
+ License: EUPL
10
+ Platform: any
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)
16
+ Classifier: Natural Language :: English
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python
19
+ Classifier: Topic :: Scientific/Engineering
20
+ License-File: LICENSE
21
+ Requires-Dist: SQLAlchemy<2.0,>=1.3.0
22
+ Requires-Dist: PyYAML>=5.1
23
+ Requires-Dist: openpyxl>=3.0.0
24
+ Requires-Dist: requests>=2.0.0
25
+ Requires-Dist: pandas>=0.25
26
+ Requires-Dist: traitlets-pcse==5.0.0.dev
27
+ Requires-Dist: dotmap>=1.3
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: download-url
33
+ Dynamic: home-page
34
+ Dynamic: license
35
+ Dynamic: platform
36
+ Dynamic: requires-dist
37
+ Dynamic: summary
38
+
39
+ Python Crop Simulation Environment - PCSE
40
+ =========================================
41
+
42
+ PCSE is a framework developed for implementing crop simulation models developed in
43
+ Wageningen. Many of the Wageningen crop simulation models were originally developed
44
+ in FORTRAN77 or using the FORTRAN Simulation Translator (`FST`_). Although this
45
+ approach has yielded high quality models with high numerical performance, the
46
+ inherent limitations of models written in FORTRAN is also becoming increasingly evident:
47
+
48
+ * The structure of the models is often rather monolithic and the different parts are
49
+ very tightly coupled. Replacing parts of the model with another simulation approach
50
+ is not easy.
51
+ * The models rely on file-based I/O which is difficult to change. For example,
52
+ interfacing with databases is complicated in FORTRAN.
53
+ * In general, with low-level languages like FORTRAN, simple things already take many
54
+ lines of code and mistakes are easily made, particularly by agronomists and crop
55
+ scientist that have limited experience in developing or adapting software.
56
+
57
+ To overcome many of the limitations above, the Python Crop Simulation Environment
58
+ (PCSE) was developed which provides an environment for developing simulation models
59
+ as well as a number of implementations of crop simulation models. PCSE is written
60
+ in pure python code which makes it more flexible, easier to modify and extensible
61
+ allowing easy interfacing with databases, graphical user interfaces, visualization
62
+ tools and numerical/statistical packages. PCSE has several interesting features:
63
+
64
+ * Implementation in pure python with dependencies only on popular packages available from
65
+ the Python Package Index (PyPI) (`SQLAlchemy`, `PyYAML`, `pandas`, `Openpyxl`, `xlrd`,
66
+ `requests` and `numpy`)
67
+
68
+ * Modular design allowing you to add or change components relatively quickly with
69
+ a simple but powerful approach to communicate variables between modules.
70
+
71
+ * Similar to `FST`_, it enforces good model design by explicitly separating parameters,
72
+ rate variables and state variables. Moreover PCSE takes care of the module
73
+ initialization, calculation of rates of changes, updating of state variables
74
+ and actions needed to finalize the simulation.
75
+
76
+ * Input/Output is completely separated from the simulation model itself. Therefore
77
+ PCSE models can easily read from and write to text files, databases and scientific
78
+ formats such as HDF or NetCDF.
79
+
80
+ * Tools are available for reading parameter and weather files from existing models to
81
+ have as much backward compatibility as possible.
82
+
83
+ * An `AgroManager` module which allows to define the agromanagement actions that
84
+ happen on a farmers field. Such actions can be specified as events based on
85
+ time or model state.
86
+
87
+ * Built-in testing of program modules ensuring integrity of the system.
88
+
89
+ To contribute to PCSE, you can fork your own copy at https://github.com/ajwdewit/pcse
90
+
91
+ Full documentation is available on http://pcse.readthedocs.io
92
+
93
+
94
+ Testing PCSE
95
+ ------------
96
+
97
+ The PCSE package has some built-in tests that can used to test if any PCSE installation is
98
+ producing the correct outputs::
99
+
100
+ >>> pcse.test()
101
+ runTest (pcse.tests.test_abioticdamage.Test_FROSTOL) ... ok
102
+ runTest (pcse.tests.test_partitioning.Test_DVS_Partitioning) ... ok
103
+ runTest (pcse.tests.test_evapotranspiration.Test_PotentialEvapotranspiration) ... ok
104
+ runTest (pcse.tests.test_wofost.TestWaterlimitedWinterWheat) ... ok
105
+
106
+ ...
107
+
108
+ runTest (pcse.tests.test_wofost.TestWaterlimitedGrainMaize) ... ok
109
+ runTest (pcse.tests.test_wofost.TestPotentialPotato) ... ok
110
+ runTest (pcse.tests.test_wofost80.TestWOFOST80_Potential_WinterWheat) ... ok
111
+ runTest (pcse.tests.test_wofost80.TestWOFOST80_WaterLimited_WinterWheat) ... ok
112
+
113
+ ----------------------------------------------------------------------
114
+ Ran 32 tests in 39.809s
115
+
116
+ OK
117
+
118
+ If the model output matches the expected output the test will report 'OK',
119
+ otherwise an error will be produced with a detailed traceback on where the
120
+ problem occurred. Note that the results may deviate from the output above
121
+ when tests were added or removed.
122
+
123
+ On top of the built-in tests, a larger suite of tests is available in the
124
+ git repository of PCSE. The latter also includes tests of the LINGRA model
125
+ which are not included in the internal tests. The tests can be execute through
126
+ the `tests` package::
127
+
128
+ (py3_pcse) $ python -m tests
129
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_potentialproduction_wofost72_01.yaml) ... ok
130
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_potentialproduction_wofost72_11.yaml) ... ok
131
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_potentialproduction_wofost72_21.yaml) ... ok
132
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_potentialproduction_wofost72_31.yaml) ... ok
133
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_potentialproduction_wofost72_41.yaml) ... ok
134
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_waterlimitedproduction_wofost72_01.yaml) ... ok
135
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_waterlimitedproduction_wofost72_11.yaml) ... ok
136
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_waterlimitedproduction_wofost72_21.yaml) ... ok
137
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_waterlimitedproduction_wofost72_31.yaml) ... ok
138
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_waterlimitedproduction_wofost72_41.yaml) ... ok
139
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_LINGRA_Belgium-Michamps-1986_PP.yaml) ... ok
140
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_LINGRA_Netherlands-Zegveld-1986_PP.yaml) ... ok
141
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_LINGRA_Belgium-Michamps-1986_WLP.yaml) ... ok
142
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_LINGRA_Netherlands-Zegveld-1986_WLP.yaml) ... ok
143
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_LINGRA_Belgium-Michamps-1986_NWLP.yaml) ... ok
144
+ runTest (tests.run_tests./home/wit015/Sources/python/pcse/tests/test_data/test_LINGRA_Netherlands-Zegveld-1986_NWLP.yaml) ... ok
145
+
146
+ ----------------------------------------------------------------------
147
+ Ran 16 tests in 101.956s
148
+
149
+ OK
150
+
151
+ By default this runs a limited selection of tests. The full test suite can be run with::
152
+
153
+ (py3_pcse) $ python -m tests --full
154
+
155
+ But this will take at least 30 minutes to complete.
156
+
157
+
158
+ Comparing PCSE models against experiments
159
+ -----------------------------------------
160
+
161
+ Starting with PCSE 5.5, there is an additional folder `exp` inside the repository which contains experimental
162
+ data which can be used to compare the results from a PCSE model against. Experiments are collected in an
163
+ 'experimental collection' which contains references to experiments that belong together. For example, all
164
+ experiments for potato for a given variety. Currently, the available experiments are limited to grassland for the
165
+ LINGRA model and consist of two collections. One for grassland under irrigated conditions and one for rain-fed
166
+ conditions. Tt is expected that more experimental data will be collected and stored here in order to have a
167
+ reference set to compare model results.
168
+
169
+ Running the experiments is similar to running the unit tests::
170
+
171
+ (py3_pcse) $ python -m exp
172
+ Writing expriment results to: /tmp/exp_results
173
+ Processing collection for Rye grass: Potential
174
+ - Processing experiment: LINGRA_FAO/LINGRA_FAO_experiment_000_UK2_1982.yaml
175
+ - Processing experiment: LINGRA_FAO/LINGRA_FAO_experiment_004_SW1_1983.yaml
176
+ - Processing experiment: LINGRA_FAO/LINGRA_FAO_experiment_006_SW1_1984.yaml
177
+
178
+ ...
179
+
180
+ This will generate figures of simulated vs observed data in order to assess how the model
181
+ performs against experimental data. In the future, this will be extended to include a
182
+ report with error values.
183
+
184
+
185
+
186
+
187
+ .. _FST: http://models.pps.wur.nl/sites/models.pps.wur.nl/files/FST%203.pdf
@@ -0,0 +1,187 @@
1
+ exp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ exp/__main__.py,sha256=__ohOfZErPSb9nVu5_3uJ2HKk3TgU9_5nYHCSJgAh78,602
3
+ exp/process_experiment_collections.py,sha256=torjLh0ZQ3Y5Ekx9OprgGQsO8teYxQ7MfcuCmVcEdSI,7402
4
+ exp/reduce_yaml.py,sha256=SDuCTUAJqhnmXaM8_FEjd1DIjAeVVz96VcPWWuA3CMw,1093
5
+ pcse/__init__.py,sha256=vk99GFD8pe3GaeXp_NL7IXicCShCX-pL4X5PUBGqwVE,3722
6
+ pcse/agromanager.py,sha256=pJYstdCHJ5TC2mjOUm6AXeOr9Jv_nYCzkE80wKtbmXo,40896
7
+ pcse/decorators.py,sha256=F9Akc0XoObKchb1rDQNGsDwHA9lmuAIGy9yfn1KF7Iw,3168
8
+ pcse/empty_model.py,sha256=axo5faNEigIsg_3IHHPv8noBGmP-KqM_PKyFcUwhJ8w,870
9
+ pcse/engine.py,sha256=19emGrwQgypr1dM6EvB4uWC-tPaECJzZB8WX1S1JjcI,22344
10
+ pcse/exceptions.py,sha256=iO3_FBwtNfnSV6cK0NV5EnyXPF1fHzJVzTxR5PntqQo,1491
11
+ pcse/fileinput.py,sha256=SMfpodarBt0_NNO9QnzN_WUavt_TZp0HjGoYpEWGRJ0,162
12
+ pcse/models.py,sha256=ZCe_l4ot88TV4sMm0MplmcoSRDRwlfgvc3bQ5O9nlq0,8099
13
+ pcse/rerunner.py,sha256=M-OSte-wTjqRZaUAzQevdPPmGlDxLc2SXQWrrNsQGsc,2965
14
+ pcse/signals.py,sha256=3WXB5kjP4vo1zmF-bfnmGRpQNr85WqnT-xygT--Rjl0,7039
15
+ pcse/start_wofost.py,sha256=8qIboRCZMkvMSj6xgA99BWfO9p306so8SHJvuq5_eNA,2787
16
+ pcse/taskmanager.py,sha256=R7XCi3MvwUGgYM1vlLz-3JdKoKZMYxEDR4AI4-tXXcg,6102
17
+ pcse/timer.py,sha256=vBJfvPH0rP3p6LMLRyHVqGhsVnDw559NIxWOtMPeGh4,5807
18
+ pcse/traitlets.py,sha256=H21uf-3LnpxYiFggywt5eOjHWPacOcMQMWfkeQ56cUc,2018
19
+ pcse/util.py,sha256=_a-JaposlXgpBGB9g8k1ItwiiAKGZeesuRKA34o0ttw,31079
20
+ pcse/base/__init__.py,sha256=ZSR3eDKlLARnEMCP0q2I5GkcKDvKCrivV4AsH4abBqQ,786
21
+ pcse/base/config_loader.py,sha256=OQXmXnEFlMjkCeyyoJtiIZzJXWUDWg3uxLvGllknBGw,5403
22
+ pcse/base/dispatcher.py,sha256=nJ1DFVdxapwy71aPPpMYS5Fjd--Gz84mYDXF28XTRcA,1338
23
+ pcse/base/engine.py,sha256=fbj1Xxvogr7_kVjej26QDr1isECN7_kh8uwXvP3N0EQ,4011
24
+ pcse/base/parameter_providers.py,sha256=lxV5hsSTQXXQtzH8x4lwIGfKQ7qbONc3FuCu485n7eE,11371
25
+ pcse/base/simulationobject.py,sha256=q2HHe65t03Tkm2pF4dtoMXkF2q3RGBH-XwYLLijJbp8,11555
26
+ pcse/base/states_rates.py,sha256=PYxc4pK7jpehuZEt_V78TJBaqNdeYgYAaFfzRLl8aOE,15441
27
+ pcse/base/variablekiosk.py,sha256=DjVWd8sCUjznsWADEkf6sGiIO7XHZuzA5mBoLq2a33A,9913
28
+ pcse/base/weather.py,sha256=bCLfTvHDrSqdPRZFlRYgPFu8CuVeiPZC9i40A8xbr48,15213
29
+ pcse/conf/Alcepas10_PP.conf,sha256=IDsMN1YyZ8eV-hC_fPDJxue5GCHs4P2YbT4u9tZtzL4,1417
30
+ pcse/conf/FAO_WRSI.conf,sha256=H1zNe3JtZ27dfXhMi8F_417HJdEVMZT1n3giF1fwS6Q,1501
31
+ pcse/conf/Lingra_NWLP_FD.conf,sha256=WTZiOZ3-0vyEGR09_u19PVEcYyJpp-9zf5ZdCDAsZTk,1384
32
+ pcse/conf/Lingra_PP.conf,sha256=MCDToxbzPxR-rpYRuv2a3nzB56FOM4ZqVJ66PR_eUFM,1206
33
+ pcse/conf/Lingra_WLP_FD.conf,sha256=B-LpQZeiwtjDF9O9yzmT5NS3c4gmUv9xnnIV8Csv3uU,1291
34
+ pcse/conf/Lintul3.conf,sha256=yf5TYc21KUoDa-56_iiA3JYRHEne7fl1sihoEX6YcdI,1345
35
+ pcse/conf/Wofost72_PP.conf,sha256=T-ev18NOjn-Xll7oydwXzAh5JVySt5qqWAlaAgbgALw,1657
36
+ pcse/conf/Wofost72_Pheno.conf,sha256=SviZBrH4INv423e6_wV9hk0PieKxPrwfStILpVfbozg,1310
37
+ pcse/conf/Wofost72_WLP_CWB.conf,sha256=w82g7qkUMv8plCnWaj65ZTjCpoF_kKRv-Pi9pCPglz0,1800
38
+ pcse/conf/Wofost73_PP.conf,sha256=E1bBLffdNRr4Ens_qaA6CG9i7SGHuTdXKFvQyjmEG1I,1656
39
+ pcse/conf/Wofost73_WLP_CWB.conf,sha256=NOPfu3JIQBrsJLbXNZPG9dXZn7dU2Czdggj-P4tT-Ko,1581
40
+ pcse/conf/Wofost73_WLP_MLWB.conf,sha256=tQ7WUok3k5RQ44eWYSQlHa8ybHazdR4RLtREejsE-QE,1598
41
+ pcse/conf/Wofost81_NWLP_CWB_CNB.conf,sha256=J5iZpqAsrr4thuQpZMk-XpLQcQGsz4soQ9_VFWSExQQ,2025
42
+ pcse/conf/Wofost81_NWLP_MLWB_CNB.conf,sha256=rB5QxJbsBba7cVn2NgVLhBiaoEE05VnHWCEPj4eJw84,2001
43
+ pcse/conf/Wofost81_NWLP_MLWB_SNOMIN.conf,sha256=Bf5IGoUxk5nddV1t2-qEPe_G9hyM_-6jpMRg1x8ybzI,2045
44
+ pcse/conf/Wofost81_PP.conf,sha256=FF3KMZWS2XIqiECDPvqDEZk2ZPgouMU4z0bUmCsxBuY,1773
45
+ pcse/conf/Wofost81_WLP_CWB.conf,sha256=hY8Wc_bJ-qbUT_bYEWToyT2tv8Qtt4PcPBiAdXXX0W8,1909
46
+ pcse/conf/Wofost81_WLP_MLWB.conf,sha256=UmVhROJWHqAZ5JhPgFPrUcZ1xmG1JTLWt8Sptw3AhMA,1925
47
+ pcse/conf/Wofost_winterkill.conf,sha256=jYqEIdhXpmXLEWjgUSPg-BWchhMB0xuTjXL0h50hdP0,2253
48
+ pcse/conf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
+ pcse/crop/__init__.py,sha256=Ni6MOJL4Vk3Unmx-e2KUvQNNcADDAq76dDmkhuxZZ6U,552
50
+ pcse/crop/abioticdamage.py,sha256=91YD7M3hzim8A0DLiDOIWoyhP2ay5dZOEErUbSJRePQ,26960
51
+ pcse/crop/alcepas.py,sha256=P0_xSrcUMwXM6OCK514g3aCv_jVUoiVchloqn1VupmQ,20647
52
+ pcse/crop/assimilation.py,sha256=mPW1yL7jqcTyaaxkt2vZBe5EwJCCxVmZ5XPj_bNf2yU,25403
53
+ pcse/crop/evapotranspiration.py,sha256=UFBoUw41PsgKqPZvFYn3_TxBVDQMje0hgb1mIx3B2u4,28394
54
+ pcse/crop/greenlayercrop.py,sha256=PN0k3AMUPFx4W8L1HGBQGAI5A4Mz73MQI7FElpZ98qY,4887
55
+ pcse/crop/leaf_dynamics.py,sha256=WXxHScd7WjbHgBDrQS88lY8wWe6gnfnl5rBuW_mBMkQ,30381
56
+ pcse/crop/lingra.py,sha256=Vuz13e9yOn1DGZh5P-j3-G9aYEn3gZhdcVBYAFNUCT8,30260
57
+ pcse/crop/lingraN.py,sha256=dy5QBcahwhLIscyCMumJbb90J3m4y00PHSYZtcJQY6o,31738
58
+ pcse/crop/lingra_ndynamics.py,sha256=CQKR1Oj4wyugcXZVuUSJG_0txyXV7A-R15TCxIamu84,20075
59
+ pcse/crop/lintul3.py,sha256=kiegjA8UKGSuapaFXjfLcvj1WkjQ49IQfRErRhnZLMo,41996
60
+ pcse/crop/n_dynamics.py,sha256=xCm5C2TIxQve6__o-7wMH0xHzBhBbF_r2c5Q9C7Ie3g,10241
61
+ pcse/crop/npk_dynamics.py,sha256=ICrHrK0mvtjNPch5t-yTI2m4xgy7pPHHXYUHIaq-o8c,20842
62
+ pcse/crop/partitioning.py,sha256=H1RhPP0Q47EWpxLFga3aEpR4UefCdMMCM7Dmerb7Rm8,12014
63
+ pcse/crop/phenology.py,sha256=gpLpc8hm00wpLXWbbaFSgi1zvJ4jmRzvkm9zkFNghAI,21683
64
+ pcse/crop/respiration.py,sha256=7Y2E8A2ETHaMJqxVmCvPwvsnC6y_gPxmtskIukNCmmU,4819
65
+ pcse/crop/root_dynamics.py,sha256=X6d0ycA1GXOM-upyvbMFAx3S0v4MN4ZooB3PprKqW2o,12471
66
+ pcse/crop/stem_dynamics.py,sha256=wEtrZc950qgYnt8yZqe-9aPykrbelQKXDDrkxv3uUVk,6437
67
+ pcse/crop/storage_organ_dynamics.py,sha256=a0jJcxI3Rvln2LQfSCT_lfJb8OQmptmqmc6pKV3i068,6126
68
+ pcse/crop/wofost72.py,sha256=f4UM9zuLIqXW4QeebQ4LcEoIAcTh8hRMSBQ9A5lHl-8,12273
69
+ pcse/crop/wofost73.py,sha256=nTij0n74xQLvU_rYdyadk-zuShCKQBixIhV6h0nIrYs,13943
70
+ pcse/crop/wofost81.py,sha256=DfsF-wdi4TPojFAx4RVzEZ8zALTtIoDKMIj5x2El-eo,16313
71
+ pcse/crop/wofost_winterkill.py,sha256=C_lqubwO-2l6gjw4g5syLDeRGxD1WbobTFmujHbHnEM,13193
72
+ pcse/crop/nutrients/__init__.py,sha256=m8JqpqfZeqIJhuqY5xZCCFcjMTOE12HP3ex-LoXxEn8,76
73
+ pcse/crop/nutrients/n_demand_uptake.py,sha256=2nRMpyneDiG83-E85qeTBloeUrUffhWCKDdmrlw7O_k,12762
74
+ pcse/crop/nutrients/n_stress.py,sha256=dm1c7dRRhWYIDPL8pShxkeFQtcfAAup0k5ykUAhpBv0,5744
75
+ pcse/crop/nutrients/npk_demand_uptake.py,sha256=muNZs9IBWRSwPJtNgDkomjGVqRWZp8tOh_cL81z6BzE,19545
76
+ pcse/crop/nutrients/npk_stress.py,sha256=vINkmKrHOMs_j3PoO10D-Xr6tBEMvf4e_c3ZykWGeeA,12501
77
+ pcse/crop/nutrients/npk_translocation.py,sha256=C6H2nLT9RywDzgsZbJ46qVI0_ryJLVJ2ts4jOPUQTvw,14056
78
+ pcse/db/__init__.py,sha256=c4hg0GBk2VHwVdRixS6UPNLXZ5cAfRKAT1xx4TMXRUM,283
79
+ pcse/db/wofost_parameters.py,sha256=ObIde62W-vDFu-PxHEvvK1GOjgec7CrzWH08lfp5sGU,1264
80
+ pcse/db/cgms12/__init__.py,sha256=JfEbOBwnSnnWgmT1dGf5184THXyKEpnNU3CYeNBQ9EM,547
81
+ pcse/db/cgms12/data_providers.py,sha256=FKP9cAPz0R7EdkYGsCGR39k1vjj555viPWPUeQlgpZ0,36010
82
+ pcse/db/cgms14/__init__.py,sha256=C-0ooUloS6qIZLKliQlfY_7uJRdkwb0CoJlbbRuur8s,592
83
+ pcse/db/cgms14/data_providers.py,sha256=NeqT4F5SKdRnof16YEd5O2zmOAmqnNr_3_X-oSljZ_0,35315
84
+ pcse/db/cgms18/__init__.py,sha256=IandkShOdkpYfWddxdxwzw_9Z49clKDUqy8vJyHWDH8,428
85
+ pcse/db/cgms18/data_providers.py,sha256=xXS-K9Q2gLRi4cXvURS7-Z52sooeNgH0WhWr5abaP3s,1022
86
+ pcse/db/cgms8/__init__.py,sha256=hPa5SIPEZPIcAj_z6Cy_b-mmA6YaiTeGdeIRgqQn-Pw,971
87
+ pcse/db/cgms8/data_providers.py,sha256=efQ_Mb2UoLrQEiu9C59vwL_CWd6UhPWAhYT8Cv8emfk,13835
88
+ pcse/db/hdf5/__init__.py,sha256=a2Epf-6PCsAMEHyNBA0-iFzCwuB2pgUvOWsX8wUeTfI,187
89
+ pcse/db/hdf5/cgms2hdfstore.py,sha256=OpHXtW3NwlrnSPspy6aCSb-L35p0VWmkHDNke2PBahk,11816
90
+ pcse/db/hdf5/hdf5_readers.py,sha256=-ICDyVyLs6ffw5qla4RUua08f8dBAQaHVpaMNTsLLFY,26173
91
+ pcse/db/pcse/__init__.py,sha256=_WKbBsIUpq8rjpLl8varLbperd_2c77e64xvXB-t2sc,636
92
+ pcse/db/pcse/database_definition.py,sha256=TTPdYcOhSUNPgEx5GLjusv7kVxTI8myysCt3wIB-TMg,14110
93
+ pcse/db/pcse/db_input.py,sha256=C_ltVrjEAD0A0R0AiwLPuVSS8urELjTIqSq5NRov2vg,35759
94
+ pcse/db/pcse/pcse_dump.sql,sha256=UmOhWl1KaPLlsflXMA0dP1EHOj59sgvG-WB_CBxvrOQ,3538258
95
+ pcse/input/__init__.py,sha256=WIcvFIqTUaCTrrKfCjQFGO5gRVfLOkFadUbH3804F9s,1465
96
+ pcse/input/cabo_reader.py,sha256=d6ES5nQJu7JFm3ZT9kwHh__s3bgTlm3gUD88cbcxp5g,9167
97
+ pcse/input/cabo_weather.py,sha256=UuGccKaIxw2lluWcF2DJd36MOxX4kcAx16MgNbMfERA,17831
98
+ pcse/input/csvweatherdataprovider.py,sha256=Y8h83096HumEcUFsENa73EeTmg89Vf5ZHwiAZ8FUtEM,9980
99
+ pcse/input/excelweatherdataprovider.py,sha256=GVrIv2GRihGCLp1ewhYsANzPIf7pG69B-jqO4B0ch1g,10293
100
+ pcse/input/nasapower.py,sha256=gZP-BamoZOLEYlIrWfHW-1VRagx_7E9k2fo4TemVS9w,15360
101
+ pcse/input/pcsefilereader.py,sha256=dH6VVvsRBKxtftWgUUaWhThQaEpgao6qzXgiVtvxBhg,4717
102
+ pcse/input/sitedataproviders.py,sha256=1TSulx548XuN0wPJlzPdcwTP_vtDx2F6JvUIeRlTL2Y,11996
103
+ pcse/input/soildataproviders.py,sha256=QNw3_LOvJUKrZcJwXxJSVdplbJlM05MbMxJT_Pxlgws,913
104
+ pcse/input/yaml_agro_loader.py,sha256=sX6Py1AfI3FVOI4D7n6VpFkWuhhPzRHjUuZVDCbN8T4,988
105
+ pcse/input/yaml_cropdataprovider.py,sha256=caoHzkZh7jcyMkmWI8tA9ei4xgA7DY6DD_sNpAOV7Ww,14199
106
+ pcse/pydispatch/__init__.py,sha256=8yuTpBsz68uGcnfN1yFNNpCd1miNYKaE8lTnDqq0O7g,171
107
+ pcse/pydispatch/dispatcher.py,sha256=itHv_d7DadPrDvi8bPhLuPzkavPxJ14lWZZYA0JVCKU,14533
108
+ pcse/pydispatch/errors.py,sha256=CWRbBWYKHhug_mWi4Yz2E6P-YmemQupLO3-CxOAjmpA,363
109
+ pcse/pydispatch/robust.py,sha256=kbaZigJu9HRWQ499O6wnqIo94rrnHgZsBhHiDIUTbKc,1835
110
+ pcse/pydispatch/robustapply.py,sha256=f-I0Jz9dOCkf6Z3PbfY2ZBpZ-uwgyll1A0GyItC0tvM,1930
111
+ pcse/pydispatch/saferef.py,sha256=9aIWhAv_z3U1kEBBgPzK_jrOy9MyuXOrwa8ZzuAEbDs,6294
112
+ pcse/settings/__init__.py,sha256=4z6y_c5NlQuVT0TxTw88VRmXtUSr6KNNIwhxFrcpcFA,2175
113
+ pcse/settings/default_settings.py,sha256=-hdlgv9zDdd9NdhoHTcsx0_mFOOIm-d7gONm-iIvBtQ,3551
114
+ pcse/soil/__init__.py,sha256=15rVD_o4xu1oOLHnLQnZzSIrgetCNAMdq6aReZPJLSc,497
115
+ pcse/soil/classic_waterbalance.py,sha256=T4y8W4KMXJAmy7aicpiW2ZqSEx-CMIaucGX5kJ6XZNo,29796
116
+ pcse/soil/lintul3soil.py,sha256=JpvH4FY5S6dzysf6qkTtW7m_8iKg3Qo08nSdN0bKM8A,13694
117
+ pcse/soil/multilayer_waterbalance.py,sha256=AlWEfvohb82LNpdyqI07rwuCN2Vc8fSRHsMwWGwyaIc,43512
118
+ pcse/soil/n_soil_dynamics.py,sha256=Etazv0KXVgG4401TaYLg42sQFp7ERIn7Xd4JTsT0PGw,7428
119
+ pcse/soil/snomin.py,sha256=rFEwJ3_P4uS5sUIZ_pPBmRmoqRlJ9v7bhVkz3MNKQrg,52780
120
+ pcse/soil/snowmaus.py,sha256=fdNc1DZbWpnLZ1iPxIGUoYCj0RmWqWbZ_WzH_XdYFf4,7044
121
+ pcse/soil/soil_profile.py,sha256=bI2WqvJbSQu1JMNus2ZMLtYiQF0comygO0HAwTRYw00,18353
122
+ pcse/soil/soil_wrappers.py,sha256=WQN0BKeTutOpk-J7ZWJ567T6VgQfTiXcIK1MxgMcvaw,4014
123
+ pcse/soil/soiln_profile.py,sha256=OPqK-PqLuNJ0Ltj-b9jo5cPkKLK7zblw0lbtRPXI-7g,8067
124
+ pcse/tests/__init__.py,sha256=s7CGyFoedVh3DWeD6W5wY3soHqdFUQvy1gMTBQJbSuc,1607
125
+ pcse/tests/run_wofost.py,sha256=xWdoETwq3b_QbaJRquB5LkzjyxF11LhI_-r8jP2WoWA,4710
126
+ pcse/tests/test_abioticdamage.py,sha256=0ZxHJYUKxrJV-B5F3m8xPG2e53nqU4VWo08QO1bG-EA,2868
127
+ pcse/tests/test_agromanager.py,sha256=xmMliILkDdnVS2KlbYKmrHDVbawNfyBXJCw0L5z58Ak,10854
128
+ pcse/tests/test_assimilation.py,sha256=dDY1vyttWp_bnz9x-KbsPW-knmhlF52w-2hw6NxiiRk,3344
129
+ pcse/tests/test_evapotranspiration.py,sha256=yWycf0YOnLf9qlrE1ppoEt3LEqgiEzdBFckGw0nXjNo,5498
130
+ pcse/tests/test_lintul3.py,sha256=2h_YFYunLrFZz1qhzkYbB38bnetDMHgUu8L7HQ66ryQ,3360
131
+ pcse/tests/test_partitioning.py,sha256=gwn839vsWTXdtEchhnvr-EWHR_5Ck97Rltdj1u3cofg,2570
132
+ pcse/tests/test_penmanmonteith.py,sha256=smrUZ47S1i8vasNq_v8i19qObjKbs5G3ob93ggqEu80,3226
133
+ pcse/tests/test_respiration.py,sha256=S0qseX8dBEwGC8Gg_BudRL_MSYeGRkcickGOBsYvJBI,2049
134
+ pcse/tests/test_wofost72.py,sha256=9k82Wt9etkCfJp6SBTR51SGriDNon-2W-ZF41hfP4iQ,9991
135
+ pcse/tests/test_data/10870_munchen_flughafen.csv,sha256=bn0keKbnf9cTv4jsVfD_5gtrOS3Q9zwvaj-Z251vg48,28898
136
+ pcse/tests/test_data/2297_sweden.csv,sha256=sX5Mjj4-Jw2nJi35TShkomX-mrl8SQ5EtvjwglDvS74,26867
137
+ pcse/tests/test_data/8011_asturias.csv,sha256=0GYKZjaOaRLru8aeEPf6H9zbPm6HAy3SKidi0wDbsUI,27745
138
+ pcse/tests/test_data/8443_ronda.csv,sha256=ujUoWY4jf6sOU2JszMPVSSoV6S7qvQhqrgkdSjkGMxU,21248
139
+ pcse/tests/test_data/LINTUL3_reference_results.csv,sha256=ILoZqoRqqEk8K0AU39y6GgyGS9xio9X1fzptZaDxyho,44297
140
+ pcse/tests/test_data/NL1.976,sha256=EOVt1ww16b8OWPISRtjc6mfakKCtadD3zdUl5sHeylg,20314
141
+ pcse/tests/test_data/NL1.977,sha256=jQgHPG0GounoS5YUm6q8JeVyntFt_ELXvn2W8Oxaymo,20261
142
+ pcse/tests/test_data/NL1.978,sha256=EAu9naFxqxdre_1q5dvbeir-i3VgjQRZHB3VwhykRYE,20367
143
+ pcse/tests/test_data/NL1.979,sha256=_Ego-90kIhBR3v4Bh5DmZyuYz4mQDtj6RA5jYx_R4lI,20261
144
+ pcse/tests/test_data/NL1.980,sha256=QLPOdBpX0-b5ptuhBufULggk6H9tzokvfmC6ID5_RKc,20314
145
+ pcse/tests/test_data/NL1.981,sha256=Mcg2I7IaIq-RRpN31t-zgD_M3vFBFsvzjXOaGiWhlds,20261
146
+ pcse/tests/test_data/NL1.982,sha256=JodT_8keho75SHY6jXWYH4IkoovfeldfWI2uBschdVc,20261
147
+ pcse/tests/test_data/NL1.983,sha256=4648HUFVdQDwHm4htbITM-VlkJNwECCK20xYWV7tY_k,20261
148
+ pcse/tests/test_data/NL1.984,sha256=9tkmEgMbpi49pykDC_e1y1PZhqaFzglUpFwlNTj-yr8,20314
149
+ pcse/tests/test_data/NL1.985,sha256=fbjVYX6fpaIY4ao2p3PIIoBWGP72itr9tNavGwr8z8M,20288
150
+ pcse/tests/test_data/NL1.986,sha256=1a4qr5I3HBfn03Z_NadjSqWpRZNeVYqSegQrOQB-0ic,20367
151
+ pcse/tests/test_data/NL1.987,sha256=BfR2n5sao0Bp3Wab_nb6rki_nzoa0ksttHu0UgAdbq8,21618
152
+ pcse/tests/test_data/NL1.988,sha256=pIAGJvi_SnN-J53jhUIwbSQABZvm-5aaC-7H2RFOeZY,21498
153
+ pcse/tests/test_data/NL1.989,sha256=1DfR41KrZLVoP4tI8AMYrc9ufD9EHve52czbICXQNZI,22366
154
+ pcse/tests/test_data/NL1.990,sha256=jHSYvhuarHnDBOvSx-DpkxrOJboLBuVd8LyFRPe5pR0,20587
155
+ pcse/tests/test_data/NL1.991,sha256=YIIYbEk0YPzcjTirEA2Mz-vWKYFwLVKoFuyO64epkpE,13979
156
+ pcse/tests/test_data/NL1.992,sha256=zuOO6JQ-hUmuPGelKZhNFLdmyBye55RAAdavZiWlwKs,20268
157
+ pcse/tests/test_data/NL1.993,sha256=LNn5fKokoU5aZO_JRTkW7H8OEIe4iSxd1AqaVjlaC0c,20090
158
+ pcse/tests/test_data/NL1.994,sha256=1P41uB9CpeFcQUf2AVsGt73BTwDk47Cjrf0AbtoGcCo,20089
159
+ pcse/tests/test_data/NL1.995,sha256=5k84HgBcmeRLQgdUVDQ0eVwkMhfGROOPptPp1bNsDC8,20164
160
+ pcse/tests/test_data/NL1.996,sha256=gXoTNzBtiiwnr6k3wqR3tHwRC_zQVYa5jD7BgmH8Xiw,20266
161
+ pcse/tests/test_data/NL1.997,sha256=5UJA4RU0eq4uIcut0kkmZwZGKS0zM5QOSnmamNxZa4Q,20090
162
+ pcse/tests/test_data/NL1.998,sha256=jFJKgUPqKHEoeDfkBWqzfFretYw2VggyojQ2iy7QKTg,20090
163
+ pcse/tests/test_data/NL1.999,sha256=f8snNqDeVuvu4hsEJtio9qcNuHqgd4DwvhGd1QszeQg,20090
164
+ pcse/tests/test_data/__init__.py,sha256=FLWGUQTASchk4-Eyd33m6TFnSFydXf6xPKJAW4xOSyU,274
165
+ pcse/tests/test_data/evapotranspiration_testdata.py,sha256=NsAAXopBPmtZ6ao08M5fiYRrwfhWGnb9wHpVhMitVCk,10546
166
+ pcse/tests/test_data/frostol_testdata.py,sha256=FRqJQlffEFq_sxjGJTOOdDYyEwEMufgJC-t5pyrUhWI,29399
167
+ pcse/tests/test_data/lintul3.csv,sha256=th3sv9zE6raZC0-L37E0KiQy6VesX2BE6XZMlT2AgVc,39407
168
+ pcse/tests/test_data/lintul3_springwheat.agro,sha256=7J13xz0TtCMZ5wNQt7Y-IU1DpBR4E4M08LQ8Ppmrvfw,567
169
+ pcse/tests/test_data/lintul3_springwheat.crop,sha256=DyWHBxi1pxhUum0pWwCRdmmdZulISXo_uWzhlZtbJ7Q,4916
170
+ pcse/tests/test_data/lintul3_springwheat.site,sha256=7onYvHzHwvTbTVay3NsGloP6UeagaCoWL_notMCCcAM,472
171
+ pcse/tests/test_data/lintul3_springwheat.soil,sha256=lDD_iHCWc9pRK523yaVlgNOQRvYgGWG6lUbiZ4lrwHk,453
172
+ pcse/tests/test_data/respiration_testdata.py,sha256=QWmcJS4SSg50Owhg1hLrUGkYo9tPdsEkNYVVVVbL24U,2170
173
+ pcse/tests/test_data/wofost_npk.agro,sha256=c_8Jczn24aSnRjAGd4WY3algeM2P-WtV4xbWGPvLUo4,697
174
+ pcse/tests/test_data/wofost_npk.crop,sha256=42JzHDBf0ZAFJLa4VXabXMD4daG152ZiS7-tTuTu5H0,10954
175
+ pcse/tests/test_data/wofost_npk.site,sha256=Zu5pkjwjxYj_l_U6Rm6L8UPrmrRX08Z01Z3T6KxIlTI,1332
176
+ pcse/tests/test_data/wofost_npk.soil,sha256=IWE5fPK4obPOWD4Tn7kPb_DYTPWQWol6vWTiGumaBTU,1973
177
+ pcse/tests/test_data/wofost_npk_potential.csv,sha256=ZTqRnd9VYbOtm-Qd8yTaCG1qDe0tqW8GqEqxIJgVdVc,59230
178
+ pcse/tests/test_data/wofost_npk_waterlimited.csv,sha256=6hkPGDAP-5Iet3Kem1O95GxaEarBAT-X1S4T2wdPW0M,68094
179
+ tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
180
+ tests/__main__.py,sha256=IxSzIuMg14mWBMLnsmy82VWu1gjgviETOaP1LZldAPQ,1005
181
+ tests/run_tests.py,sha256=EeTvroXJW7woiUgtb4QJG6nxArTn3jJxDzO5x3_yltE,5405
182
+ tests/test_code.py,sha256=7QezX_caiyBBwWvLWSEViPIh3Vs2Vr6czxGC-VUy8so,8712
183
+ PCSE-6.0.9.dist-info/LICENSE,sha256=EahQ81CxAPPsTC5FrvdAxcFQYgmng-2kbzJOVtxQgNM,694
184
+ PCSE-6.0.9.dist-info/METADATA,sha256=qFFufkNpCLcGbT6orVNLDDVqCJAdGz3V3JfH80NdT5k,9589
185
+ PCSE-6.0.9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
186
+ PCSE-6.0.9.dist-info/top_level.txt,sha256=7b3cdbFBf7cWQS6kSYz9MPnvl3JAyOUTl6ejDoH2KIo,15
187
+ PCSE-6.0.9.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (75.8.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ exp
2
+ pcse
3
+ tests
exp/__init__.py ADDED
File without changes
exp/__main__.py ADDED
@@ -0,0 +1,22 @@
1
+ import argparse
2
+
3
+ from . import process_experiment_collections
4
+
5
+
6
+ def create_parser():
7
+ parser = argparse.ArgumentParser(description='Run PCSE experiment collections', prog="python -m exp")
8
+ parser.add_argument('--output_dir', dest='output_dir', action='store', default=None,
9
+ help='Directory to write the output figures from the experiments', required=False,
10
+ )
11
+ return parser
12
+
13
+
14
+
15
+ def main():
16
+ parser = create_parser()
17
+ args = parser.parse_args()
18
+ process_experiment_collections.main(args.output_dir)
19
+
20
+
21
+ if __name__ == "__main__":
22
+ main()
@@ -0,0 +1,210 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright (c) 2021 Wageningen Environmental Research, Wageningen-UR
3
+ # Allard de Wit (allard.dewit@wur.nl), March 2021
4
+ """Processes the YAML files that define the experiment collections in the 'exp' folder
5
+
6
+ Each experiment is run and the summary results are collected for each experiment in order
7
+ to summarize the results over the entire experiment collection.
8
+ """
9
+ from pathlib import Path
10
+ import importlib
11
+ import math
12
+ import pickle
13
+ import tempfile
14
+
15
+ import yaml
16
+ import pandas as pd
17
+ import matplotlib
18
+ pd.plotting.register_matplotlib_converters()
19
+ matplotlib.use("Agg")
20
+ import matplotlib.style
21
+ matplotlib.style.use("ggplot")
22
+ import matplotlib.pyplot as plt
23
+
24
+ from pcse.base import ParameterProvider, WeatherDataProvider, WeatherDataContainer
25
+ from pcse.util import reference_ET
26
+
27
+ this_dir = Path(__file__).parent
28
+ exp_dir = this_dir
29
+ exp_results_dir = None
30
+
31
+
32
+ class YAMLWeatherDataProvider(WeatherDataProvider):
33
+ """A WeatherDataProvider which loads the weatherdata contained within the YAML file
34
+ """
35
+
36
+ def __init__(self, yaml_weather):
37
+ super().__init__()
38
+ for weather in yaml_weather:
39
+ if "SNOWDEPTH" in weather:
40
+ weather.pop("SNOWDEPTH")
41
+ if "ET0" not in weather:
42
+ E0, ES0, ET0 = reference_ET(**weather)
43
+ weather["ET0"] = ET0/10.
44
+ weather["ES0"] = ES0/10.
45
+ weather["E0"] = E0/10.
46
+ wdc = WeatherDataContainer(**weather)
47
+ self._store_WeatherDataContainer(wdc, wdc.DAY)
48
+
49
+
50
+ def run_model(yaml_exp):
51
+ """Runs the model for given experiment and returns the simulation results.
52
+ """
53
+ # Load weather, parameters and agromanagement
54
+ wdp = YAMLWeatherDataProvider(yaml_exp["WeatherVariables"])
55
+ params = ParameterProvider(cropdata=yaml_exp["ModelParameters"])
56
+ agro = yaml_exp["Agromanagement"]
57
+
58
+ # Retrieve the model we need to run
59
+ module = importlib.import_module(yaml_exp["Model"]["module"])
60
+ model_class = getattr(module, yaml_exp["Model"]["model"])
61
+
62
+ # Start and run the model
63
+ model = model_class(params, wdp, agro)
64
+ model.run_till_terminate()
65
+
66
+ # Retrieve and return output
67
+ df = pd.DataFrame(model.get_output())
68
+ df = df.set_index("day")
69
+ df_summary = pd.DataFrame(model.get_summary_output())
70
+
71
+ return df, df_summary
72
+
73
+
74
+ def get_experimental_data(yaml_exp):
75
+ """gets the experimental data from the YAML file and returns the time-series and summary variables as a dataframe.
76
+ """
77
+ df_exp = pd.DataFrame(yaml_exp["TimeSeriesObservations"]).set_index("day")
78
+ df_exp_sum = pd.DataFrame(yaml_exp["SummaryObservations"])
79
+ return df_exp, df_exp_sum
80
+
81
+
82
+ def build_experiment_plots(df, df_exp, metadata):
83
+ """Plots the experimental observed variables against the simulated variables
84
+ """
85
+
86
+ # Determine how many plots we need, depending on number of variables in the experiment
87
+ nfigs = len(df_exp.columns)
88
+ if nfigs == 1:
89
+ fig, axes = plt.subplots(figsize=(12,8))
90
+ axes = [axes,]
91
+ else:
92
+ nrows = math.ceil(nfigs/2.)
93
+ fig, axes = plt.subplots(nrows=nrows, ncols=2, figsize=(12,6*nrows))
94
+ axes = axes.flatten()
95
+
96
+ # Loop over variables and axes to make plots
97
+ for varname, ax in zip(df_exp.columns, axes):
98
+ variable_info = metadata["variables"][varname]
99
+ ax.plot(df_exp[varname], marker="o", color="red", linestyle="", label="Observed")
100
+ ax.plot(df[varname], marker="", linestyle="-", color="black", label="Simulated")
101
+ ax.set_title(variable_info["short_title"])
102
+ ax.set_ylabel(variable_info["unit"])
103
+ ax.legend()
104
+ title = "{location} - {year}: {experiment_type}".format(**metadata)
105
+ fig.suptitle(title)
106
+
107
+ fname = "{crop}_{location}_{year}_{experiment_type}.png".format(**metadata)
108
+ fname_fp = exp_results_dir / fname
109
+ fig.savefig(fname_fp)
110
+ plt.close("all")
111
+
112
+
113
+ def load_experiment(fname):
114
+ """Load the experiment file and create a cache file if needed
115
+ """
116
+ f = exp_dir / fname
117
+ f_cache = Path(str(f) + ".cache")
118
+ if f_cache.exists():
119
+ if f_cache.stat().st_mtime > f.stat().st_mtime:
120
+ with open(f_cache, "rb") as fp:
121
+ r = pickle.load(fp)
122
+ return r
123
+
124
+ # If no or outdated cache, (re)load YAML file
125
+ r = yaml.safe_load(open(f))
126
+ with open(f_cache, "wb") as fp:
127
+ pickle.dump(r, fp, protocol=pickle.HIGHEST_PROTOCOL)
128
+
129
+ return r
130
+
131
+
132
+ def run_experiment(exp_file):
133
+ """Runs the experiment for given experiment file.
134
+
135
+ It returns dataframes containing the summary variables for both the experiment and the simulation.
136
+ """
137
+ print(f" - Processing experiment: {exp_file}")
138
+ yaml_exp = load_experiment(exp_file)
139
+ df, df_summary = run_model(yaml_exp)
140
+ df_exp, df_exp_sum = get_experimental_data(yaml_exp)
141
+ build_experiment_plots(df, df_exp, yaml_exp["Metadata"])
142
+ return df_summary, df_exp_sum
143
+
144
+
145
+ def build_summary_plots(collection_fname, exp_collection, df_summary, df_exp_summary):
146
+ """Builds the plots which summarize the experiment collection.
147
+ """
148
+ nfigs = len(exp_collection["VariablestoSummarize"])
149
+ if nfigs == 1:
150
+ fig, axes = plt.subplots(figsize=(12,8))
151
+ axes = [axes,]
152
+ else:
153
+ nrows = math.ceil(nfigs/2.)
154
+ fig, axes = plt.subplots(nrows=nrows, ncols=2, figsize=(12,6*nrows))
155
+ axes = axes.flatten()
156
+
157
+ for varname, ax in zip(exp_collection["VariablestoSummarize"], axes):
158
+ variable_info = exp_collection["Metadata"]["variables"][varname]
159
+ ax.scatter(df_summary[varname], df_exp_summary[varname], marker="o")
160
+ ax.plot(variable_info["vrange"], variable_info["vrange"], marker="", linestyle="--", color="k")
161
+ ax.set_title(f'{variable_info["long_title"]} - [{variable_info["unit"]}]')
162
+ ax.set_ylabel("Observed")
163
+ ax.set_xlabel("Simulated")
164
+ ax.set_xlim(variable_info["vrange"])
165
+ ax.set_ylim(variable_info["vrange"])
166
+ ax.set_aspect("equal")
167
+
168
+ exp_basename = collection_fname.name.split(".")[0]
169
+ meta = exp_collection["Metadata"]
170
+ fname = "{base}_{crop}_{experiment_type}.png".format(base=exp_basename, **meta)
171
+ fname_fp = exp_results_dir / fname
172
+ fig.savefig(fname_fp)
173
+
174
+
175
+ def run_experiment_collection(collection_fname):
176
+ """Runs all experiments in given experiment collection.
177
+ """
178
+
179
+ exp_collection = yaml.safe_load(open(collection_fname))
180
+ meta = exp_collection["Metadata"]
181
+ print("Processing collection for {crop}: {experiment_type}".format(**meta))
182
+
183
+ df_summary = pd.DataFrame()
184
+ df_exp_summary = pd.DataFrame()
185
+ for i, fname in enumerate(exp_collection["Experiments"]):
186
+ df1, df2 = run_experiment(fname)
187
+ df_summary = df_summary.append(df1)
188
+ df_exp_summary = df_exp_summary.append(df2)
189
+
190
+ build_summary_plots(collection_fname, exp_collection, df_summary, df_exp_summary)
191
+
192
+
193
+ def main(output_dir=None):
194
+
195
+ global exp_results_dir
196
+ if output_dir is None:
197
+ exp_results_dir = Path(tempfile.gettempdir()) / "exp_results"
198
+ else:
199
+ exp_results_dir = Path(output_dir) / "exp_results"
200
+ exp_results_dir.mkdir(parents=True, exist_ok=True)
201
+ print(f"Writing expriment results to: {exp_results_dir}")
202
+
203
+ for fname in sorted(exp_dir.iterdir()):
204
+ if fname.suffix != ".yaml":
205
+ continue
206
+ run_experiment_collection(fname)
207
+
208
+
209
+ if __name__ == "__main__":
210
+ main()