Jump to content

Altitude for location


A.A

Recommended Posts

In climate data, Metosyn picks up the altitude by itself after generating weather data by longitude latitude. Some locations, it picks up the accurate altitude but for some locations, it shows 0m which is wrong compared to realistic altitude data. Why is it so? Secondly, is there any way we can adjust that altitude for specific longitude and latitude?

Link to comment
Share on other sites

Hello!

Quote

Why is it so?

The (altitude) data is retrieved from external sources.

Quote

Secondly, is there any way we can adjust that altitude for specific longitude and latitude?

In the program there is no official way to edit the altitude at the moment. However, I will provide you with a script that allows you to change the altitude of a given weatherfile (.wbv).

Please follow these steps

  1. Download the ps1 script (powershell script, windows) from the attachment of this answer
  2. Copy the WBV (f.e. "Berlin.wbv") you want to change in the folder of the script (f.e. Desktop/WbvBackups) twice ("Berlin.wbv" - file to change the altitude, "Berlin_backup.wbv" file as a backup of the old state)
  3. Delete the WBV in MeteoSyn via Listview context menu (Headsup - this will delete the file, so make sure you have the backup from step 2)image.png
  4. Open a shell in the folder (f.e. Desktop/WbvBackups). You can do this in the explorer by navigating to the destination folder and typing "cmd" in the path, then press Enter. image.png
  5. Activate the script by the following command : powershell -File "PATH_TO_THE_SCRIPT" -filePath "PATH_TO_WBV" -newValue ALT_VALUEimage.png
    1. powershell says it will open the powershell (you usually need administrator rights for that)
    2. the string after -File directs to the script path
    3. the string after -filePath directs to the WBV path
    4. the number after -newValue is the new altitude
  6. Import the changed file in meteoSyn image.png
  7. Check if the new altitude is correct. Do a simulation with the new file to make sure it works as intended. If everything succeeds you may delete the backup from step 2.


I hope this is a good work around for now!? I will forward the feature request to the team to make this process easier from within the program, but cannot give you a specific date for the implementation.

Best,
Ben

change_wbv_altitude_value.ps1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...