commands for curves saving and loading
[commands for curves]


Functions

bool surfit::curv_read (const char *filename, const char *curvname=NULL, int col1=1, int col2=2, const char *delimiter=" \t", int skip_lines=0, int grow_by=250)
bool surfit::curv_load (const char *filename, const char *curvname=NULL)
bool surfit::curv_write (const char *filename, const char *curv_name_or_position="0", const char *delimiter="\t")
bool surfit::curv_save (const char *filename, const char *curv_name_or_position="0")
bool surfit::curv_load_bln (const char *filename)
bool surfit::curv_load_shp (const char *filename, const char *curvname=NULL)
bool surfit::curvs_load_shp (const char *filename)
bool surfit::curv_save_bln (const char *filename, const char *curv_name_or_position="0", int orient=1)
bool surfit::curv_save_shp (const char *filename, const char *curv_name_or_position="0")

Function Documentation

bool curv_load const char *  filename,
const char *  curvname = NULL
 

Tcl syntax:
curv_load "filename" "curvname"
Description:
loads curve from surfit datafile

bool curv_load_bln const char *  filename  ) 
 

Tcl syntax:
curv_load_bln "filename"
Description:
loads curve from BLN file
Implemented in library:
libsurfit_io

bool curv_load_shp const char *  filename,
const char *  curvname = NULL
 

Tcl syntax:
curv_load_shp "filename" "curvname"
Description:
loads curve named "curvname" from ERSI shape file
Implemented in library:
libsurfit_io

bool curv_read const char *  filename,
const char *  curvname = NULL,
int  col1 = 1,
int  col2 = 2,
const char *  delimiter = " \t",
int  skip_lines = 0,
int  grow_by = 250
 

Tcl syntax:
curv_read "filename" "curvname" 1st_column 2nd_column "delimiters" number_of_lines_to_skip
Description:
loads curve from formatted text file
Parameters:
filename name of formatted text file
curvname name for curv dataset
col1 column with X coordinates
col2 column with Y coordinates
skip_lines number of lines to skip header
delimiter delimiters between columns. May be " ", "\t", "," or other symbols
grow_by =250
Example
curv_read "C:\\curv.txt" my_curv curv_read "C:\\curv2.txt" my_curv2 2 3 "\t"
Examples:
curve.tcl, curve_ineq.tcl, curve_surf.tcl, curve_surf_ineq.tcl, fault.tcl, fault_aniso.tcl, fault_approx.tcl, flow_area.tcl, flow_cntr.tcl, flow_curve.tcl, flow_points.tcl, flow_points2.tcl, map_hor_frac.tcl, map_ver_frac.tcl, points.tcl, and trend.tcl.

bool curv_save const char *  filename,
const char *  curv_name_or_position = "0"
 

Tcl syntax:
curv_save "filename" "curv_name_or_position"
Description:
saves curve to surfit datafile

bool curv_save_bln const char *  filename,
const char *  curv_name_or_position = "0",
int  orient = 1
 

Tcl syntax:
curv_save_bln "filename" "curv_name_or_position" orient
Description:
saves curve to BLN file
Parameters:
filename name for BLN file
curv_name_or_position curv name, or curve position number
orient This value is equal to 1 if the region is inside area and equal to 0 if the region is outside area
Example
curv_save_bln "C:\\curv.bln" my_curv 1
Implemented in library:
libsurfit_io

bool curv_save_shp const char *  filename,
const char *  curv_name_or_position = "0"
 

Tcl syntax:
curv_save_shp "filename" "curv_name_or_position"
Description:
saves curve to ERSI shape file
Implemented in library:
libsurfit_io

bool curv_write const char *  filename,
const char *  curv_name_or_position = "0",
const char *  delimiter = "\t"
 

Tcl syntax:
curv_write "filename" "delimiter"
Description:
saves curve to formatted text file.

bool curvs_load_shp const char *  filename  ) 
 

Tcl syntax:
curvs_load_shp "filename" "curvname"
Description:
loads all curves from ERSI shape file
Implemented in library:
libsurfit_io



surfit: open source gridding and contouring software.