Giter Club home page Giter Club logo

Comments (5)

nicolas-f avatar nicolas-f commented on June 1, 2024

Hi,

In the tutorial the sound source define only one frequency:

{
"type": "FeatureCollection",
"name": "Point_Source",
"crs": {"type": "name", "properties": { "name": "urn:ogc:def:crs:EPSG::2154" } },
"features": [{"type": "Feature", "properties": { "PK": 1, "LWD500": 100.0, "YAW": 45, "PITCH": 0, "ROLL": 0, "DIR_ID" : 1 },
              "geometry": {"type": "Point", "coordinates": [223771.0727, 6757583.2983, 0.0]}
             }]
}

but your sound source define other frequencies not defined in the source directivity:

{
"type": "FeatureCollection",
"name": "source2",
"features": [
{ "type": "Feature", "properties": { "Join_Count": 0, "TARGET_FID": 0, "PK": 0,
 "LWD63": 0.0, "LWD125": 0.0, "LWD250": 0.0, "LWD500": 150.0, "LWD1000": 0.0, "LWD2000": 0.0, "LWD4000": 0.0,
 "LWD8000": 0.0, "LWE63": 0.0, "LWE125": 0.0, "LWE250": 0.0, "LWE500": 150.0, "LWE1000": 0.0, "LWE2000": 0.0,
 "LWE4000": 0.0, "LWE8000": 0.0, "LWN63": 0.0, "LWN125": 0.0, "LWN250": 0.0, "LWN500": 150.0, "LWN1000": 0.0,
 "LWN2000": 0.0, "LWN4000": 0.0, "LWN8000": 0.0, "YAW": 240.0, "PITCH": 0.0, "ROLL": 0.0, "Height": 40,
 "SirenenID": "SU_GI_FRIS03", "Anmerkung": null, "DIR_ID": 15 },
 "geometry": { "type": "Point", "coordinates": [ 81564.823699999600649, 64447.610799999907613, 39.9999765 ] } }
]
}

NoiseModelling is missing a check for this type of inconsistency in input data. A patch will be provided.

To fix your project, you have to provide only LWD500 column as you compute only day value.

from noisemodelling.

nicolas-f avatar nicolas-f commented on June 1, 2024

Bonus you can generate a plot of your directivity with this code:

def runScript(connection, scriptFile, arguments) {
    Logger logger = LoggerFactory.getLogger("script")
    GroovyShell shell = new GroovyShell()
    Script scriptInstance = shell.parse(new File(scriptFile))
    Object result = scriptInstance.invokeMethod("exec", [connection, arguments])
    if(result != null) {
        logger.info(result.toString())
    }
    return result
}

        def htmlCode = runScript(connection, "noisemodelling/wps/NoiseModelling/PlotDirectivity.groovy",
          ["confDirId": 15, "tableSourceDirectivity": "Directivity"]);
        
        def htmlfile = new File('directivity.html')
	htmlfile.write(htmlCode)

image

from noisemodelling.

berensc avatar berensc commented on June 1, 2024

from noisemodelling.

nicolas-f avatar nicolas-f commented on June 1, 2024

Merci Nicolas L’option «directivity » marche maintenant. Mais les résultats ne sont pas cohérents avec la description du yaw dans la documentation. @.*** Chez nous avec yaw = 90 l’orientation de la source est ouest pas est et yaw =0 est sud et pas nord. Tous les calcul avec la même « directivity.csv » Phi LW500 0-90 0 90-270 -50 270-360 0 @.***

D’après les graphique de la source, elle émet à l'arrière et non à l'avant, c'est peut être pour ça.

from noisemodelling.

berensc avatar berensc commented on June 1, 2024

Salut Nicolas
C'est tout à fait exact. J'ai utilisé le faux "directivity.csv " Ici le bon fichier.
Directivity.csv

from noisemodelling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.