Global Mapper Pro

Importing ASTER data

Keegs5307
Keegs5307 Global Mapper User
edited May 2011 in GM Script Language
I am writing a script to import a large set of glacier outlines along with the ASTER GDEM dataset. I can not seem to get the ASTER data to import. I am using the IMPORT_TERRASERVER command but for the THEME_NAME command I am not sure what to put. It is not recognizing any name I try that is associated with the ASTER data set. Any help with importing the ASTER would be greatly appreciated.

My goal is use the outlines of the glaciers to set the export bounds for the DEM data.

I am using version 12.

Comments

  • global_mapper
    global_mapper Administrator
    edited May 2011
    Actually you will want the IMPORT_WMS command as below. To see what to use for a particular source, just load it in the user interface and save a workspace file, then copy the command from the workspace (which is a script):

    IMPORT_WMS WMS_SERVER_URL="http://wms.jpl.nasa.gov/wms.cgi" WMS_SERVICE="WMS" WMS_LAYER="gdem" \
    WMS_STYLE="short_int" LAT_LON_BOUNDS="21.30537727,51.43906555,21.78087273,51.73450445" \
    CENTER_LABEL="kozienice, pl" LAYER_DESC="ASTER GDEM Worldwide Elevation Data (1.5-arc-second Resolution) [Use http://asterweb.jpl.nasa.gov/gdem.asp if fails]" \
    LABEL_FIELD="" SAMPLING_METHOD="BILINEAR" ELEV_UNITS="METERS"

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • Keegs5307
    Keegs5307 Global Mapper User
    edited May 2011
    Thank you for the help. It is importing the ASTER data correctly now. There is one "small" problem I am having now that isn't exactly related to the ASTER data. When I run my script, it is exporting both of file types as KMZ's instead of simple Ascii text files or Arc Ascii Grids. It is not reporting any errors with the script and I can see no reason why it is choosing to export both files as KMZ's. Any ideas?

    GLOBAL_MAPPER_SCRIPT VERSION=1.00

    IMPORT_WMS WMS_SERVER_URL="http://wms.jpl.nasa.gov/wms.cgi" WMS_SERVICE="WMS" WMS_LAYER="gdem" \
    WMS_STYLE="short_int" LAT_LON_BOUNDS="-82,-56,-62,10" \
    CENTER_LABEL="kozienice, pl" LAYER_DESC="ASTER GDEM Worldwide Elevation Data (1.5-arc-second Resolution) [Use http://asterweb.jpl.nasa.gov/gdem.asp if fails]" \
    SAMPLING_METHOD="BILINEAR" ELEV_UNITS="METERS"

    LOAD_PROJECTION FILENAME="F:\Shape Analysis\alber_conic.prj"


    DIR_LOOP_START DIRECTORY="F:\Shape Analysis\Outlines" FILENAME_MASKS="*.*" RECURSE_DIR=YES

    IMPORT_ARCHIVE FILENAME="DOC.KML" TYPE="KML" ELEV_UNITS="METERS" LABEL_FIELD="" ARCHIVE_FILENAME="%FNAME_W_DIR%"

    EXPORT_VECTOR FILENAME="F:\Shape_Analysis\Data Files" TYPE=SIMPLE_ASCII LAYER_BOUNDS="%FNAME_W_DIR%" \
    COORD_DELIM=COMMA OVERWRITE_EXISTING=NO

    EXPORT_ELEVATION FILENAME="F:\Shape_Analysis\Dem's" TYPE=ARCASCIIGRID LAYER_BOUNDS="%FNAME_W_DIR%" \
    ELEVATION_UNITS=METERS FILL_GAPS=YES OVERWRITE_EXISTING=NO

    UNLOAD_LAYER FILENAME="%FNAME_W_DIR%"

    DIR_LOOP_END

    thanks
  • global_mapper
    global_mapper Administrator
    edited May 2011
    It looks like you aren't really specifying a filename in the EXPORT commands but more of a folder name? I would expect you to use say FILENAME="F:\Shape_Analysis\Data Files\%FNAME_WO_EXT%.txt" in the EXPORT_VECTOR command and something similar with say a .agr or .grd extension for the second.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
Sign In or Register to comment.