MapInfo Pro Developers User Group

 View Only
  • 1.  Reapply Raster color parameters to mrr file in python

    Posted 11-24-2023 05:18

    G'day I have used the sample calculater python script and adapted it to perform a Null function on the MRR grid to remove values below a user specified RF level. The problem I have is the output raster grid loses its color style. I can add them back in manually and this adds an associated .ghx file as shown below. Is there a sample python code I could use to reallocate the raster style or use to prompt for output raster style

    Generated .ghx file when raster properties redefined

    thanks any info appreciated.



    ------------------------------
    Ian Padget
    Network Engineer
    Telstra Limited
    Adelaide SA
    ------------------------------


  • 2.  RE: Reapply Raster color parameters to mrr file in python

    Posted 11-28-2023 16:00

    Hi Ian,

    If you can email me your code we can take a look for you.

    Cheers,

    Nigel 



    ------------------------------
    Nigel Lester
    CEO
    The Spatial Distillery
    Fitzroy VIC
    ------------------------------



  • 3.  RE: Reapply Raster color parameters to mrr file in python

    Posted 11-29-2023 00:53
      |   view attached

    G'day Nigel, thanks I have been trying to initially to get information back on a specified raster to then reapply, not sure if that is the best option.

     

     

     

     

    regards

    Ian Padget

     

    T-Logo Green

    Network Engineer 

    Government Radio

    Networks and Infrastructure Engineering

    M  0427719668  |  Email:  Ian.T.Padget@team.telstra.com

     


    General

    From:
    Nigel Lester via Precisely <Mail@ConnectedCommunity.org>
    Sent: Wednesday, November 29, 2023 7:30 AM
    To: Padget, Ian <ian.t.padget@team.telstra.com>
    Subject: RE: MapInfo Pro Developers User Group : Reapply Raster color parameters to mrr file in python

     




    Attachment(s)



  • 4.  RE: Reapply Raster color parameters to mrr file in python

    Posted 11-29-2023 16:20

    This is the part of the script I was trying to get raster info




    ------------------------------
    Ian Padget
    Network Engineer
    Telstra Limited
    Adelaide SA
    ------------------------------