<?xml version="1.0" encoding="UTF-8"?><metadata xml:lang="en">
<Esri>
<CreaDate>20250312</CreaDate>
<CreaTime>12542000</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>FALSE</SyncOnce>
<DataProperties>
<itemProps>
<imsContentType export="False">002</imsContentType>
<itemName Sync="TRUE">DtDEM_2022_1ft_WebMerc</itemName>
<nativeExtBox>
<westBL Sync="TRUE">-13706923.620521</westBL>
<eastBL Sync="TRUE">-13668166.089406</eastBL>
<southBL Sync="TRUE">4959074.293589</southBL>
<northBL Sync="TRUE">4979513.308067</northBL>
<exTypeCode Sync="TRUE">1</exTypeCode>
</nativeExtBox>
</itemProps>
<coordRef>
<type Sync="TRUE">Projected</type>
<geogcsn Sync="TRUE">GCS_WGS_1984</geogcsn>
<csUnits Sync="TRUE">Linear Unit: Meter (1.000000)</csUnits>
<projcsn Sync="TRUE">WGS_1984_Web_Mercator_Auxiliary_Sphere</projcsn>
<peXml Sync="TRUE">&lt;ProjectedCoordinateSystem xsi:type='typens:ProjectedCoordinateSystem' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xmlns:typens='http://www.esri.com/schemas/ArcGIS/2.8.0'&gt;&lt;WKT&gt;PROJCS[&amp;quot;WGS_1984_Web_Mercator_Auxiliary_Sphere&amp;quot;,GEOGCS[&amp;quot;GCS_WGS_1984&amp;quot;,DATUM[&amp;quot;D_WGS_1984&amp;quot;,SPHEROID[&amp;quot;WGS_1984&amp;quot;,6378137.0,298.257223563]],PRIMEM[&amp;quot;Greenwich&amp;quot;,0.0],UNIT[&amp;quot;Degree&amp;quot;,0.0174532925199433]],PROJECTION[&amp;quot;Mercator_Auxiliary_Sphere&amp;quot;],PARAMETER[&amp;quot;False_Easting&amp;quot;,0.0],PARAMETER[&amp;quot;False_Northing&amp;quot;,0.0],PARAMETER[&amp;quot;Central_Meridian&amp;quot;,0.0],PARAMETER[&amp;quot;Standard_Parallel_1&amp;quot;,0.0],PARAMETER[&amp;quot;Auxiliary_Sphere_Type&amp;quot;,0.0],UNIT[&amp;quot;Meter&amp;quot;,1.0],AUTHORITY[&amp;quot;EPSG&amp;quot;,3857]]&lt;/WKT&gt;&lt;XOrigin&gt;-20037700&lt;/XOrigin&gt;&lt;YOrigin&gt;-30241100&lt;/YOrigin&gt;&lt;XYScale&gt;148923141.92838538&lt;/XYScale&gt;&lt;ZOrigin&gt;-100000&lt;/ZOrigin&gt;&lt;ZScale&gt;10000&lt;/ZScale&gt;&lt;MOrigin&gt;-100000&lt;/MOrigin&gt;&lt;MScale&gt;10000&lt;/MScale&gt;&lt;XYTolerance&gt;0.001&lt;/XYTolerance&gt;&lt;ZTolerance&gt;0.001&lt;/ZTolerance&gt;&lt;MTolerance&gt;0.001&lt;/MTolerance&gt;&lt;HighPrecision&gt;true&lt;/HighPrecision&gt;&lt;WKID&gt;102100&lt;/WKID&gt;&lt;LatestWKID&gt;3857&lt;/LatestWKID&gt;&lt;/ProjectedCoordinateSystem&gt;</peXml>
</coordRef>
</DataProperties>
<scaleRange>
<minScale>150000000</minScale>
<maxScale>5000</maxScale>
</scaleRange>
<ArcGISProfile>ISO19139</ArcGISProfile>
<SyncDate>20250505</SyncDate>
<SyncTime>22092400</SyncTime>
<ModDate>20250505</ModDate>
<ModTime>22092400</ModTime>
</Esri>
<dataIdInfo>
<idPurp>Raster-based data viewing and analysis.</idPurp>
<idAbs>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;This is a raster with 1-ft cell resolution representing a detrended version of the ArcGIS Terrain dataset, "2022 Trinity River Focal Reach Digital Terrain" (YT TSP 2023). For further details of the source data can be found in: Pryor, C., T. Grey, and B. Hocker. 2023. 2022 Trinity River focal reach digital terrain model survey report. Report for the Trinity River Restoration Program (TRRP). Yurok Tribal Fisheries Program, Arcata, California. Available: https://www.trrp.net/library/document?id=2627.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Detrending used a mass point file derived from wetted cells (water depth &amp;gt; 0) in the 2022 SRH2D modeled flow output for 450cfs, along with the 2022 DTM's "Terrain_Extent" polygon data plus a regional buffer to create a "hydro-planar" Terrain surface that represents the water surface from the source data. The regional buffer was created by buffering the "Terrain_Extent" polygon by 1,000,000 feet. Elevation for the regional buffer was set to a uniform 1596.69 ft* as previously used for the elevation mid-point of the focal reach. Both the original DTM and this hydro-planar surface were converted to 1 ft resolution rasters. The hydro-planer raster was then subtracted from the DTM-derived raster (a DEM) to yield this Detrended Digital Elevation Model (DtDEM)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;* = This elevation is the midpoint between the water surface elevation at the lower end of the DTM and the water surface elevation immediately below Lewiston Dam. While this uniform elevation theoretically could make water flow out of the river near the dam (river is higher than the value of 1596.69) and into the river near the North Fork, the slope created by this is minuscule. At the upper and lower ends of the river where this potential slope would be greatest, it could account for only about 0.025 ft elevation per 100 feet lateral to the river.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Citation: Yurok Tribe Fisheries Department Design and Technical Services Program (YT TSP), 2023. Data Package for 2022 Trinity River Focal Reach Digital Terrain. &lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</idAbs>
<idCredit>Conversion by Trinity River Restoration Program from data provided by YT TSP.</idCredit>
<idCitation>
<resTitle>Detrended Digital Elevation Model (DtDEM) Derived from the 2022 Trinity River Focal Reach Digital Terrain</resTitle>
<otherCitDet>TRRP (Trinity River Restoration Program) and YT TSP (Yurok Tribe Fisheries Department Design and Technical Services Program ) 2023. Detrended Digital Elevation Model (DtDEM) Derived from the 2022 Trinity River Focal Reach Digital Terrain. Data Package. TRRP, Weaverville, California.</otherCitDet>
<presForm>
<PresFormCd value="005"/>
</presForm>
<date>
<createDate>2023-10-09T00:00:00</createDate>
<pubDate>2023-10-10T00:00:00</pubDate>
</date>
<citRespParty>
<rpIndName>Eric Peterson</rpIndName>
<rpOrgName>Trinity River Restoration Program</rpOrgName>
<rpPosName>Science Coordinator</rpPosName>
<role>
<RoleCd value="002"/>
</role>
<rpCntInfo>
<cntAddress addressType="">
<city>Weaverville</city>
<adminArea>CA</adminArea>
<postCode>96093</postCode>
<country>US</country>
</cntAddress>
<cntPhone>
<voiceNum tddtty="">530-623-1800</voiceNum>
</cntPhone>
</rpCntInfo>
</citRespParty>
</idCitation>
<resConst>
<Consts>
<useLimit>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Data provided as-is, with no warranty or guarantee. This data is for planning purposes only and should not be used for legal or cadastral purposes. Please contact the Trinity River Restoration Program (TRRP ) for information regarding the use of this data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</useLimit>
</Consts>
</resConst>
<dataExt>
<geoEle>
<GeoBndBox esriExtentType="search">
<westBL>-123.131376</westBL>
<eastBL>-122.783212</eastBL>
<northBL>40.777054</northBL>
<southBL>40.637871</southBL>
<exTypeCode>1</exTypeCode>
</GeoBndBox>
</geoEle>
</dataExt>
<dataLang>
<languageCode value="eng"/>
<countryCode Sync="TRUE" value="USA"/>
</dataLang>
<dataChar>
<CharSetCd value="004"/>
</dataChar>
<spatRpType>
<SpatRepTypCd value="002"/>
</spatRpType>
<envirDesc/>
<idPoC>
<rpIndName>Eric Peterson</rpIndName>
<rpOrgName>Trinity River Restoration Program</rpOrgName>
<rpPosName>Science Coordinator</rpPosName>
<role>
<RoleCd value="002"/>
</role>
<displayName>Eric Peterson</displayName>
</idPoC>
<idPoC>
<rpIndName>Jeanne McSloy</rpIndName>
<rpOrgName>Trinity River Restoration Program</rpOrgName>
<rpPosName>Natural Resource Specialist</rpPosName>
<role>
<RoleCd value="009"/>
</role>
<displayName>Jeanne McSloy</displayName>
<rpCntInfo>
<cntAddress addressType="">
<city>Weaverville</city>
<adminArea>CA</adminArea>
<postCode>96093</postCode>
<country>US</country>
</cntAddress>
<cntPhone>
<voiceNum tddtty="">530-623-1800</voiceNum>
</cntPhone>
</rpCntInfo>
</idPoC>
<idPoC>
<rpIndName>Cort Pryor</rpIndName>
<rpOrgName>Yurok Tribal Fisheries Program</rpOrgName>
<rpPosName>Geomatics and Survey Branch Manager</rpPosName>
<role>
<RoleCd value="001"/>
</role>
<rpCntInfo>
<cntAddress addressType="">
<delPoint>180 Klamath Blvd</delPoint>
<city>Klamath</city>
<adminArea>CA</adminArea>
<postCode>95548</postCode>
<eMailAdd>cpryor@yuroktribe.nsn.us</eMailAdd>
<country>US</country>
</cntAddress>
<cntPhone>
<voiceNum tddtty="">707-482-1350</voiceNum>
</cntPhone>
</rpCntInfo>
</idPoC>
<resMaint>
<maintFreq>
<MaintFreqCd value="011"/>
</maintFreq>
</resMaint>
<searchKeys>
<keyword>Detrended DEM</keyword>
</searchKeys>
<tpCat>
<TopicCatCd value="006"/>
</tpCat>
</dataIdInfo>
<mdHrLv>
<ScopeCd value="005"/>
</mdHrLv>
<mdDateSt Sync="TRUE">20250505</mdDateSt>
<mdLang>
<languageCode value="eng"/>
<countryCode Sync="TRUE" value="USA"/>
</mdLang>
<mdChar>
<CharSetCd value="004"/>
</mdChar>
<mdHrLvName>dataset</mdHrLvName>
<mdContact>
<rpIndName>Eric Peterson</rpIndName>
<rpOrgName>Trinity River Restoration Program</rpOrgName>
<rpPosName>Science Coordinator</rpPosName>
<role>
<RoleCd value="002"/>
</role>
<displayName>Eric Peterson</displayName>
</mdContact>
<mdContact>
<rpIndName>Jeanne McSloy</rpIndName>
<rpOrgName>Trinity River Restoration Program</rpOrgName>
<rpPosName>Natural Resource Specialist</rpPosName>
<role>
<RoleCd value="009"/>
</role>
</mdContact>
<mdMaint>
<maintFreq>
<MaintFreqCd value="011"/>
</maintFreq>
</mdMaint>
<mdConst>
<Consts>
<useLimit>&lt;DIV STYLE="text-align:Left;"&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Data provided as-is, with no warranty or guarantee.&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</useLimit>
</Consts>
</mdConst>
<distInfo>
<distFormat>
<formatName>File Geodatabase Raster Dataset</formatName>
<formatVer>na</formatVer>
<fileDecmTech>LZW</fileDecmTech>
</distFormat>
<distFormat>
<formatName>File Geodatabase Raster Dataset</formatName>
<formatVer>3.3.1</formatVer>
</distFormat>
<distributor>
<distorCont>
<rpIndName>Eric Peterson</rpIndName>
<rpOrgName>Trinity River Restoration Program</rpOrgName>
<rpPosName>Science Coordinator</rpPosName>
<role>
<RoleCd value="002"/>
</role>
<displayName>Eric Peterson</displayName>
</distorCont>
</distributor>
</distInfo>
<refSysInfo>
<RefSystem dimension="">
<refSysID>
<identCode code="2225"/>
<idCodeSpace>EPSG</idCodeSpace>
<idVersion>5.3(9.0.0)</idVersion>
</refSysID>
</RefSystem>
</refSysInfo>
<contInfo>
<CovDesc>
<attDesc>Elevation relative to the water surface as represented by water surface elevation (WSE) modeled by SRH2D at 450cfs.</attDesc>
<contentTyp>
<ContentTypCd value="003"/>
</contentTyp>
</CovDesc>
</contInfo>
<dqInfo>
<dataLineage>
<statement>A brief description of the lineage is also provided in the metadata abstract. Intermediate data layers mentioned in the process steps are available from TRRP upon request.
import arcpy
import re
# Define the list of mass points files
mass_points_files = [
"P:F23D_F2P_s450cfs"
]
# 
Define the paths for hard line and soft clip
hard_line = "P:DtDEM_beyond_OG"
soft_clip 
= "P:T2022_Terrain_Extent_polygon"
# 
Output feature dataset to store the terrains
output_fds = "P:AllFLows_FDS"
# 
Check out the 3D Analyst extension
arcpy.CheckOutExtension("3D")
# Function to extract the number before "cfs"
def extract_number(file_path):
match = re.search(r'(\d+)cfs', file_path)
return match.group(1) if match else ""
# Iterate through each mass points file to create terrains
for mass_points in mass_points_files:
try:
# Extract the relevant part of the mass points file name
number = extract_number(mass_points)
terrain_name = f"Ter_{number}cfs"
# Create a new Terrain Dataset in the output feature dataset
terrain_path = arcpy.ddd.CreateTerrain(in_feature_dataset=output_fds, out_terrain_name=terrain_name, average_point_spacing=50, pyramid_type="ZTOLERANCE")[0]
# Add terrain pyramid levels
arcpy.ddd.AddTerrainPyramidLevel(in_terrain=terrain_path, pyramid_level_definition=["1 1000"])
# Add the hard line, soft clip, and mass points file to the Terrain
arcpy.ddd.AddFeatureClassToTerrain(in_terrain=terrain_path, in_features=[
[hard_line, "SHAPE", "Hard_Clip", 3, 0, 1, True, False, "DtDEM_beyond_OG_embed", "&lt;None&gt;", False],
[soft_clip, "&lt;None&gt;", "Soft_Clip", 4, 0, 1, True, False, "T2022_Terrain_Extent_polygon_embed", "&lt;None&gt;", False],
[mass_points, "Shape", "Mass_Points", 5, 0, 1, True, False, f"{number}cfs_embed", "&lt;None&gt;", False]
])
# Build the Terrain Dataset
arcpy.ddd.BuildTerrain(in_terrain=terrain_path)
print(f"Created terrain: {terrain_name}")
except Exception as e:
print(f"Error processing {mass_points}: {e}")
# Check in the 3D Analyst extension
arcpy.CheckInExtension("3D")</statement>
<prcStep>
<stepDesc>Creation of "DtDEM_beyond_OG". Created from 2016TERRAIN "DtDEM_beyond": the "Focal_Reach_Terrain_Extents_Polygon" was buffered by 1,000,000 feet. A new 3 dimensional polygon Feature Class was created and the buffer polygon (2D) was copied and pasted into it. The new feature class was then edited and all vertices were given an elevation of 1596.69 ft (the midpoint between the upper and lower elevations within the reach used previously).</stepDesc>
<stepRat>Detrending requires extending the water surface laterally from the river. The large buffer allows the convenience of a single elevation for the lateral perimeter without introducing substantive error. See DtDEM_1ft from 2016 TERRAIN/2016_FocalReach_DTM.gdb for more details.</stepRat>
<stepProc>
<rpIndName>Jeanne McSloy</rpIndName>
<rpOrgName>Trinity River Restoration Program</rpOrgName>
<rpPosName>Natural Resource Specialist</rpPosName>
<role>
<RoleCd value="009"/>
</role>
<displayName>Jeanne McSloy</displayName>
<rpCntInfo>
<cntAddress addressType="">
<city>Weaverville</city>
<adminArea>CA</adminArea>
<postCode>96093</postCode>
<country>US</country>
</cntAddress>
<cntPhone>
<voiceNum tddtty="">530-623-1800</voiceNum>
</cntPhone>
</rpCntInfo>
<displayName>Jeanne McSloy</displayName>
</stepProc>
</prcStep>
<prcStep>
<stepDesc>Creation of DtDEM_HydroSurface (Terrain format). A Terrain format layer was created using SRH2D model output for 450cfs wetted (water depth&gt;0) cell centroids with water surface elevation (WSE) assigned to Z (mass points), DtDEM_beyond_OG (hard lines), and T2022_Terrain_Extents_Polygon" (soft clip).</stepDesc>
<stepRat>Provides the laterally extended water surface elevation, clipped to match the 2022 DTM.</stepRat>
</prcStep>
<prcStep>
<stepDesc> Creation of Detrending_HydroSurface_2022_1ft (raster). The Terrain to Raster tool was used with 1 foot resolution and processing extent set to match the DEM__2022_1ft raster.</stepDesc>
<stepRat>Rasterization of the extended water surface, to use for final calculation of the DtDEM.</stepRat>
</prcStep>
<prcStep>
<stepDesc>Creation of DtDEM_2022_1ft (raster). The Spatial Analyst tool Raster Calculator was used to subtract the Detrending_Hydrosurfase_2022_1ft from DEM_2022_1ft. Positive values are relative elevations above the water surface; negative values are below the water surface (bathymetric).</stepDesc>
<stepRat>Provides the final raster DtDEM.</stepRat>
</prcStep>
</dataLineage>
</dqInfo>
<spdoinfo>
<rastinfo>
<rasttype Sync="TRUE">Pixel</rasttype>
<rowcount Sync="TRUE">67057</rowcount>
<colcount Sync="TRUE">127157</colcount>
<rastxsz Sync="TRUE">0.304801</rastxsz>
<rastysz Sync="TRUE">0.304801</rastysz>
<rastbpp Sync="TRUE">32</rastbpp>
<vrtcount Sync="TRUE">1</vrtcount>
<rastorig Sync="TRUE">Upper Left</rastorig>
<rastcmap Sync="TRUE">FALSE</rastcmap>
<rastcomp Sync="TRUE">LZ77</rastcomp>
<rastband Sync="TRUE">1</rastband>
<rastdtyp Sync="TRUE">pixel codes</rastdtyp>
<rastifor Sync="TRUE">FGDBR</rastifor>
<rastplyr Sync="TRUE">TRUE</rastplyr>
</rastinfo>
</spdoinfo>
<spref>
<horizsys>
<planar>
<planci>
<plance Sync="TRUE">row and column</plance>
<coordrep>
<absres Sync="TRUE">0.304801</absres>
<ordres Sync="TRUE">0.304801</ordres>
</coordrep>
</planci>
</planar>
</horizsys>
</spref>
</metadata>
