commands for contours saving and loading
[commands for contours]


Functions

bool surfit::cntr_read (const char *filename, const char *cntrname, int col1=1, int col2=2, int col3=3, const char *delimiters=" \t", int skip_lines=0, int grow_by=250)
bool surfit::cntr_load (const char *filename, const char *cntrname=NULL)
bool surfit::cntr_write (const char *filename, const char *cntr_name_or_position="0", const char *delimiter="\t")
bool surfit::cntr_save (const char *filename, const char *cntr_name_or_position="0")
bool surfit::cntr_load_shp (const char *filename, const char *cntrname=NULL)
bool surfit::cntrs_load_shp (const char *filename)
bool surfit::cntr_save_shp (const char *filename, const char *cntr_name_or_position="0")

Function Documentation

bool cntr_load const char *  filename,
const char *  cntrname = NULL
 

Tcl syntax:
cntr_load "filename" "cntrname"
Description:
reads countour named 'cntrname' from surfit datafile
Example:
cntr_load "C:\\my_cntr.dat" "my_cntr"

bool cntr_load_shp const char *  filename,
const char *  cntrname = NULL
 

Tcl syntax:
cntr_load_shp "filename" "cntrname"
Description:
reads countour named 'cntrname' from ERSI shape file
Example:
cntr_load_shp "C:\\my_cntr.shp" "my_cntr"
Implemented in library:
libsurfit_io

bool cntr_read const char *  filename,
const char *  cntrname,
int  col1 = 1,
int  col2 = 2,
int  col3 = 3,
const char *  delimiters = " \t",
int  skip_lines = 0,
int  grow_by = 250
 

Tcl syntax:
cntr_read "filename" "cntrname" columns col1 col2 col3 "delimiters" skip_lines
Description:
reads contour from formatted text file
Parameters:
filename name of formatted text file
cntrname name for contour object
col1 column with X coordinates
col2 column with Y coordinates
col3 colimn with Z values
delimiters delimiter between columns. May be " ", "\t", "," or other symbols
skip_lines number of lines to skip header
grow_by =250
Example:
cntr_read "C:\\my_cntr.txt" "my_cntr"
Examples:
contour.tcl, contour_ineq.tcl, flow_cntr.tcl, map_hor_frac.tcl, and map_ver_frac.tcl.

bool cntr_save const char *  filename,
const char *  cntr_name_or_position = "0"
 

Tcl syntax:
cntr_save "filename" "cntr_name_or_position"
Description:
saves contour to surfit datafile
Example:
cntr_save "C:\\my_cntr.dat" "my_cntr"

bool cntr_save_shp const char *  filename,
const char *  cntr_name_or_position = "0"
 

Tcl syntax:
cntr_save_shp "filename" "cntr_name_or_position"
Description:
saves contour to ESRI shape file
Example:
cntr_save_shp "C:\\my_cntr.shp" "my_cntr"
Implemented in library:
libsurfit_io

bool cntr_write const char *  filename,
const char *  cntr_name_or_position = "0",
const char *  delimiter = "\t"
 

Tcl syntax:
cntr_write "filename" "cntr_name_or_position" "delimiter"
Description:
saves contour to formatted text file.
Example:
cntr_write "C:\\my_cntr.txt" "my_cntr"

bool cntrs_load_shp const char *  filename  ) 
 

Tcl syntax:
cntrs_load_shp "filename" "cntrname"
Description:
reads all countours from ERSI shape file
Example:
cntrs_load_shp "C:\\my_cntr.shp"
Implemented in library:
libsurfit_io



surfit: open source gridding and contouring software.