SoilProfile#
- class dutchsoils.soilprofile.SoilProfile(index=None, code=None, bofekcluster=None, bofekcluster_dominant=None)#
Represents a single Dutch soil profile, providing access to soil properties, horizons, and cluster information based on various identifiers (index, code, or BOFEK2020 cluster). This class supports profile lookup by index, code, cluster, or geographic location, and provides methods for retrieving soil horizon data, area statistics, and input dictionaries for pySWAP modeling. Data is loaded from CSV files located in the package’s data directory.
- Parameters:
Examples
>>> sp = SoilProfile(index=101) >>> sp.get_data_horizons() >>> sp.get_area(which="profile") >>> sp.plot()
Attributes#
Methods#
Create SoilProfile(s) from a BOFEK cluster number. |
|
Create SoilProfile(s) from a soil profile code. |
|
Create SoilProfile(s) from a soil profile index. |
|
Create SoilProfile(s) from geographic coordinates using the WMS of PDOK (https://www.pdok.nl/ogc-webservices/-/article/bro-bodemkaart-sgm-). |
|
Returns the total area (ha) in the Netherlands of this profile or the total BOFEK2020 cluster it belongs to. |
|
Returns a DataFrame with soil horizon data for this profile. |
|
Returns a list of 1.0 for each soil physical layer (for pySWAP). |
|
Returns a dictionary for the SOILTEXTURES table in pySWAP. |
|
Returns a dictionary for the SOILHYDRFUNC table in pySWAP. |
|
Returns a dictionary for the SOILPROFILE table in pySWAP. |
|
Plots the soil profile using the DutchSoils visualization. |