Welcome, Guest
Username: Password: Remember me

TOPIC: [trunk] Read scpectrum files (.spe)

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25334

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello all,

In the past (v7p1) I was able to open .spe files with BlueKenue but now (trunk) I can't (even .spe files from examples). It is supposed to be a SERAFIN format that BK is able to read. Has anything changed in the format?

Best Regards,
Costas
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25335

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
Hello Costas,

In fact you're right some things changed in the format from 7P1 to 7P2. Spectrum are defined on quadrangle and not on triangle but in both case it is a serafin format (if you don't specify that it is a med format).
But that was to correct an error introduced in V7P1.
In V6P3 spectrum were already defined on quadrangle. So that shouldn't explain the fact you can't read your spectrum on BK.

Did you try to read it with fuda ? Unfortunately I don't have BK.

Best regards

Thierry
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25336

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
there are probably double precisions ...

I have already made the necessary changes in HERMES (non yet committed to the trunk) to make this less of a trouble. I will try to commit in a couple of weeks.

In the meantime, try using the runSELAFIN.py alter --float options to switch your results.

Hope this helps,

Sébastien.
The administrator has disabled public write access.

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25339

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
If it is the problem, then you could precise
SPECTRUM FILE FORMAT='SERAFIN '
which means single, SERAFIND would mean double precision
but i would be surprised because 'SERAFIN ' is the default in the tomawac dico.

Thierry
The administrator has disabled public write access.

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25342

  • huyquangtran
  • huyquangtran's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 271
  • Thank you received: 23
Alas... last week I got the same problem while openning *.spe. At that time I thought my BlueKenue had an error, so I used Tecplot to open this file. I think Thomas Benson Matlab scripts work as well.

Untitl1ed.jpg
The administrator has disabled public write access.

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25348

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello all,
The problem originated trying to read a .spe file from ARTEMIS (with LECWAC1). I got an error (that is described below) and wanted to see if the .spe file is created OK. I could not open it in BK, so the next step was to open the .spe file in the ARTEMIS example chwac1.
sebourban wrote:
there are probably double precisions ...
I thought about this but when ARTEMIS tried to load a .spe file from TOMAWAC I got this:
 OPENING FILES FOR ARTEMIS
  - FILE    \1.Artemis\art_yfist_1_S3_year1_init.cas_2017-02-21-17h02min19s\ARTGEO00003-00000 OF TYPE BIG_ENDIAN
  - FILE    \1.Artemis\art_yfist_1_S3_year1_init.cas_2017-02-21-17h02min19s\ARTGEO00003-00000 IS SINGLE PRECISION
  - FILE    \1.Artemis\art_yfist_1_S3_year1_init.cas_2017-02-21-17h02min19s\ARTTC1 OF TYPE BIG_ENDIAN
  - FILE    \1.Artemis\art_yfist_1_S3_year1_init.cas_2017-02-21-17h02min19s\ARTTC1 IS SINGLE PRECISION

ARTTC1 IS SINGLE PRECISION

In the same case, I had tried hardcoding FFORMAT = 'SERAFIN ' or 'SERAFIND' in LECWAC1 but it didn't make a difference. The error was (I have added write statements before every CALL):
========== READING SPECTRUM FROM TOMAWAC ==========
 CALLING GET_MESH_COORD
 CALLING CHECK_CALL
 CALLING GET_MESH_COORD
 CALLING CHECK_CALL

 CALLING GET_DATA_NVAR

 CALLING CHECK_CALL
 CALLING CHECK_ALLOCATE
 CALLING CHECK_ALLOCATE

 CALLING GET_DATA_VAR_LIST

 CALLING CHECK_CALL
 CALLING FIND_VARIABLE
 ERROR           -1 DURING CALL OF GET_DATA_TIME_SRF:READ
 ERROR TEXT: UNKNOWN ERROR

 PLANTE: PROGRAM STOPPED AFTER AN ERROR
 RETURNING EXIT CODE:            2

I now tried FFORMAT = 'MED ' and I got
========== READING SPECTRUM FROM TOMAWAC ==========
 CALLING GET_MESH_COORD
 CALLING CHECK_CALL
 ERROR         1006 DURING CALL OF GET_MESH_COORD:X:NBI1
 ERROR TEXT: HERMES_MED_NOT_LOADED_ERR

I don't know if the above provides more insight. I will try your suggestions, but the critical problem is not visualization, but reading .spe from LECWAC1. The rest of my TOMAWAC results are as expected, so should be my .spe file.
Is the .spe file in chwac1 created with the corresponding trunk version of TOMAWAC?
Best regards,
Costas
The administrator has disabled public write access.

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25349

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
The .spe file for the ARTEMIS validation case is not created with the same trunk - I will try to change that to make sure what you are seeing does not happened anymore.

I do not know where this problem comes from - I'll let Thierry assess (he has more of a handle on TOMAWAC), but will check a few things and come back to you.

Sébastien.
The administrator has disabled public write access.

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25357

  • tfouquet
  • tfouquet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 294
  • Thank you received: 112
I finally found it. That's my fault.

To correct the problem of Huy in #25223 I filtered on the name of spectrum but i filtered a little bit too much, i filtered on
'1D SPECTRA RESULTS FILE'. So you can have 'PUNCTUAL RESULTS FILE' only if you have a 1D SPECTRA RESULTS FILE.

I corrected ecrspe, so with this file it should be correct.

We could not see it because spe files are not tested with validation as they are defined on quadrangle.
Attachments:
The administrator has disabled public write access.
The following user(s) said Thank You: cyamin, huyquangtran

[trunk] Read scpectrum files (.spe) 7 years 9 months ago #25358

  • cyamin
  • cyamin's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 997
  • Thank you received: 234
Hello Thierry,

TOMAWAC-ARTEMIS chaining now works like a charm! :cheer: Thank you for your quick response!

Best Regards,
Costas
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran

[trunk] Read scpectrum files (.spe) 7 years 8 months ago #25362

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 304
If I could make a modest request please.

When changes are made to the SELAFIN format, could you please notify the Blue Kenue developers so that we can stay on top of things.

Thanks in advance... Martin
(sent from my phone in Thailand)
The administrator has disabled public write access.
The following user(s) said Thank You: huyquangtran
Moderators: tfouquet

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