Recent Releases of pDEMtools
pDEMtools - v1.2.0
What's changed
- New
geoid_crsandmask_crsparameter options inpdt.load.geoid_from_bedmachine,pdt.load.geoid_from_raster,pdt.load.bedrock_mask_from_vector, andpdt.load.bedrock_mask_from_bedmachine. This allows users to force a CRS if the CRS of the source geoid/mask file is not being detected automatically. A new error will be raised if the CRS is not being detected, and this option will be recommended.
Full Changelog: https://github.com/trchudley/pdemtools/compare/v1.1.2...v1.2.0
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley about 1 month ago
pDEMtools - v1.1.2
What's Changed
- bug fix: change variable name aoi to bounds by @atedstone in https://github.com/trchudley/pdemtools/pull/46
New Contributors
- @atedstone made their first contribution in https://github.com/trchudley/pdemtools/pull/46
Full Changelog: https://github.com/trchudley/pdemtools/compare/v1.1.1...v1.1.2
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley 2 months ago
pDEMtools - v1.1.0
What's Changed
- Minor bug fixes
- Addition of
chunksparameter to allow fordaskloading and lazy evalution following #42 - New documentation to highlight the above, including new FAQ question.
New Contributors
- @jkingslake made their first contribution in https://github.com/trchudley/pdemtools/pull/43
Full Changelog: https://github.com/trchudley/pdemtools/compare/v1.0.0...v1.0.1
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley 8 months ago
pDEMtools - v1.0.0
pdemtools v1.0.0 has been released! This version contains two big new additions and a raft of minor updates, both in the background and as additional functionality.
The first major change is to update the search() function to take advantage of the PGC’s new dynamic STAC API. This means that it is no longer necessary to have a local version of the index database, making pdemtools a lot lighter and more convenient!
The second major change is the introduction of an ICESat-2 coregistration function (pdt.coregister_is2()). This is supplemented by the new data.icesat2_atl06(), which facilitates the automated downloading of ICESat-2 data suitable for coregistration. By providing the function with your DEM (as the usual rioxarray object) and the date of the DEM acquisition, the function will automatically download the nearest-in-time ICESat-2 ATL06-SR data from sliderule, allowing you to coregister the data accordingly..
Note that this is a major version update that contains some breaking changes, particularly of the search() function. All of the documentation (readthedocs.rtfd.io) and associated example scripts have been updated to show how version 1.0.0 works and how to use the updated functions. Please do continue to report bugs in the GitHub Issues tabs as we iron out the kinks in the new version!.
What's Changed
search()function- By default (with no
index_fpathprovided), the search function will now search the PGC dynamic STAC, eliminating the need for a downloaded index files. This is a breaking change - please consult the documentation for how to use the newsearch()function. yearscan now take an int as well as a list of ints.- Search now additionally includes
min_aoi_km2andis_lsffiltering options option.accuracynow refers to theavg_expected_height_accuracyPGC parameter (previously, it referred to the RMSE), whilstrmsenow has its own parameter. - The geodataframe returned by search now has additional columns linking to PGC assets (e.g. ‘href_dem’, ‘href_mask’ columns), as well as ‘pdt_’ columns that provide consistent column naming between the STAC- and index-returned dataframes.
- By default (with no
- Coregistration
.pdt.coregister()has now been split into two functions:coregister_dems()andcoregister_is2().coregister_dems()is the oldcoregister()function (which is retained as a deprecated function, redirecting tocoregister_dems().coregister_is2()is a new function that takes ICESat-2 reference data rather than a reference DEM. More information about this feature is included in the updated documentation.- Behind the scenes, both coregistration functions use the same background function - slight editing of the function has been done to accommodate both gridded and point reference data.
- Coregistration now returns metadata as a single metadata dictionary when
returns_statsisTrue. - Coregistration functions include a new ‘verbose’ option allow the minimisation of output if desired, defaults to
True.
datamodule- A new
icesat2_atl06()function is included to download contemporaneous ICESat-2 data, wrapping thesliderulePython package. This is designed to streamline the ICESat-2 coregistration process. More information is included in the updated documentation.
- A new
loadmodule- Load functions now include a ‘pad’ option, to make outputs the full size of the bounds (filled with NaNs) even when the strips are smaller.
- The
preview()function now makes applying the PGC bitmask optional, with the newbitmaskparameter defaulting toTrue.
terrainmodulepdt.terrain()now has a default attribute of ‘all’pdt.terrain()now has additionalplan_curvature,vertical_excess, andhorizontal_excesscurvature
- Documentation
- Examples have been updated to explain new functionality (the STAC search and ICESat-2 coregistration).. Some notebooks have been split (e.g. mosaic download and terrain analysis) in the interests of providing more focussed explanations of tasks.
- The default plotting now shown in the documentation is
xda.plot.imshow(): it’s a lot quicker than the default xarrayxda.plot(). Option.
- Batch scripts
- The batch script has been updated with additional functionality to integrate custom geoids and masks, and has been split into two scripts:
*_dem.pyfor DEM-based coregistration, and*_is2.pyfor ICESat-2-based coregistration.
- The batch script has been updated with additional functionality to integrate custom geoids and masks, and has been split into two scripts:
- Various minor bug fixes and code cleaning occurs throughout.
v1.0.0 by @trchudley in https://github.com/trchudley/pdemtools/pull/41
Full Changelog: https://github.com/trchudley/pdemtools/compare/v0.8.5...v1.0.0
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley 11 months ago
pDEMtools - v0.8.5
This version of pdemtools incorporates changes made throughout the review process for Journal of Open Source Science. Changes are largely relating to increasing the clarity of the documentation and code. We are very grateful to the editor and two reviewers for their time!
What's Changed
- Respond to JOSS Review 2 by @trchudley in https://github.com/trchudley/pdemtools/pull/24
- Update mosaic_and_terrain.ipynb by @AdamRJensen in https://github.com/trchudley/pdemtools/pull/30
- Add mention of "editable" by @AdamRJensen in https://github.com/trchudley/pdemtools/pull/26
- A testing section header in install.md by @AdamRJensen in https://github.com/trchudley/pdemtools/pull/27
- Fix typos in supplementary_datasets.md by @AdamRJensen in https://github.com/trchudley/pdemtools/pull/29
- JOSS Editor Comments by @trchudley in https://github.com/trchudley/pdemtools/pull/34
- Editor suggested changes by @AdamRJensen in https://github.com/trchudley/pdemtools/pull/36
New Contributors
- @AdamRJensen made their first contribution in https://github.com/trchudley/pdemtools/pull/30
Full Changelog: https://github.com/trchudley/pdemtools/compare/v.0.8.4...v0.8.5
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley about 1 year ago
pDEMtools - v.0.8.4
What's Changed
- Fix
too many open filesissue #13 by @trchudley in https://github.com/trchudley/pdemtools/pull/14 - Increase memory efficiency of coreg/geomorph by @trchudley in https://github.com/trchudley/pdemtools/pull/15
Full Changelog: https://github.com/trchudley/pdemtools/compare/v.0.8.3...v.0.8.4
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley over 1 year ago
pDEMtools - v.0.8.3
What's Changed
- fixed search function for new PGC index files by @trchudley in https://github.com/trchudley/pdemtools/pull/12
Full Changelog: https://github.com/trchudley/pdemtools/compare/v.0.8.2...v.0.8.3
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley over 1 year ago
pDEMtools - v.0.8.2
What's Changed
loadmodule windows fix by @trchudley in https://github.com/trchudley/pdemtools/pull/11
Full Changelog: https://github.com/trchudley/pdemtools/compare/v0.8.1...v.0.8.2
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley over 1 year ago
pDEMtools - v0.8.1
What's Changed
- Flowaware hillshade capability by @trchudley in https://github.com/trchudley/pdemtools/pull/10
Full Changelog: https://github.com/trchudley/pdemtools/compare/v0.8.0...v0.8.1
Cryosphere - Glacier and Ice Sheets
- Jupyter Notebook
Published by trchudley over 1 year ago