Closes issue #34 soil carbon from soilgrids2.0 #79
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for contributing to ILAMB-Data. Use this template when submitting a pull request.
🛠 Issue reference
✨Include a reference to the issue # here.
Closes Issue #34
Created ISRIC directory and convert.py. The conversion
.py
downloads the data, converts it from Homolosine to WGS84, coarsens resolution from 250m (homolosine) to 0.5 degree (wgs84) using weighted averaging. Note, this weighted averaging reduced the range of data from about 0-22 to 0-16. In the future, we might consider the conservative coarsening function created by xESMF, but calculating the weights (not in parallel) takes eons and I didn't really want to waste time on it. Anyway, looks like ESM folks use this package to resample data to a coarser resolution while maintaining the original range of the higher resolution data.🧪 Testing
✨Add an
x
between the brackets to indicate basic testing was completedconvert
script to recent existing ones🧪 (Optional) Preview
✨Attach an image of your dataset here
🏎 (Optional) Quality Checklist
✨Add an
x
between the brackets to indicate script quality adherence📏 (Optional) CF Compliance In-Depth Checklist
✨Add an
x
between the brackets to ensure CF complianceDimensions
time
with attributes/encoding:axis
attribute isT
units
attribute/encoding isdays since YYYY-MM-DD HH:MM:SS
long_name
attribute istime
calendar
encoding isnoleap
bounds
encoding istime_bounds
lon
with attributes:axis
attribute isX
units
attribute isdegrees_east
long_name
attribute islongitude
lat
with attributes:axis
attribute isY
units
attribute isdegrees_north
long_name
attribute islatitude
nv
, which is an array of length2
that contains the start date and end date bounding the datasetData Variables and their Attributes
time
,lat
, andlon
dimensionslong_name
attribute is specifiedunits
attribute is specifiedancillary_variables
attribute is specified if an uncertainty value is providedtime
,lat
, andlon
dimensionslong_name
attribute is specified (e.g., cSoil standard_deviation)units
attribute is specified; it is unitless, so it should be1
time
andnv
dimensionslong_name
attribute is specified astime_bounds
units
is encoded asdays since YYYY-MM-DD HH:MM:SS
Global Attributes