canyon_prepare.tcl

This script is a part of a grand canyon reconstruction example. See globe library description for details.

00001 # 
00002 # load plugins
00003 # 
00004 load libglobe[info sharedlibextension]
00005 load libsurfit[info sharedlibextension]
00006 
00007 # remove all previous data and gridding rules
00008 clear_data
00009 
00010 #
00011 # convert USA dtm to points inside canyon region
00012 #
00013 dem_load_dtm "usa.hdr" "usa" "usa.bin"
00014 dem_to_pnts "usa"
00015 pnts_setName "canyon_pnts" "usa"
00016 area_read "canyon_rect.txt" "canyon_rect"
00017 pnts_filter_out_area "canyon_pnts" "canyon_rect"
00018 pnts_save "canyon_pnts.dat" "canyon_pnts"
00019 clear_data
00020 
00021 #
00022 # convert N35W112 DEM to surface and save it to surfit datafile
00023 #
00024 dem_load_hgt_zip "N35W112.hgt.zip" "N35W112.hgt" 
00025 dem_to_surf "N35W112.hgt"
00026 surf_setName "N35W112" "N35W112.hgt"
00027 surf_save "N35W112.dat" "N35W112"
00028 clear_data
00029 
00030 #
00031 # convert N35W113 DEM to surface and save it to surfit datafile
00032 #
00033 dem_load_hgt_zip "N35W113.hgt.zip" "N35W113.hgt" 
00034 dem_to_surf "N35W113.hgt"
00035 surf_setName "N35W113" "N35W113.hgt"
00036 surf_save "N35W113.dat" "N35W113"
00037 clear_data
00038 
00039 #
00040 # convert N35W114 DEM to surface and save it to surfit datafile
00041 #
00042 dem_load_hgt_zip "N35W114.hgt.zip" "N35W114.hgt" 
00043 dem_to_surf "N35W114.hgt"
00044 surf_setName "N35W114" "N35W114.hgt"
00045 surf_save "N35W114.dat" "N35W114"
00046 clear_data
00047 
00048 #
00049 # convert N36W112 DEM to surface and save it to surfit datafile
00050 #
00051 dem_load_hgt_zip "N36W112.hgt.zip" "N36W112.hgt" 
00052 dem_to_surf "N36W112.hgt"
00053 surf_setName "N36W112" "N36W112.hgt"
00054 surf_save "N36W112.dat" "N36W112"
00055 clear_data
00056 
00057 #
00058 # convert N36W113 DEM to surface and save it to surfit datafile
00059 #
00060 dem_load_hgt_zip "N36W113.hgt.zip" "N36W113.hgt" 
00061 dem_to_surf "N36W113.hgt"
00062 surf_setName "N36W113" "N36W113.hgt"
00063 surf_save "N36W113.dat" "N36W113"
00064 clear_data
00065 
00066 #
00067 # convert N36W114 DEM to surface and save it to surfit datafile
00068 #
00069 dem_load_hgt_zip "N36W114.hgt.zip" "N36W114.hgt" 
00070 dem_to_surf "N36W114.hgt"
00071 surf_setName "N36W114" "N36W114.hgt"
00072 surf_save "N36W114.dat" "N36W114"
00073 clear_data
00074 
00075 #
00076 # convert N37W112 DEM to surface and save it to surfit datafile
00077 #
00078 dem_load_hgt_zip "N37W112.hgt.zip" "N37W112.hgt" 
00079 dem_to_surf "N37W112.hgt"
00080 surf_setName "N37W112" "N37W112.hgt"
00081 surf_save "N37W112.dat" "N37W112"
00082 clear_data
00083 
00084 #
00085 # convert N37W113 DEM to surface and save it to surfit datafile
00086 #
00087 dem_load_hgt_zip "N37W113.hgt.zip" "N37W113.hgt" 
00088 dem_to_surf "N37W113.hgt"
00089 surf_setName "N37W113" "N37W113.hgt"
00090 surf_save "N37W113.dat" "N37W113"
00091 clear_data
00092 
00093 #
00094 # convert N37W114 DEM to surface and save it to surfit datafile
00095 #
00096 dem_load_hgt_zip "N37W114.hgt.zip" "N37W114.hgt" 
00097 dem_to_surf "N37W114.hgt"
00098 surf_setName "N37W114" "N37W114.hgt"
00099 surf_save "N37W114.dat" "N37W114"
00100 clear_data
00101 
00102 
00103 



surfit: open source gridding and contouring software.