NoiseModelling icon indicating copy to clipboard operation
NoiseModelling copied to clipboard

"Frequency band" error with certain parameter sets

Open sachabaclet opened this issue 1 year ago • 2 comments

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!

sachabaclet avatar Apr 11 '23 15:04 sachabaclet

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.

nicolas-f avatar Apr 12 '23 08:04 nicolas-f

Hi Nicolas,

Thank you for this clarification.

sachabaclet avatar Apr 12 '23 11:04 sachabaclet