ncss-tech / jNSMR

R frontend for the Java Newhall Simulation Model (jNSM) -- "A Traditional Soil Climate Simulation Model"
https://ncss-tech.github.io/jNSMR
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

XMLResultsExporter only available with Newhall v1.6.1 JAR #3

Closed dylanbeaudette closed 2 years ago

dylanbeaudette commented 2 years ago

Looks like the current GH version is using newhall-1.6.4.jar. Any plans to enable XML output, or is there a better way?

brownag commented 2 years ago

The older JAR files are included in the Java data in the package, so all you need to do is set this package option prior to loading {jNSMR}:

options(jNSMR.JAR_SUFFIX="-1.6.1")
library(jNSMR)

This could be better documented. I have no plans to re-create the XML parsing code in modern Java for the >1.6.1 builds that support batching, but didn't think anyone would need it. Its a neat format, though, and the output for a single site analysis is quite comprehensive. What are you using it for, if I may ask?

dylanbeaudette commented 2 years ago

No problem, I don't need it. Was just following some examples and thinking about the possible output formats. A note in the docs would be good. Thanks.

Batch mode was more appropriate for the task at hand, using that.