Welcome, Guest
Username: Password: Remember me

TOPIC: Tomawac - Artemis chaining

Tomawac - Artemis chaining 4 years 2 weeks ago #37100

  • TimN
  • TimN's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 67
Hi Costas,

I managed to run the python scripts and all seems well, as far I can judge.
There is only one thing at the beginning of the scan of the .lqd file which irritates me.
That's a timestamp of 1972...
I've attached the scan log of the .lqd as well as my data of the artemis simulation.

Thanks for having a look.
Tim
Attachments:
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37101

  • TimN
  • TimN's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 67
Hi Costas,

the updload of .lqd and .spe were denied because of the file extension.
I have manually changed the extensions to.slf; maybe you can use them by manually changing the extensions back to its origin.

art.self = art.lqd
tom_KB.slf = tom_KB.spe

Cheers,
Tim
Attachments:
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37105

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hi Tim,
Unfortunately, I am affected by a bug from the 2004 Windows update and since numpy is broken, so is TELEMAC apparently. So I cannot test your project (or any other telemac computation) until this is resolved. :S

Fortunately, your scan indicates the problem.
Your lqd file contains:
Variables :
- ELEVATION Z M
- VELOCITY U M/S
- VELOCITY V M/S
- SALINITY
- TEMPERATURE
Which are the default variable to extract for TELEMAC3D boundary file and used to be hardcoded in the script. This has been changed in newer versions and you can specify the variables to extract. In your case that should be:
varnames = ['WAVE HEIGHT HM0', 'MEAN DIRECTION'],
varunits = ['M', 'DEG']
If you can't, that means you have too old scripts and you need to update your installation or hardcode them in the scipt.
Costas
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37106

  • Fab
  • Fab's Avatar
Hi Tim and Costas,

I apologize for the late answer.
Unfortunately, I didn't manage to run correctly ARTEMIS with nesting from TOMAWAC.

I agree with Costas, you have to specify the variables to be extracted (varnames and varunits), because default are TELEMAC3D ones (see lines 66 to 68 in v8p1r1 script).

Thank you both for this very interesting exchange.

Regards
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37107

  • TimN
  • TimN's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 67
Hi Guys,

Costas, sorry to hear. That's a pitty and obviously unwanted extra work.

By your explanations, I now understand the problem. I've tried, to use the syntax Costas put here to change the variables, but I got the message "bad pattern". From the converter.py script, I can say that the options "varnames" and "varunits" do exist.

I now trie to hardcode the variables in the convert_to_bnd.py script, hoping to get the variables this way.

If you have any more recommendations on how to get the Variables into the .lqd I'd be happy.

Cheers,
Tim
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37109

  • TimN
  • TimN's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 67
so the syntax in V8p1 is
converter.py generate_bnd --varnames 'WAVE HEIGHT HM0' --varunits 'M' ART.cli ART.slf Tom.slf Art.lqd to extract the wave heigth.

However, I'm not able to extract two variables. I've tried several syntax variations including brackets, semi-colons, comma etc. but I wasn't able to get any further:(
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37108

  • TimN
  • TimN's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 67
I guess I made another step in understanding the problem. When I run converter.py it seems like the module is really case sensitive. Like you can see from the attached picture it's not able to find 'WAVE HEIGTH HM0' because it seems the script is looking for 'WAVE HEIGHT HM0:'.
I've eliminated all other variables from the convert_to_bnd.py script to check if might be any hesitations. But still having just 'WAVE HEIGHT HM0' and 'MEAN DIRECTION' converter is not able to find the data in the TOMAWAC results file when converting.
Attachments:
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37112

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hi Tim,
Unfortunately, I am not able to run any TELEMAC script because of this Windows-numpy bug, hence I cannot check the LQD generation myself. However, I noticed a typo in your logs:
WAVE HEIGTH HM0
instead of
WAVE HEIGHT HM0
Can you check this is not the issue?
Costas
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37113

  • TimN
  • TimN's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 67
Hi Costas,

thanks for that, I didn't see the typo. I now tried several variations in grabbing the variables. First I did run the --varnames --varnunits as options of converter.py from the comand, which didn't worked (I still think I don't get the syntax right).
I then went back to hardcoding and changed the variables in converter_to_bnd.py with the right spelling. converter.py still gave the same error and wasn't able to find the two relevant variables HM0 and MEAN DIRECTION. Therefore I gave it another trie and deleted the remaining variables, and that did the trick.

Having only the two relevant Variables in convert_to_bnd.py and then running converter.py gave me a .lqd holding the variables.

Tim
The administrator has disabled public write access.

Tomawac - Artemis chaining 4 years 2 weeks ago #37114

  • Fab
  • Fab's Avatar
Hi Tim and Costas,

Just to say I managed to generate lqd file (after solving my python3 installation problem) and run correctly ARTEMIS with nesting from TOMAWAC option 2.

I met some problems specifying varnames and varunits in the comand line, so I hardcoded it directly in the script (I replaced TELEMAC variables and units by TOMAWAC ones in the default values, see my post below).

Regards,
The administrator has disabled public write access.

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.