<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Tif-file processing in the Python environment in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/tif-file-processing-in-the-python-environment/m-p/1578921#M92299</link>
    <description>&lt;P&gt;Good evening everyone,&lt;/P&gt;&lt;P&gt;I have several tif layers that contain the following data:&lt;BR /&gt;Wave height, wave period, grain diameter and bathymetry (water depth). I would like to load this data into the Python environment and then calculate the bedload transport using various formulas and output the result on a raster basis. Unfortunately, I am not getting the right results. I'm not sure whether the data processing really works correctly and whether the Python environment accesses the correct cells of the Tif files so that they fit into the formula. Do you have any tips on how I can get this right?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;PS: My code:&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;from arcpy import env&lt;BR /&gt;from arcpy.sa import *&lt;BR /&gt;import math&lt;/P&gt;&lt;P&gt;def lmbda(H, T):&lt;BR /&gt;return SquareRoot(9.81 * H) * T&lt;/P&gt;&lt;P&gt;def U_susp(d):&lt;BR /&gt;return 14.4 * SquareRoot(d / 10)&lt;/P&gt;&lt;P&gt;def h_susp(H, T, d):&lt;BR /&gt;return ASinH((H * math.pi) / (T * U_susp(d))) * lmbda(H, T) / (2 * math.pi)&lt;/P&gt;&lt;P&gt;# Set the workspace&lt;BR /&gt;env.workspace = "N:/oettl/Layer"&lt;/P&gt;&lt;P&gt;# Load raster layers&lt;BR /&gt;H = Raster("2015_100m_max_significant_wave_height.tif")&lt;BR /&gt;T = Raster("2015_100m_mean_wave_period_at_max_significant_wave_height.tif")&lt;BR /&gt;d = Raster("2016_100m_DB_d50.tif")&lt;BR /&gt;H_Bathymetrie = Raster("EasyGSH_Download_Bathymetrie_geotiff_2016\GeoTiff\easygsh-db_2016.tif")&lt;/P&gt;&lt;P&gt;Schwebstofftransport = H_Bathymetrie - h_susp(H, T, d)&lt;/P&gt;&lt;P&gt;# Save the resulting raster&lt;BR /&gt;Schwebstofftransport.save("N:/oettl/Layer/Schwebstofftransport_neu.tif")&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jan 2025 20:24:17 GMT</pubDate>
    <dc:creator>MarcoAlbertÖttl</dc:creator>
    <dc:date>2025-01-25T20:24:17Z</dc:date>
    <item>
      <title>Tif-file processing in the Python environment</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/tif-file-processing-in-the-python-environment/m-p/1578921#M92299</link>
      <description>&lt;P&gt;Good evening everyone,&lt;/P&gt;&lt;P&gt;I have several tif layers that contain the following data:&lt;BR /&gt;Wave height, wave period, grain diameter and bathymetry (water depth). I would like to load this data into the Python environment and then calculate the bedload transport using various formulas and output the result on a raster basis. Unfortunately, I am not getting the right results. I'm not sure whether the data processing really works correctly and whether the Python environment accesses the correct cells of the Tif files so that they fit into the formula. Do you have any tips on how I can get this right?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;P&gt;PS: My code:&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;from arcpy import env&lt;BR /&gt;from arcpy.sa import *&lt;BR /&gt;import math&lt;/P&gt;&lt;P&gt;def lmbda(H, T):&lt;BR /&gt;return SquareRoot(9.81 * H) * T&lt;/P&gt;&lt;P&gt;def U_susp(d):&lt;BR /&gt;return 14.4 * SquareRoot(d / 10)&lt;/P&gt;&lt;P&gt;def h_susp(H, T, d):&lt;BR /&gt;return ASinH((H * math.pi) / (T * U_susp(d))) * lmbda(H, T) / (2 * math.pi)&lt;/P&gt;&lt;P&gt;# Set the workspace&lt;BR /&gt;env.workspace = "N:/oettl/Layer"&lt;/P&gt;&lt;P&gt;# Load raster layers&lt;BR /&gt;H = Raster("2015_100m_max_significant_wave_height.tif")&lt;BR /&gt;T = Raster("2015_100m_mean_wave_period_at_max_significant_wave_height.tif")&lt;BR /&gt;d = Raster("2016_100m_DB_d50.tif")&lt;BR /&gt;H_Bathymetrie = Raster("EasyGSH_Download_Bathymetrie_geotiff_2016\GeoTiff\easygsh-db_2016.tif")&lt;/P&gt;&lt;P&gt;Schwebstofftransport = H_Bathymetrie - h_susp(H, T, d)&lt;/P&gt;&lt;P&gt;# Save the resulting raster&lt;BR /&gt;Schwebstofftransport.save("N:/oettl/Layer/Schwebstofftransport_neu.tif")&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 20:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/tif-file-processing-in-the-python-environment/m-p/1578921#M92299</guid>
      <dc:creator>MarcoAlbertÖttl</dc:creator>
      <dc:date>2025-01-25T20:24:17Z</dc:date>
    </item>
  </channel>
</rss>

