Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Use tif/tiff files instead of xyz files

Use tif/tiff files instead of xyz files 2 years 3 months ago #40766

  • Sorrymaker
  • Sorrymaker's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 28
  • Thank you received: 5
Hi TELEMAC users,

Recently I was dealing with large amounts of bathymetry data (in version raster - tif/tiff) and it's really hard for me to treat this kind of data, because I need to convert it to xyz files first and then interpolate it into mesh. Those xyz files are always too big to use. :S

Hence, I'm wondering if there's a scripts to use raster files directly and interpolate it into the mesh I want.

Regards,
Grebe
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40773

  • GunnarÖ
  • GunnarÖ's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
  • Thank you received: 4
Hi

There is a function within BlueKenue for importing .asc raster files. When you have imported the file you can map the mesh onto the .asc-raster.

Regards
Gunnar
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40774

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi!

As Gunnar suggested, use BlueKenue and ascii (.asc) rasters. You can easily convert tiff rasters into .asc format in various GIS packages.

However, please note that there is a XY-reference shift between GIS packages and BlueKenue in their way to assign elevation value to given XY coordinates. You basically need to manually shift the asc-raster by -cellsize/2 in order to perform a correct spatial interpolation in BlueKenue. For more information, please see this thread:
www.opentelemac.org/index.php/kunena/blu...olation-method#24643

I don't know if it exists a script that can perform the interpolation directly from tiffs. Can be good to have a look at the notebooks or to the subprorgam STBTEL to see if such a function exists.

Best regards
PL
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40775

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 683
  • Thank you received: 178
Given a regular grid, you can map any of the following (see screen snapshot) onto the grid. This will read each selected file and perform the mapping. It will then unload the file so that memory will not be used for all of the files simultaneously.

2022-08-15_BK_MapFiles.png


See Tools > Map File(s)... and the associated paper from 2019 available in the CHyMS Public Download Area.

More functions such as this can be added if you post in the Blue Kenue section of the forum with your request...

Kindly,
Alan
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40776

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 683
  • Thank you received: 178
And if you want Tools > Map File(s) to map from Tif files to a Mesh, then please give me 2-3 of your tif files to see if I can load them into Blue Kenue and add this new functionality for you.

2022-08-15_BK_MapFiles_FromTifToAMesh.png


Kindly,
Alan
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40789

  • Sorrymaker
  • Sorrymaker's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 28
  • Thank you received: 5
Hi

Thanks for all your kind help, these experiences have taught me so much.

In addition, here's a sample from my tif file, it's just 4% of the file that I use. That's why I wanted to interpolate it directly into my mesh.

Regards,
Grebe
Attachments:
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40791

  • Sorrymaker
  • Sorrymaker's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 28
  • Thank you received: 5
Here's a bigger one
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40793

  • Sorrymaker
  • Sorrymaker's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 28
  • Thank you received: 5
sorry, too large to send to web
Attachments:
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40797

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 683
  • Thank you received: 178
Both tifs load into Blue Kenue. Good.

2022-08-17_BK_Tifs_Load_With_Same_CoordSys.png


Now... can you send me 3 small tifs and and an example mesh that you'd like to "collect". I'm assuming that you'd like to create a BINARY multi-frame mesh where each frame contains the data from each tif, right?

Kindly,
Alan
The administrator has disabled public write access.

Use tif/tiff files instead of xyz files 2 years 3 months ago #40807

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 683
  • Thank you received: 178
Continuing the Blue Kenue discussion in its own thread in #40806

Kindly,
Alan
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

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