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

Use scipy solvers for finding SDF and correction factors #48

Open
jo-tham opened this issue Nov 18, 2016 · 0 comments
Open

Use scipy solvers for finding SDF and correction factors #48

jo-tham opened this issue Nov 18, 2016 · 0 comments

Comments

@jo-tham
Copy link
Contributor

jo-tham commented Nov 18, 2016

Essentially, the sdf functions solve the desntity functions for SDF given the
observed age, site index etc

if we use a function to generate the density functions such that they are only variable in SDF, a scipy solver can be used

this reduces our maintenance overhead and probably gives a speed improvement

This is likely also true for the basal area correction factor functions of which the aw function is currently the bottleneck in gypsy

jo-tham pushed a commit that referenced this issue Dec 28, 2016
For #66 #48

Also revise factor finder for sb

This has introduced a discrepancy in the simulation results originating
in factor finder

The Sw factor is now 3.75 for plot 1049300, before it was 1.1352

Probably because of:

-    initial_age_sw = kwargs['startTageSw']
-    years_to_bh_sw = kwargs['y2bh_Sw']
-    species_comp_sw = kwargs['SC_Sw']
     site_index = kwargs['SI_bh_Sw']
-    present_density = kwargs['N_bh_SwT']
+    densities = kwargs['densities']

now, the species_composition is variable isntead of fixed at the time of
data

provided the time series of species_composition from the densities array
passes through the data in the appropriate year, this hsould not be
changed

it may not pass through it; and this was peculiar for aspen because
aspen density for young plots is more variable than other species

one option is to use a flag in the simulation functions to use constant
values for species_comp and present density (the values from the data year)
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

No branches or pull requests

1 participant