Welcome, Guest
Username: Password: Remember me

TOPIC: Issue with TIME SERIES COORDINATES FILE with GEOGRAPHIC SYSTEM=1

Issue with TIME SERIES COORDINATES FILE with GEOGRAPHIC SYSTEM=1 3 weeks 5 days ago #45780

  • greeve
  • greeve's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 4
Hello all,

I am testing the addition of a TIME SERIES COORDINATES FILE (new in V8R5) to a mesh using lat/lon coordinates (with GEOGRAPHIC SYSTEM=1, SPHERICAL COORDINATES=YES). However, I am encountering issues where the data written out is incorrect.

To troubleshoot, I ran the model with RESULT FILE IN LONGITUDE-LATITUDE=NO. When I manually selected approximate locations from the project mesh frame, the results seemed to match expectations much better.

This makes me wonder if there is an issue with how the time series extraction is handled when the mesh is in geographic coordinates or with how coordinates are interpreted from the TIME SERIES COORDINATES FILE.

Has anyone encountered similar issues or can provide insights into how this feature handles WGS84 geographic coordinates?

Thank you,
The administrator has disabled public write access.

Issue with TIME SERIES COORDINATES FILE with GEOGRAPHIC SYSTEM=1 3 weeks 4 days ago #45786

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1592
  • Thank you received: 606
Hello,

There is an issue opened on gitlab:
gitlab.pam-retd.fr/otm/telemac-mascaret/-/issues/989

When time series files are handled, the mesh is already in Mercator projection.
You can work around this by giving coordinates in Mercator projection (see e.g. formula in $HOMETEL/sources/utils/bief/read_mesh_coord.f subroutine).

Another way is to convert the longitude/latitude coordinates with the same formulas in OUTHIST_PREPARE subroutine of the OUT_HISTORY module:
Conversion of TCDAT(IFILE)%XHISTOUT(I) and TCDAT(IFILE)%YHISTOUT(I) for I from 1 to NRPOINT, just before calling INTERP_POINT_PREPARE.

FYI GEOGRAPHIC SYSTEM keyword is only used for tide modelling and has no impact for time series files.

Hope this helps,

Chi-Tuan
The administrator has disabled public write access.

Issue with TIME SERIES COORDINATES FILE with GEOGRAPHIC SYSTEM=1 2 weeks 3 days ago #45855

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1592
  • Thank you received: 606
Hello,

I have suggested a fix + enhancement in
gitlab.pam-retd.fr/otm/telemac-mascaret/-/issues/989

It is rebased with main (not so different from recently released 9.0).

Can you try to use it or change your release with the modifications and tell me if it solves your issue please?

Here is the archive (same as the 2nd archive in the issue).

Hope this helps,

Chi-Tuan

File Attachment:

File Name: fix_time_series_spheric_IO.tar.gz
File Size: 44 KB
The administrator has disabled public write access.

Issue with TIME SERIES COORDINATES FILE with GEOGRAPHIC SYSTEM=1 2 weeks 1 day ago #45883

  • greeve
  • greeve's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 4
Hi Chin-Tuan,

I can confirm that when I used the files you attached in the *.tar.gz file and recompiled my desktop application of Telemac, the output timeseries data using Lat/lon coordinates works correctly. However, after pulling release 9.0 from the git repository and compiling the code on our HPC, the timeseries data is incorrect. Unlike the earlier version of the code, the model will run without producing an error related to a point not being in the domain, but all the timeseries data looks exactly the same.

Thanks
Glen
The administrator has disabled public write access.

Issue with TIME SERIES COORDINATES FILE with GEOGRAPHIC SYSTEM=1 2 weeks 8 hours ago #45888

  • greeve
  • greeve's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 38
  • Thank you received: 4
Hi Chin-Tuan,

I have re-downloaded version 9 of the code from the Git repository, performed a clean install, and recompiled. I can confirm that the time-series extraction is now working as expected. I appreciate your support.

Thanks,
The administrator has disabled public write access.

Issue with TIME SERIES COORDINATES FILE with GEOGRAPHIC SYSTEM=1 1 week 5 days ago #45891

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1592
  • Thank you received: 606
Hello Glen,

Good news that everything works fine for you now, thanks for your feedback, in particular for the issue with longitude/latitude.
I was surprised to read what you wrote as from 9.0, there is a stop when coordinates of points are outside the extent of the domain.

Chi-Tuan
The administrator has disabled public write access.
Moderators: pham

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