Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
29bdbe7
gSSURGO Enhancements: SOC Integration, enhanced XML Parsing, and Ense…
divine7022 Jun 5, 2025
becb02f
Fix SQL field list construction in gSSURGO.Query to prevent malformed…
divine7022 Jun 5, 2025
d50b43b
fixed the bug in soil2netcdf
divine7022 Jun 5, 2025
19e9ffc
refactored code and fixed some bugs
divine7022 Jun 7, 2025
04f3cdd
update soil.units doc with supported variables
divine7022 Jun 7, 2025
49b4083
supports spatial sampling using a grid
divine7022 Jul 12, 2025
533502b
add unit test
divine7022 Jul 12, 2025
067e1b7
update .Rd
divine7022 Jul 12, 2025
2161030
update extract_soil_gssurgo.Rd
divine7022 Jul 12, 2025
c7c2926
udpated NEWS.md
divine7022 Jul 12, 2025
b46bf05
update NAMESPACE
divine7022 Jul 12, 2025
d945162
update CHANGELOG.md
divine7022 Jul 12, 2025
0f411e5
Merge remote-tracking branch 'origin/develop' into feat/gssurgo-soc-s…
divine7022 Jul 13, 2025
543887e
fixed conflict in soil.units function
divine7022 Jul 13, 2025
d0aad8c
Merge remote-tracking branch 'origin/develop' into feat/gssurgo-soc-s…
divine7022 Aug 12, 2025
37e6943
removed depends from @importFrom
divine7022 Aug 18, 2025
8cb1973
correct condition check to handle cause where we get all NA's
divine7022 Aug 18, 2025
7828eba
modules/data.land/R/soil2netcdf.R
divine7022 Aug 18, 2025
a11b1d7
update .Rd file
divine7022 Aug 18, 2025
53031ca
refactor unit tests
divine7022 Aug 18, 2025
ddc2bc0
remove unnecessary [1] indexing in sizein for cleaner code
divine7022 Aug 18, 2025
019d4f8
Merge remote-tracking branch 'origin/develop' into feat/gssurgo-soc-s…
divine7022 Aug 19, 2025
7efb2b5
correct soc calc
divine7022 Aug 19, 2025
4312a8b
increas grid spacing to 100 to capture better variablity
divine7022 Aug 19, 2025
c0c7b2c
update .Rd
divine7022 Aug 19, 2025
9a7cbc4
remove old radius parameter from extract_soil_gssurgo
divine7022 Aug 19, 2025
f065d71
add coarse fragment correction to soil_organic_carbon_stock
divine7022 Aug 20, 2025
f108294
udpate NAMESPACE
divine7022 Aug 20, 2025
dd85ded
add chfrags join to gSSURGO.Query for fragment volume data
divine7022 Aug 20, 2025
f0b455b
add soc2ocs and om2soc helper functions
divine7022 Aug 20, 2025
8731f5c
update .Rd
divine7022 Aug 20, 2025
82198be
add om2soc.Rd
divine7022 Aug 20, 2025
2b5cf6f
add soc2ocs.Rd
divine7022 Aug 20, 2025
c2b37d4
Merge remote-tracking branch 'origin/develop' into feat/gssurgo-soc-s…
divine7022 Aug 26, 2025
d458822
add name to citation
divine7022 Aug 26, 2025
e76e75a
Merge remote-tracking branch 'origin/develop' into feat/gssurgo-soc-s…
divine7022 Aug 26, 2025
f4d142d
reduce buffer overlap and improve docs to acknowledge user about limi…
divine7022 Aug 26, 2025
55e52c9
update .Rd
divine7022 Aug 26, 2025
fb24651
add grid_spacing parm to soil_process
divine7022 Aug 27, 2025
cf833fa
remove unnecessary pmax from rgamma
divine7022 Aug 27, 2025
e6e6435
calc grid spacing from radius and grid size
divine7022 Aug 27, 2025
32896a1
add cleare commet about not using first ens member
divine7022 Aug 27, 2025
00d7935
use proj_crs for terra crs parameter
divine7022 Aug 27, 2025
ecdc7fc
Merge remote-tracking branch 'origin/develop' into feat/gssurgo-soc-s…
divine7022 Aug 27, 2025
cf051e2
Enhance documentation for gSSURGO.Query function
dlebauer Aug 27, 2025
2b7dc11
add max() to ensure grid_size >= 3
divine7022 Aug 27, 2025
d29f329
update documentation
divine7022 Aug 28, 2025
6cd483a
update .Rd
divine7022 Aug 28, 2025
2f0859b
now test made more explicit by testing with exact number of ens length
divine7022 Aug 29, 2025
6e057ff
correct fragment aggregation by summing within component horizons bef…
divine7022 Aug 29, 2025
324e6cf
replace pmin with min and slice(1) with distinct() for clearer fragme…
divine7022 Aug 29, 2025
6ac2992
Merge branch 'develop' into feat/gssurgo-soc-support
dlebauer Sep 1, 2025
d0576f8
Merge branch 'develop' into feat/gssurgo-soc-support
dlebauer Sep 1, 2025
025c4a5
fix R CMD check warnings for global variables
divine7022 Sep 2, 2025
2cea7df
Merge branch 'feat/gssurgo-soc-support' of github.com:divine7022/peca…
divine7022 Sep 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ section for the next release.
- The ERA5 NC extraction function can now handle multi-site instead of one.
- Added function for merging images from the same tiling system (MODIS, GLANCE, ICESat-2, HLS, etc.).
- Added function for converting images towards the GDAL-supported formats (H5, NetCDF, HDF4, GeoTIFF, etc .).
- `extract_soil_gssurgo` now supports spatial sampling using a grid of user-defined size and spacing. And supports ensemble simulation of soil organic carbon (SOC) stocks, using area-weighted aggregation
- New utility script `IC_SOILGRID_Utilities.R` for processing SoilGrids data to generate soil carbon initial condition (IC) files. This includes (#3508):
- **`soilgrids_ic_process`**: A function to extract, process, and generate ensemble members from SoilGrids250m data.
- **`preprocess_soilgrids_data`**: A helper function to handle missing values and ensure data integrity during preprocessing.
Expand Down
2 changes: 2 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ authors:
orcid: 'https://orcid.org/0000-0002-7430-7879'
- given-names: Harunobu Ishii
affiliation: Boston University Software & Application Innovation Lab(SAIL)
- given-names: Akash BV
affiliation: CMR Institute of Technology, Bengaluru

preferred-citation:
type: article
Expand Down
2 changes: 2 additions & 0 deletions modules/data.land/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export(match_pft)
export(match_species_id)
export(mpot2smoist)
export(netcdf.writer.BADM)
export(om2soc)
export(parse.MatrixNames)
export(partition_roots)
export(plot2AGB)
Expand All @@ -53,6 +54,7 @@ export(put_veg_module)
export(sample_ic)
export(sclass)
export(shp2kml)
export(soc2ocs)
export(soil.units)
export(soil2netcdf)
export(soil_params)
Expand Down
3 changes: 2 additions & 1 deletion modules/data.land/NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
* Included all relevant carbon pools (`ROOT_BIOMASS`, `AG_BIOMASS`, `SOIL_STOCK`, `LIT_BIOMASS`) in BADM-based IC extraction; excluded non-pool variables like `SOIL_CHEM`.
* Added explicit support for `LIT_BIOMASS` to fully utilize **BADM** biomass capabilities.
* Added `test-IC_BADM_Utilities.R` to validate BADM initial condition extraction and processing

* `extract_soil_gssurgo` now supports spatial sampling using a grid of user-defined size and spacing. And supports ensemble simulation of soil organic carbon (SOC) stocks, using area-weighted aggregation

## Fixed

* `gSSURGO.Query()` now always returns all the columns requested, even ones that are all NA. It also now always requires `mukeys` to be specified.
Expand Down
Loading
Loading