dem_slope — DEM surface op

• Data kinds: depth → image2d

• Call: import fullseye as fs; fs.ledger.dem_slope(dem, cell_size, method='horn', units='degrees') (implementation को सीधे call करना हो तो import demops; demops.dem_slope(dem, cell_size, method='horn', units='degrees'), registry से लेना हो तो opsdem.get("dem_slope"))

उपयोग

slope कोण। units "degrees" / "radians" / "percent" है।

समतल पर यह closed form atan(|grad|) से मेल खाता है (मापा गया 1e-13 या कम)।

प्रक्रिया: 3x3 पड़ोस से dz/dx (पूर्व की ओर) और dz/dy (उत्तर की ओर = row घटने की दिशा) लें, फिर g = hypot(dz/dx, dz/dy)। "degrees" degrees में atan(g) देता है, "radians" radians में, "percent" 100 g देता है (45 degrees = 100 %)। किनारों को border मानों की नकल से pad किया जाता है (pad mode="edge"), इसलिए सबसे बाहरी 1 cell अंदर की तुलना में अधिक सौम्य आता है।

• dem: (H, W) ऊँचाई [m], 3x3 या बड़ा, real, inf नहीं। missing data को nan के रूप में पास करें ―― यदि -9999 जैसे sentinel मान छोड़ दिए गए हों (<= -9000 मौजूद और nan नहीं), तो अस्वीकार किया जाता है। nan 3x3 range में फैलता है।

• cell_size: cell की भुजा की लंबाई [m], धनात्मक finite। bool / strings अस्वीकार। lat/lon grids के लिए इसके बजाय dem_geodetic_slope का उपयोग करें।

• method: "horn" (Horn 1981 3x3 weighted difference, डिफ़ॉल्ट) / "central" (Zevenbergen–Thorne central difference)।

• return value: (H, W) float64। degrees [0, 90) में है।

• सभी विफलताएँ ValueError हैं (shape, sentinel मान, cell_size, विकल्प)।

dem_aspect के साथ उपयोग किया जाता है। dem_hillshade इन 2 से shading बनाता है।

उपयोग की विस्तृत guide

• dem_terrain_analysis family guide

संदर्भ (sample data, साहित्य)

• Sample data catalog (DL URL / license) — 2-D के लिए skimage.data (BSD/public) + synthetic, 3-D के लिए real data sources (Stanford/PDS आदि) के DL URL।

• Operators का स्रोत और संदर्भ — इस op family के मूल research/methods के स्रोत।

• Algorithm का मानक स्रोत (लेखक, वर्ष) और उपयोग ऊपर की family usage guide में दिए गए हैं।

चलाए जा सकने वाले उदाहरण (verified samples जो सच में यह op call करते हैं)

• dem_geodesy_tour — py -3.11 examples/dem_geodesy_tour.py

• poc_crop_phenotyping — py -3.11 examples/poc_crop_phenotyping.py

• poc_dem_terrain — py -3.11 examples/poc_dem_terrain.py

• poc_geodetic_height_frames — py -3.11 examples/poc_geodetic_height_frames.py

• poc_lidar_terrain_change — py -3.11 examples/poc_lidar_terrain_change.py

• poc_multibeam_bathymetry — py -3.11 examples/poc_multibeam_bathymetry.py

• poc_stockpile_volume — py -3.11 examples/poc_stockpile_volume.py

वे अगले ops जिनसे type जुड़ता है (image2d को input के रूप में लेते हैं)

—

इसी category के (surface)

dem_aspect · dem_curvature · dem_roughness · dem_tpi


*Provenance: demops.py — DEM operator registry. यह per-op note tools/opdocs.py md से अपने-आप generate होता है (हाथ से edit न करें)।*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.