NoiseModelling
NoiseModelling copied to clipboard
"Frequency band" error with certain parameter sets
Hi!
NoiseModelling version 4.0.4 without GUI
Describe the bug
When trying to run the Noise_level_from_source
script with the following parameters (in a bash script):
./bin/wps_scripts -w ./ -s ${nm_dir}/NoiseModelling/Noise_level_from_source.groovy \
-tableBuilding BUILDINGS \
-tableSources LW_ROADS \
-tableReceivers RECEIVERS \
-confReflOrder 2 \
-confMaxSrcDist 750 \
-confMaxReflDist 300 \
-confThreadNumber 12 \
-confDiffVertical true \
-confDiffHorizontal true \
-confSkipLevening true \
-confSkipLnight true \
-confSkipLden true \
-confExportSourceId true \
-confSkipLday false
I encounter the following error:
[main] ERROR org.noise_planet - java.sql.SQLException: Source table LW_ROADS does not contains any frequency bands
Removing the parameter confSkipLday
seems to solve the issue, and the script runs as expected:
./bin/wps_scripts -w ./ -s ${nm_dir}/NoiseModelling/Noise_level_from_source.groovy \
-tableBuilding BUILDINGS \
-tableSources LW_ROADS \
-tableReceivers RECEIVERS \
-confReflOrder 2 \
-confMaxSrcDist 750 \
-confMaxReflDist 300 \
-confThreadNumber 12 \
-confDiffVertical true \
-confDiffHorizontal true \
-confSkipLevening true \
-confSkipLnight true \
-confSkipLden true \
-confExportSourceId true
Am I using the confSkipLday
parameter wrong, or is this behaviour unexpected?
Thanks for your help!
Hi.
A boolean option is represented on a command line by its presence. For example, if option is present, then its value is true, otherwise, it is considered as false.
Hi Nicolas,
Thank you for this clarification.