Created
          February 18, 2016 21:51 
        
      - 
      
- 
        Save robintw/1d6f3f953945b63e4481 to your computer and use it in GitHub Desktop. 
    Code to run PROSPECT model only
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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