Skip to content

Instantly share code, notes, and snippets.

@robintw
Created February 18, 2016 21:51
Show Gist options
  • Save robintw/1d6f3f953945b63e4481 to your computer and use it in GitHub Desktop.
Save robintw/1d6f3f953945b63e4481 to your computer and use it in GitHub Desktop.
Code to run PROSPECT model only
import pyprosail
import numpy as np
def run_prospect(N, Cab, Car, Cbrown, Cw, Cm):
wavelengths = np.arange(400, 2501)
pyprosail._prosail_model.prospect_5b(N, Cab, Car, Cbrown, Cw, Cm)
arr = np.transpose(np.vstack( (wavelengths/1000.0, res[:, 0], res[:, 1]) ))
return arr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment