Importing ASTER data
Keegs5307
Global Mapper User
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.
My goal is use the outlines of the glaciers to set the export bounds for the DEM data.
I am using version 12.
Comments
-
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 -
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 -
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
Howdy, Stranger!
Categories
- 12.2K All Categories
- 5.3K Features Discussion
- 312 Downloading Imagery
- 1.2K Elevation Data
- 371 Georeferencing Imagery Discussion
- 580 GM Script Language
- 42 User Scripts
- 111 GPS Features
- 388 Projection Questions
- 788 Raster Data
- 1.3K Vector Data
- 6.4K Support
- 159 Announcement and News
- 881 Bug Report
- 554 SDK
- 1.1K Suggestion Box
- 3.6K Technical Support
- 520 Other Discussion
- 125 GIS Data Sources
- 26 Global Mapper Showcase
- 217 How I use Global Mapper
- 99 Global Mapper Forum Website