cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
BathyAly
Level I

How to apply JMP models to a GeoTIFF using Python ?

Dear all,

 

Here is my issue :

I extracted a point cloud from some large raster datasets to find a good predictive model. Thus, I used JMP which worked really well. However, the models' equations (The best results were obtained using Boosted Tree and Boostrap Forest) are pretty complicated.

 

Now I have to apply the equation to an entire raster (which is a GeoTIFF). I tried exporting the Python script but I am stuck. I wanted to work on Spyder and use the rasterio library to import my GeoTIFF but Spyder doesn't recognize jmp library and the script is way too long and complicated. It takes too much time to run. 

 

Does anybody have any idea on how I could solve this issue and apply the equation to my GeoTIFF ?

 

I hope this is clear... Thank you for your time and answers. Have a nice day.

 

Alyson

2 REPLIES 2
Byron_JMP
Staff

Re: How to apply JMP models to a GeoTIFF using Python ?

a common problem is with the location of the jmp_score.py file

The header of your JMP Pyton model should something like this:

from __future__ import division
import jmp_score as jmp
from math import *
import numpy as np

On a Mac, the default path is: 

/Library/Application Support/JMP/17/scoring/Python/jmp_score.py

I usually just throw this file in the same folder as the model file.

 

 

 

JMP Systems Engineer, Health and Life Sciences (Pharma)
BathyAly
Level I

Re: How to apply JMP models to a GeoTIFF using Python ?

Thank you very much for your answer ! I managed to solve my problem