Welcome to Golden Software Support

How can I get height (or XYZ) data from png Image with scale bar?

Comments

3 comments

  • Official comment
    Avatar
    Drew Dudley

    Hello Hanbyoel,

    Thank you for posting your question. Image files that contain Z values, can be converted to a data file by using the Grids | Edit  | Covert command. In the Save Grid As dialog, you will need to change the Save as type to DAT XYZ grid (*.dat). I know this works for TIF images that contain Z values, but I have not seen a PNG file that contains Z values. You can give this workflow a shot to see if your PNG contains Z values. 

    Sincerely,
    Drew Dudley
    Technical Support

     

    Comment actions Permalink
  • Avatar
    Hanbyoel Yoo

    Hi  Drew,

    Thank you for your answer.

    As you pointed out. PNG doesn't contain Z values by itself.

    The scale bar I mentioned in my quastion indicated graphical scale bar like picture above.

    I tried the way you tought me after I converted PNG into TIF, but it doesn't work.

    It seems like some information is loosing during converting process, because RGB is three values and Z is mono value.

    May be some additional prcess should be needed like "scale bar registration" so the program can match RGB to Z.

     

    Sincerely,

    Hanbyeol.

     

    0
    Comment actions Permalink
  • Avatar
    Drew Dudley

    Hi Hanbyeol,

    You are very welcome! Thank you for the clarification on what you are trying to accomplish, I completely understand. Currently, it is not possible to convert the image into a grid file (or raw XYZ data) based on the color scale. We have had a few other users request this functionality in Surfer. I have added your name and comments to our feature request database as a vote to have this type of feature in future versions of Surfer. 

    Sincerely,
    Drew Dudley
    Technical Support

    0
    Comment actions Permalink

Please sign in to leave a comment.