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
AnalyticsOtherScriptingRe: 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.
Re: How to apply JMP models to a GeoTIFF using Python ?Thank you very much for your answer ! I managed to solve my problem