08-14-2018
01:03 AM
- last edited on
08-15-2018
08:04 AM
by
ian.anderson
Hi. I'd like to use the hpfmerge.pmdl function in Spatial Modeler. Is there any way I can do this? Ta, Johnnie
Solved! Go to Solution.
08-15-2018 01:16 AM
Still not sure if this is possible - I tried using the Command Line operator but couldn't get it to work - but I've just copied the code to create a model.
08-15-2018 05:07 AM
Hi Johhnie,
You cannot directly open old mdl scripts into the new Spatial Model Editor. However there is a .gmd which you could open direcotlly, save as... to a .gmdx, and modify to give the exact desired processing. IMAGINE_HOME\etc\models\HPF_ResolutionMerge.gmd
Cheers
08-15-2018 06:37 AM
Ta Ian. I thought I remembered that the pmdl was slightly different to the gmd but looking at it apparantly not. Anyhow, I now have an all singing, all dancing model that automatically selects the correct matrix and weighting factor so I'm happy! Cheers, Johnnie
08-15-2018 06:50 AM
Hi Johnnie,
They should be very different. A (p)mdl is a Spatial Modelling Language (SML) script model. Whereas a .gmd is a Model Maker graphical model. Obviously the latter is based on the former, but has a lot of other stuff included to support the graphical aspects. The lack of the graphical aspects are what means you can't open a (p)mdl directly in either of the graphical editors.
A .gmdx is the new Spatial Model Editor graphical model format.
You should post your .gmdx back to the community for the benefit of all!
Cheers
08-15-2018 07:02 AM
What I meant was the code in the pmdl mimicked the gmd.
I'll think about posting a slightly redacted version :-)
08-15-2018 07:55 AM - edited 08-15-2018 07:57 AM
Here ya go.