X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 20 Sep 2019 11:21 AM by  zhang zhi
save as - ascii grid batch mode
 5 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
12 Jan 2012 06:55 AM
    Hi Forum, Does anyone know how to save files as ESRI ASCII GRID in ENVI batch mode? as through the toolbar we can save file as ASCII and change the output style into ESRI ASCII GRID. Because I need the ASCII header to be like: ncols 642 nrows 395 xllcorner 4350250.000 yllcorner 2568250.000 cellsize 250.00000 rather then the ENVI standard ASCII header. I have tried using the ENVI_OUTPUT_TO_EXTERNAL_FORMAT routine but this routine only saves the file as an ENVI Standard ASCII file. thank you very much in advance. Ciao

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    12 Jan 2012 10:19 AM
    The XYZ and ESRI Ascii formats are not exposed with ENVI_OUTPUT_TO_EXTERNAL_FORMAT but you can use the same (unexposed) routine mentioned in this Help Article: http://www.exelisvis.com/.../ArticleID/4133.aspx The exception would be to replace the /output_xy keyword with /esri_header.

    Deleted User



    New Member


    Posts:
    New Member


    --
    13 Jan 2012 12:55 AM
    Hi MariM, Thank you very much for your reply!! it definitely solved this issue. Once again thank you very much for your help. :) Ciao

    zhang zhi



    New Member


    Posts:2
    New Member


    --
    23 Aug 2019 11:01 PM
    Hi, Mari,
    The link you posted is invalid now, can you kindly give a updated one?
    Thank you very much.

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    26 Aug 2019 07:57 AM
    The link was made internal since it is ENVI Classic code and is outdated. However, it should still work so I have made the article public again.
    https://www.harrisgeospatial.com/Support/Self-Help-Tools/Help-Articles/Help-Articles-Detail/ArtMID/10220/ArticleID/20717/How-to-programmatically-output-to-ascii-xyz-format

    zhang zhi



    New Member


    Posts:2
    New Member


    --
    20 Sep 2019 11:21 AM
    Really appreciate your help. It woks and solves the problem.
    Many thanks.
    You are not authorized to post a reply.