Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Biomass Quantile Mapping #577

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

N1ckP3rsl3y
Copy link
Contributor

  • New input file - biomass_qm.in - to map biomass values from STEPWAT2 data to observed satellite data

N1ckP3rsl3y and others added 5 commits January 2, 2025 10:36
- Add new input file `biomass_qm.in`
- This file allows the user to provide points for STEPWAT2 and observed satellite biomass data
	* These points will be used to translate from STEPWAT2 biomass to a point somewhere in the observed data

Provided inputs:
- Number of annual and perennial points for satellite and STEPWAT2 points
- STEPWAT2 and satellite data for annual and perennial biomass
- New struct/type - bmassqm_st and BmassQMType
	* This type holds quantile mapping information, i.e., the number of points and the points themselves
- New enumeration to read in the new file in `files.in`
- New enumeration for grid files but it is not used
- New function `_bmassqm_init()` to read the qm inputs
	* Errors if
		- The number of columns is not expected (one or four)
		- The number of points specified is not greater than 2
		- The quantile column is not always increasing for a specific PFT
		- The specified number of points is not what was read
- New function `biomass_quantile_map()` that will linearly interpolate from STEPWAT2 to satellite biomass points
	* Use the three-year running average for biomass as the number to map
- New note after function calls to state that the snap of annual biomass to 190 is not useful
@N1ckP3rsl3y N1ckP3rsl3y requested a review from kpalmqui January 6, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants