canyon_map.tcl

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

00001 #
00002 # This script was generated with funner v2.1beta (www.gridding.info)
00003 
00004 # 
00005 # load plugins
00006 # 
00007 load libglobe[info sharedlibextension]
00008 load libsurfit[info sharedlibextension]
00009 
00010 # remove all previous data and gridding rules
00011 clear_data 
00012 
00013 # set name of surface
00014 set map_name "map_canyon" 
00015 
00016 # set solver
00017 set_solver "cg" 
00018 
00019 # set tolerance for solver
00020 set tol 1e-006 
00021 
00022 ##
00023 ## load initial data 
00024 ##
00025  
00026 # load surface from surfit datafile 
00027 surf_load "canyon_trend.dat" "canyon_trend"  
00028  
00029 # load points from surfit datafile 
00030 pnts_load "canyon_pnts.dat" "canyon_pnts"  
00031  
00032 ##
00033 ## construct grid 
00034 ##
00035 grid_get -114 -111.6 0.0006 35.6 37 0.0007 
00036  
00037 ##
00038 ## create gridding rules
00039 ##
00040 
00041 # resulting surface at points = points values 
00042 points "canyon_pnts" 
00043 
00044 # resulting surface looks like trend surface 
00045 trend 1 2 "canyon_trend" 
00046 
00047 completer 0 1
00048 
00049 ##
00050 ## run gridding algorithm
00051 ##
00052 surfit 
00053 
00054 ##
00055 ## save results 
00056 ##
00057 
00058 # unload grid from memory
00059 grid_unload 
00060 
00061 # save surface to surfit datafile 
00062 surf_save "map_canyon.dat" "map_canyon" 



surfit: open source gridding and contouring software.