input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
int GMT_grdconvert(void *V_API, int mode, void *args) {
int v4;
char *file;
int format;
char *v7;
int v8;
unsigned int verbose;
bool v10;
int error;
unsigned int hmode;
GMT_GRID *Grid;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GRDCONVERT_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
unsigne... | int GMT_grdconvert (void *V_API, int mode, void *args) {
int error = 0;
unsigned int hmode, type[2] = {0, 0};
char fname[2][GMT_BUFSIZ];
char command[GMT_GRID_COMMAND_LEN320] = {""};
struct GMT_GRID *Grid = NULL;
struct GRDCONVERT_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTIO... | GMT_grdconvert | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdcut(void *V_API, int mode, void *args) {
uint32_t n_rows;
double v5;
uint32_t v6;
double v7;
double v8;
double v9;
double v10;
double v11;
char *file;
int v13;
long v14;
int v15;
int v16;
int v17;
int v18;
unsigned int *v19;
long v20;
unsigned int *v21;
long v22;
unsig... | int GMT_grdcut (void *V_API, int mode, void *args) {
int error = 0;
unsigned int nx_old, ny_old, add_mode = 0U, side, extend, type = 0U, def_pad[4], pad[4];
uint64_t node;
bool outside[4] = {false, false, false, false};
char *name[2][4] = {{"left", "right", "bottom", "top"}, {"west", "east", "south", "north"}};
... | GMT_grdcut | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdedit(void *V_API, int mode, void *args) {
char *file;
GMT_GRID_HEADER *header;
float v6;
float v7;
float v8;
char grid_was_read;
unsigned int row;
unsigned int col;
int error;
float nan_value;
int in_ID;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
uint64_t n_data;
uint64_t n_use;
... | int GMT_grdedit (void *V_API, int mode, void *args) {
bool grid_was_read = false;
unsigned int row, col;
int error;
uint64_t ij, n_data, n_use;
double shift_amount = 0.0, *in = NULL;
char *registration[2] = {"gridline", "pixel"}, *out_file = NULL;
struct GRDEDIT_CTRL *Ctrl = NULL;
struct GMT_GRID *G = N... | GMT_grdedit | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdfft(void *V_API, int mode, void *args) {
unsigned int verbose;
unsigned int v5;
unsigned int v6;
unsigned int v7;
unsigned int v8;
unsigned int v9;
unsigned int v10;
unsigned int v11;
unsigned int v12;
unsigned int v13;
unsigned int op_count;
unsigned int par_count;
unsigned int k;
... | int GMT_grdfft (void *V_API, int mode, void *args) {
int error = 0, status;
unsigned int op_count = 0, par_count = 0, k;
char *spec_msg[2] = {"spectrum", "cross-spectrum"};
struct GMT_GRID *Grid[2] = {NULL, NULL}, *Orig[2] = {NULL, NULL};
struct F_INFO f_info;
struct GMT_FFT_WAVENUMBER *FFT_info[2] = {NULL, NULL... | GMT_grdfft | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdfilter(void *V_API, int mode, void *args) {
_BOOL4 v4;
bool v5;
double v6;
double v7;
double *v8;
double *v9;
double v10;
bool v11;
bool v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18;
double v19;
double v20;
double v21;
double v22;
double ... | int GMT_grdfilter (void *V_API, int mode, void *args) {
bool fast_way, slow = false, slower = false, same_grid = false;
bool spherical = false, full_360, visit_check = false, get_weight_sum = true;
unsigned int n_nan = 0, col_out, row_out, effort_level;
unsigned int filter_type, one_or_zero = 1, GMT_n_multiples = 0... | GMT_grdfilter | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdgradient(void *V_API, int mode, void *args) {
int v4;
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
double v16;
float v17;
double v18;
double v19;
double v20;
double v21;
uint64_t v22;
flo... | int GMT_grdgradient (void *V_API, int mode, void *args) {
bool sigma_set = false, offset_set = false, bad, new_grid = false, separate = false;
int p[4], mx, error = 0;
unsigned int row, col, n;
uint64_t ij, ij0, index, n_used = 0;
char format[GMT_BUFSIZ] = {""}, buffer[GMT_GRID_REMARK_LEN160] = {""};
double d... | GMT_grdgradient | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdhisteq(void *V_API, int mode, void *args) {
int v4;
int error;
int errora;
GMT_GRID *Out;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMT_GRID *Grid;
GRDHISTEQ_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL *API;
double wesn[6];
*(_QWORD *)&wesn[5] = __readfsqword(0x28u);
Grid = 0;
Out = 0;
... | int GMT_grdhisteq (void *V_API, int mode, void *args) {
int error = 0;
double wesn[4];
struct GMT_GRID *Grid = NULL, *Out = NULL;
struct GRDHISTEQ_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (API... | GMT_grdhisteq | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdimage(void *V_API, int mode, void *args) {
bool v4;
int v5;
const char *v6;
GMT_GRID *Data;
int v8;
bool v9;
char *v10;
int v11;
GMT_GRID *v12;
uint32_t registration;
char *v14;
int v15;
char *file;
int v17;
GMT_BFN *v18;
GMT_GRID_HEADER *header;
GMT_GRID_HEADER *v20;
doub... | int GMT_grdimage (void *V_API, int mode, void *args) {
bool done, need_to_project, normal_x, normal_y, resampled = false, gray_only = false;
bool nothing_inside = false, use_intensity_grid;
bool do_indexed = false;
unsigned int n_columns = 0, n_rows = 0, grid_registration = GMT_GRID_NODE_REG, n_grids;
unsigned int... | GMT_grdimage | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdinfo(void *V_API, int mode, void *args) {
bool v4;
bool v5;
int v6;
double v7;
double v8;
double v9;
double v10;
unsigned int v11;
unsigned int v12;
unsigned int v13;
double v14;
const unsigned short *v15;
const unsigned short *v16;
_BOOL4 v17;
const unsigned short *v18;
const... | int GMT_grdinfo (void *V_API, int mode, void *args) {
int error = 0;
unsigned int n_grds = 0, o_type = GMT_IS_TEXTSET, n_cols = 0, col, i_status;
bool subset, delay;
uint64_t ij, n_nan = 0, n = 0;
double x_min = 0.0, y_min = 0.0, z_min = 0.0, x_max = 0.0, y_max = 0.0, z_max = 0.0, wesn[4];
double global_xmin, g... | GMT_grdinfo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdlandmask(void *V_API, int mode, void *args) {
char v4;
const char *v5;
const char *v6;
unsigned int verbose;
int v8;
bool v9;
bool v10;
double v11;
double v12;
double v13;
double v14;
const char *v15;
const char *v16;
double v17;
double v18;
int v19;
double v20;
double v21... | int GMT_grdlandmask (void *V_API, int mode, void *args) {
bool temp_shift = false, wrap, used_polygons, double_dip;
unsigned int base = 3, k, bin, np, side, np_new;
int row, row_min, row_max, ii, col, col_min, col_max, i, direction, err, ind, nx1, ny1, error = 0;
uint64_t ij, count[GRDLANDMASK_N_CLASSES];
char ... | GMT_grdlandmask | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdmask(void *V_API, int mode, void *args) {
float v4;
unsigned int verbose;
long v6;
long v7;
bool v8;
bool v9;
_BOOL4 v10;
bool v11;
unsigned int v12;
float v13;
float v14;
uint32_t v15;
int v16;
double v17;
int pole;
bool wrap_180;
bool do_test;
bool periodic;
bool perio... | int GMT_grdmask (void *V_API, int mode, void *args) {
bool periodic = false, periodic_grid = false, do_test = true;
bool wrap_180, replicate_x, replicate_y;
unsigned int side = 0, known_side, *d_col = NULL, d_row = 0;
unsigned int tbl, gmode, n_pol = 0, max_d_col = 0, n_cols = 2, rowu, colu, x_wrap, y_wrap;
int ro... | GMT_grdmask | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdmath(void *V_API, int mode, void *args) {
double v4;
double v5;
float v6;
float v7;
float v8;
float v9;
char v10;
double v11;
unsigned int v12;
GRDMATH_STACK *v13;
float factor;
unsigned int v15;
unsigned int v16;
GRDMATH_STORE *v17;
GRDMATH_STORE *v18;
GRDMATH_STORE *v19;
u... | int GMT_grdmath (void *V_API, int mode, void *args) {
int k, op = 0, new_stack = -1, rowx, colx, status, start, error = 0;
unsigned int kk, nstack = 0, n_stored = 0, n_items = 0, this_stack, pos;
unsigned int consumed_operands[GRDMATH_N_OPERATORS], produced_operands[GRDMATH_N_OPERATORS];
bool subset;
char *in_file... | GMT_grdmath | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdpaste(void *V_API, int mode, void *args) {
int result;
bool v4;
unsigned int verbose;
GMT_GRID_HEADER *header;
GMT_GRID_HEADER *v7;
unsigned int *pad;
long v9;
unsigned int *v10;
long v11;
unsigned int *v12;
long v13;
unsigned int *v14;
long v15;
unsigned int *v16;
long v17;
u... | int GMT_grdpaste (void *V_API, int mode, void *args) {
int error = 0, way = 0;
unsigned int one_or_zero;
bool common_y = false;
char format[GMT_BUFSIZ];
double x_noise, y_noise;
struct GMT_GRID *A = NULL, *B = NULL, *C = NULL;
struct GRDPASTE_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
... | GMT_grdpaste | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdproject(void *V_API, int mode, void *args) {
int v4;
bool v5;
int v6;
int v7;
unsigned int verbose;
int v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
unsigned int v16;
int v17;
double v18;
double v19;
double v20;
double v21;
double v22;
do... | int GMT_grdproject (void *V_API, int mode, void *args) {
bool set_n = false, shift_xy = false;
unsigned int use_nx = 0, use_ny = 0, offset, k, unit = 0;
int error = 0;
char format[GMT_BUFSIZ] = {""}, unit_name[GMT_GRID_UNIT_LEN80] = {""}, scale_unit_name[GMT_GRID_UNIT_LEN80] = {""};
double wesn[4];
double xmin,... | GMT_grdproject | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdraster(void *V_API, int mode, void *args) {
double *inc;
double v5;
double *v6;
double v7;
int v8;
double v9;
double v10;
double v11;
double v12;
unsigned int verbose;
double v14;
double v15;
double v16;
double v17;
double v18;
uint32_t v19;
uint32_t v20;
double v21;
dou... | int GMT_grdraster (void *V_API, int mode, void *args) {
unsigned int i, j, k, ksize = 0, iselect, imult, jmult, nrasters, row, col;
unsigned int ijras, jseek, jras2, iras2;
uint64_t n_nan;
int jrasstart, irasstart, iras, jras, error = 0;
bool firstread;
uint64_t ij;
size_t nmask = 0, n_expected;
char *buff... | GMT_grdraster | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdreformat(void *V_API, int mode, void *args) {
GMTAPI_CTRL *API;
API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API);
if (*(_DWORD *)((char *)strncmp + (unsigned long)API->GMT) > 5u) {
GMT_Report(API, 1u, "Shared GMT module not found: grdreformat\n");
return 38;
} else {
GMT_Report(API, 3u,
... | int GMT_grdreformat (void *V_API, int mode, void *args) {
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (gmt_M_compat_check (API->GMT, 5)) {
GMT_Report (API, GMT_MSG_COMPAT, "Warning: module grdreformat is deprecated; use grdconvert.\n");
return (GMT_Call_Module (API, "grdconvert", mode, args));
}
GM... | GMT_grdreformat | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdsample(void *V_API, int mode, void *args) {
double *v4;
double *v5;
double v6;
double v7;
bool geo;
int col;
uint32_t registration;
int shift;
int error;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
double *lon;
GRDSAMPLE_CTRL *Ctrl;
GMT_GRID *Gin;
GMT_GRID *Gout;
GMT_CTRL *GMT;
... | int GMT_grdsample (void *V_API, int mode, void *args) {
int error = 0, row, col;
unsigned int registration;
uint64_t ij;
char format[GMT_BUFSIZ];
double *lon = NULL, lat, wesn[4], inc[2];
struct GRDSAMPLE_CTRL *Ctrl = NULL;
struct GMT_GRID *Gin = NULL, *Gout = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy... | GMT_grdsample | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdtrack(void *V_API, int mode, void *args) {
GRD_CONTAINER *v4;
int v5;
GRD_CONTAINER *v6;
bool v7;
double v8;
unsigned int v9;
unsigned int n_grids;
unsigned int v11;
double **v12;
double *v13;
double *v14;
double *v15;
double *v16;
double *v17;
double **data;
uint64_t v19;
d... | int GMT_grdtrack (void *V_API, int mode, void *args) {
int status, error, ks;
uint64_t n_points = 0, n_read = 0;
unsigned int g, k, xy_mode;
bool img_conv_needed = false, some_outside = false;
char line[GMT_BUFSIZ] = {""}, run_cmd[BUFSIZ] = {""}, *cmd = NULL;
double *value, wesn[4];
struct GRDTRACK_CTRL *C... | GMT_grdtrack | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdtrend(void *V_API, int mode, void *args) {
bool v4;
bool v5;
int v6;
double *v7;
unsigned int verbose;
bool trivial;
bool set_ones;
bool weighted;
unsigned int row;
unsigned int col;
int error;
int ierror;
GMT_GRID *R;
GMT_GRID *T;
GMT_GRID *W;
GMT_CTRL *GMT_cpy;
GMT_OPTION ... | int GMT_grdtrend (void *V_API, int mode, void *args) {
bool trivial, weighted,iterations, set_ones = true;
int error = 0;
unsigned int row, col;
uint64_t ij;
char format[GMT_BUFSIZ];
double chisq, old_chisq, scale = 1.0, dv;
double *xval = NULL;
double *yval = NULL;
double *gtg = NULL;
double *gtd = ... | GMT_grdtrend | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdvector(void *V_API, int mode, void *args) {
int v4;
bool v5;
int unit;
float v7;
double v8;
double v9;
double v10;
double v11;
double factor;
double v13;
double cosx;
double sinx;
void *argsa;
int modea;
void *V_APIa;
bool Geographic;
unsigned int row;
unsigned int col;
... | int GMT_grdvector (void *V_API, int mode, void *args) {
unsigned int justify, row, col, col_0, row_0, d_col, d_row, k, n_warn[3] = {0, 0, 0}, warn;
int error = 0;
bool Geographic;
uint64_t ij;
double tmp, x, y, plot_x, plot_y, x_off, y_off, f;
double x2, y2, wesn[4], value, vec_length, vec_azim, scaled_vec_len... | GMT_grdvector | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdview(void *V_API, int mode, void *args) {
bool v4;
bool v5;
int v6;
int v7;
uint32_t n_columns;
int v9;
int v10;
uint32_t n_rows;
int v12;
uint32_t v13;
double v14;
double z_high;
float v16;
float v17;
double v18;
double v19;
GRDVIEW_POINT *point;
GRDVIEW_POINT *v21;
flo... | int GMT_grdview (void *V_API, int mode, void *args) {
bool get_contours, bad, good, pen_set, begin, saddle, drape_resample = false;
bool nothing_inside = false, use_intensity_grid;
unsigned int c, nk, n4, row, col, n_edges, d_reg[3], i_reg = 0;
unsigned int t_reg, n_out, k, k1, ii, jj, PS_colormask_off = 0, *edge =... | GMT_grdview | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_grdvolume(void *V_API, int mode, void *args) {
bool v4;
unsigned int v5;
double value;
double v7;
double inc;
float v9;
float v10;
float v11;
double v12;
double v13;
double d_NaN;
bool shrink;
uint32_t row;
uint32_t rowa;
unsigned int col;
uint32_t cola;
unsigned int c;
unsig... | int GMT_grdvolume (void *V_API, int mode, void *args) {
bool bad, shrink, cut[4];
int error = 0, ij_inc[5];
unsigned int row, col, c, k, pos, neg, nc, n_contours;
uint64_t ij;
double take_out, dv, da, cval = 0.0, cellsize, fact, dist_pr_deg, sum, z_range, out[4];
double *area = NULL, *vol = NULL, *height = NUL... | GMT_grdvolume | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_greenspline(void *V_API, int mode, void *args) {
int result;
unsigned int v4;
int v5;
double v6;
unsigned int v7;
double **v8;
bool v9;
double v10;
uint64_t v11;
void **v12;
unsigned int v13;
double **v14;
double **v15;
double *v16;
double v17;
unsigned int v18;
double *v19;
... | int GMT_greenspline (void *V_API, int mode, void *args) {
uint64_t col, row, n_read, p, k, i, j, seg, m, n, nm, n_ok = 0, ij, ji, ii, n_duplicates = 0, n_skip = 0;
unsigned int dimension = 0, normalize = 0, n_cols, w_col, L_Max = 0;
size_t old_n_alloc, n_alloc;
int error, out_ID, way, n_columns, n_use;
bool delete... | GMT_greenspline | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double GMT_histmode(GMT_CTRL *GMT, double *z, uint64_t n,
GRDFILTER_BIN_MODE_INFO *B) {
double v4;
unsigned int *v5;
int mode_choice;
bool done;
signed int n_modes;
unsigned int mode_count;
unsigned int ubin;
int mode_bin;
int bin;
double value;
uint64_t i;
value = 0.0;
n_... | GMT_LOCAL double GMT_histmode (struct GMT_CTRL *GMT, double *z, uint64_t n, struct GRDFILTER_BIN_MODE_INFO *B) {
double value = 0.0;
uint64_t i;
unsigned int n_modes = 0, mode_count = 0, ubin;
int bin, mode_bin = 0;
bool done;
gmt_M_unused(GMT);
gmt_M_memset (B->icount, B->n_bins, unsigned int);
for (i =... | GMT_histmode | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double GMT_histmode_weighted(GMT_CTRL *GMT, GMT_OBSERVATION *data, uint64_t n,
GRDFILTER_BIN_MODE_INFO *B) {
double v4;
int mode_choice;
bool done;
signed int n_modes;
unsigned int ubin;
int mode_bin;
int bin;
double value;
double mode_count;
uint64_t i;
value = 0.0;
... | GMT_LOCAL double GMT_histmode_weighted (struct GMT_CTRL *GMT, struct GMT_OBSERVATION *data, uint64_t n, struct GRDFILTER_BIN_MODE_INFO *B) {
double value = 0.0, mode_count = 0.0;
uint64_t i;
unsigned int n_modes = 0, ubin;
int bin, mode_bin = 0;
bool done;
gmt_M_unused(GMT);
gmt_M_memset (B->fcount, B->n_b... | GMT_histmode_weighted | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_kml2gmt(void *V_API, int mode, void *args) {
char *format_float_out;
bool v5;
char *segment_header;
char *v7;
char *v8;
char *v9;
char *v10;
bool scan;
bool first;
bool single;
bool skip;
unsigned int pos;
unsigned int i;
unsigned int fmode;
unsigned int n_features;
int error;
... | int GMT_kml2gmt (void *V_API, int mode, void *args) {
unsigned int i, start, fmode = POINT, n_features = 0, pos;
int error = 0, n_scan;
size_t length;
bool scan = true, first = true, skip, single = false;
char line[GMT_BUFSIZ] = {""}, buffer[GMT_BUFSIZ] = {""}, name[GMT_BUFSIZ] = {""};
char word[GMT_LEN128] = {... | GMT_kml2gmt | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_makecpt(void *V_API, int mode, void *args) {
char *v4;
int v5;
double *v6;
double d_NaN;
unsigned int pos;
int i;
int nz;
unsigned int cpt_flags;
int k;
int error;
unsigned int col;
double *z;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMT_DATASET *D;
GMT_PALETTE *Pin;
GMT_PALETTE... | int GMT_makecpt (void *V_API, int mode, void *args) {
int i, nz = 0, error = 0;
unsigned int cpt_flags = 0, pos = 0;
double *z = NULL;
char *l = NULL, *kind[2] = {"discrete", "continuous"}, p[GMT_LEN128] = {""};
struct MAKECPT_CTRL *Ctrl = NULL;
struct GMT_PALETTE *Pin = NULL, *Pout = NULL;
struct GMT_DATASET... | GMT_makecpt | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_mapproject(void *V_API, int mode, void *args) {
int v4;
int v5;
char v6;
unsigned int sph;
unsigned int v8;
bool v9;
int v10;
int v11;
double v12;
int v13;
unsigned int v14;
unsigned int verbose;
double v16;
double v17;
double v18;
double v19;
double *v20;
int v21;
int v22;... | int GMT_mapproject (void *V_API, int mode, void *args) {
int x, y, ks, rmode, n_fields, two, way, error = 0, o_type[2] = {GMT_Z, GMT_Z};
int fmt[2], save[2] = {0,0}, unit = 0, proj_type = 0, lat_mode = 0;
bool line_start = true, do_geo_conv = false, double_whammy = false;
bool geodetic_calc = false, datum_conv_on... | GMT_mapproject | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_minmax(void *V_API, int mode, void *args) {
GMTAPI_CTRL *API;
API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API);
if (*(_DWORD *)((char *)strncmp + (unsigned long)API->GMT) > 4u) {
GMT_Report(API, 1u, "Shared GMT module not found: minmax\n");
return 38;
} else {
GMT_Report(API, 3u, "Warning: modul... | int GMT_minmax (void *V_API, int mode, void *args) {
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (gmt_M_compat_check (API->GMT, 4)) {
GMT_Report (API, GMT_MSG_COMPAT, "Warning: module minmax is deprecated; use gmtinfo.\n");
return (GMT_Call_Module (API, "gmtinfo", mode, args));
}
GMT_Report (API, G... | GMT_minmax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_nearneighbor(void *V_API, int mode, void *args) {
bool v4;
bool v5;
float v6;
float v7;
float v8;
float v9;
uint32_t n_rows;
double v11;
double v12;
double v13;
double v14;
unsigned int v15;
float v16;
float value;
float v18;
unsigned int verbose;
bool wrap_180;
bool replicat... | int GMT_nearneighbor (void *V_API, int mode, void *args) {
int col_0, row_0, row, col, row_end, col_end, ii, jj, error = 0;
unsigned int k, rowu, colu, d_row, sector, y_wrap, max_d_col, x_wrap, *d_col = NULL;
bool wrap_180, replicate_x, replicate_y;
size_t n_alloc = GMT_INITIAL_MEM_ROW_ALLOC;
uint64_t ij, ij0, kk... | GMT_nearneighbor | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_project(void *V_API, int mode, void *args) {
unsigned int v4;
unsigned int v5;
int v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
double n_used_low;
unsigned int v17;
GMT_enum_family v18;
GMT_enum_geometry v19;
bool ... | int GMT_project (void *V_API, int mode, void *args) {
uint64_t rec, n_total_read, col, n_total_used = 0;
unsigned int rmode;
bool skip, z_first = true;
int error = 0;
size_t n_alloc = GMT_CHUNK;
double xx, yy, cos_theta, sin_theta, sin_lat_to_pole = 1.0;
double theta = 0.0, d_along, sign = 1.0, s, c, *in = NUL... | GMT_project | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_ps2raster(void *V_API, int mode, void *args) {
GMTAPI_CTRL *API;
API = gmt_get_api_ptr((GMTAPI_CTRL *)V_API);
if (*(_DWORD *)((char *)strncmp + (unsigned long)API->GMT) > 5u) {
GMT_Report(API, 1u, "Shared GMT module not found: ps2raster\n");
return 38;
} else {
GMT_Report(API, 3u,
... | int GMT_ps2raster (void *V_API, int mode, void *args) {
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (gmt_M_compat_check (API->GMT, 5)) {
GMT_Report (API, GMT_MSG_COMPAT, "Warning: module ps2raster is deprecated; use psconvert.\n");
return (GMT_Call_Module (API, "psconvert", mode, args));
}
GMT_Repo... | GMT_ps2raster | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psbasemap(void *V_API, int mode, void *args) {
int v4;
double v5;
double v6;
double v7;
double v8;
_QWORD *v9;
uint64_t v10;
GMT_DATATABLE *v11;
char **header;
int error;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
uint64_t k;
uint64_t i;
PSBASEMAP_CTRL *Ctrl;
GMT_CTRL *GMT;
PSL_CT... | int GMT_psbasemap (void *V_API, int mode, void *args) {
int error;
struct PSBASEMAP_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct PSL_CTRL *PSL = NULL;
struct GMT_OPTION *options = NULL;
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (API == NULL) return (GMT_NOT_A_... | GMT_psbasemap | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psclip(void *V_API, int mode, void *args) {
int v4;
int v5;
bool v6;
bool duplicate;
unsigned int tbl;
unsigned int first;
unsigned int eo_flag;
int error;
double x0;
double y0;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMT_DATASET *D;
GMT_DATASEGMENT *S;
uint64_t row;
uint64_t seg... | int GMT_psclip (void *V_API, int mode, void *args) {
int error = 0;
double x0, y0;
struct PSCLIP_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
struct PSL_CTRL *PSL = NULL;
struct GMTAPI_CTRL *API = gmt_get_api_ptr (V_API);
if (API == NULL) return ... | GMT_psclip | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_pscoast(void *V_API, int mode, void *args) {
bool v4;
char v5;
bool v6;
_BOOL4 v7;
bool v8;
bool v9;
int v10;
const char *v11;
const char *v12;
const char *v13;
const char *v14;
const char *v15;
const char *v16;
double v17;
int v18;
int v19;
double v20;
long v21;
int v22;
... | int GMT_pscoast (void *V_API, int mode, void *args) {
int i, np, ind, bin = 0, base, anti_bin = -1, np_new, k, last_k, err, bin_trouble, error, n;
int level_to_be_painted[2] = {0, 0}, lp, direction, start_direction, stop_direction, last_pen_level;
bool shift = false, need_coast_base, recursive;
bool greenwich ... | GMT_pscoast | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_pscontour(void *V_API, int mode, void *args) {
bool v4;
bool v5;
int v6;
bool v7;
bool v8;
bool v9;
int v10;
uint64_t v11;
char v12;
char v13;
double label_angle;
char v15;
double d_NaN;
bool v17;
double v18;
unsigned int v19;
double v20;
char *file;
unsigned int v22;
uns... | int GMT_pscontour (void *V_API, int mode, void *args) {
int add, error = 0;
bool two_only = false, make_plot, skip = false, convert, get_contours, is_closed, skip_points, skip_triangles;
unsigned int pscontour_sum, m, n, nx, k2, k3, node1, node2, c, cont_counts[2] = {0, 0};
unsigned int label_mode = 0, last_entry... | GMT_pscontour | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psconvert(void *V_API, int mode, void *args) {
char *arg;
unsigned int v5;
unsigned int v6;
char **v7;
char *v8;
char *v9;
size_t v10;
size_t v11;
long v12;
char *file;
unsigned int dpi;
char *v15;
__pid_t v16;
__pid_t v17;
__pid_t v18;
char *v19;
long v20;
unsigned int v21;
... | int GMT_psconvert (void *V_API, int mode, void *args) {
unsigned int i, j, k, pix_w = 0, pix_h = 0, got_BBatend;
int sys_retval = 0, r, pos_file, pos_ext, error = 0;
size_t len, line_size = 0U;
uint64_t pos = 0;
bool got_BB, got_HRBB, file_has_HRBB, got_end, landscape, landscape_orig, set_background = false;
bool... | GMT_psconvert | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_pshistogram(void *V_API, int mode, void *args) {
uint64_t v4;
double v5;
double v6;
unsigned int verbose;
double d_NaN;
double v9;
double v10;
double v11;
unsigned int v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18;
unsigned int *v19;
double v20;
... | int GMT_pshistogram (void *V_API, int mode, void *args) {
bool automatic = false;
int error = 0;
uint64_t n, n_cols;
size_t n_alloc = GMT_CHUNK;
char format[GMT_BUFSIZ] = {""};
double *data = NULL, *weights = NULL, stats[6], area, tmp, x_min, x_max, *in = NULL;
struct PSHISTOGRAM_INFO F;
struct PSHISTOGRAM_... | GMT_pshistogram | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psimage(void *V_API, int mode, void *args) {
int v4;
GMT_IMAGE *v5;
unsigned char *v6;
size_t v7;
unsigned char *v8;
size_t v9;
unsigned char *v10;
size_t v11;
unsigned char *data;
size_t v13;
unsigned char *v14;
size_t v15;
unsigned char *v16;
size_t v17;
unsigned char *v18;
uin... | int GMT_psimage (void *V_API, int mode, void *args) {
int i, j, PS_interpolate = 1, PS_transparent = 1, known = 0, error = 0;
unsigned int row, col;
size_t n;
bool free_GMT = false, did_gray = false;
double x, y, wesn[4];
unsigned char *picture = NULL, *buffer = NULL;
char path[GMT_BUFSIZ] = {""}, *format[2] ... | GMT_psimage | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_pslegend(void *V_API, int mode, void *args) {
double v4;
int v5;
double v6;
double v7;
size_t v8;
double v9;
double v10;
int v11;
int v12;
GMT_REFPOINT *refpoint;
double offset;
double v15;
double v16;
long v17;
long v18;
long v19;
long v20;
long v21;
long v22;
long v23;
... | int GMT_pslegend (void *V_API, int mode, void *args) {
unsigned int tbl, pos;
int i, justify = 0, n = 0, n_columns = 1, n_col, col, error = 0, column_number = 0, id, n_scan, status = 0;
bool flush_paragraph = false, v_line_draw_now = false, gave_label, gave_mapscale_options, did_old = false;
bool drawn = false, b... | GMT_pslegend | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psmask(void *V_API, int mode, void *args) {
int v4;
char *file;
unsigned int v6;
unsigned int *pad;
long v8;
bool v9;
double v10;
double v11;
unsigned int v12;
unsigned int v13;
char *v14;
char *v15;
int v16;
float f_NaN;
float v18;
uint32_t n_rows;
double v20;
GMT_DATATABLE ... | int GMT_psmask (void *V_API, int mode, void *args) {
unsigned int section, k, row, col, n_edges, *d_col = NULL, d_row = 0;
unsigned int io_mode = GMT_WRITE_SET, max_d_col = 0, ii, jj, i_start, j_start, first = 1;
unsigned int fmt[3] = {0, 0, 0}, cont_counts[2] = {0, 0}, *edge = NULL;
int error = 0;
bool node_only,... | GMT_psmask | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psrose(void *V_API, int mode, void *args) {
double inc;
unsigned int v5;
unsigned int v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double *v14;
unsigned int verbose;
double v16;
double d_NaN;
double v18;
double v19;
int v20;
double v21;... | int GMT_psrose (void *V_API, int mode, void *args) {
bool do_fill = false, automatic = false, sector_plot = false, windrose = true;
unsigned int n_bins, n_modes = 0, form, n_in, half_only = 0, bin;
int error = 0, k, n_annot, n_alpha, sbin, significant;
uint64_t n = 0, i;
size_t n_alloc = GMT_CHUNK;
char text[G... | GMT_psrose | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psscale(void *V_API, int mode, void *args) {
double d_NaN;
double v5;
int v6;
int v7;
double v8;
int v9;
unsigned int pos;
unsigned int i;
int error;
GMT_DATASET *D;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
double start_val;
double stop_val;
double *z_width;
GMT_PALETTE *P;
PSL_... | int GMT_psscale (void *V_API, int mode, void *args) {
int error = 0;
unsigned int i;
char text[GMT_LEN256] = {""};
double dz, dim[2], start_val, stop_val, wesn[4], *z_width = NULL;
struct PSSCALE_CTRL *Ctrl = NULL;
struct GMT_PALETTE *P = NULL;
struct GMT_DATASET *D = NULL;
struct GMT_CTRL *GMT = NULL, *G... | GMT_psscale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_pssolar(void *V_API, int mode, void *args) {
int v4;
int v5;
int v6;
int v7;
bool must_free;
int j;
int ja;
int n;
int na;
int nb;
int n_pts;
int n_items;
int error;
unsigned int first;
int hour;
int houra;
int hourb;
int hourc;
int min;
GMT_CTRL *GMT_cpy;
GMT_OPTION *o... | int GMT_pssolar (void *V_API, int mode, void *args) {
int j, n, hour, min, error = 0;
int n_pts = 361;
char record[GMT_LEN256] = {""};
struct PSSOLAR_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
struct PSL_CTRL *PSL = NULL;
struct... | GMT_pssolar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psternary(void *V_API, int mode, void *args) {
int v4;
long v5;
char v6;
char *Bsetting;
bool clip_set;
char code;
unsigned int n_sides;
unsigned int error;
int errora;
unsigned int form;
unsigned int form_0;
double x;
double y;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
uint64_t tb... | int GMT_psternary (void *V_API, int mode, void *args) {
int error = 0;
unsigned int n_sides = 0, side[3];
uint64_t tbl, seg, row, col, k;
bool clip_set = false;
char cmd[GMT_LEN256] = {""}, code, *name = "ABC", cmode[3] = {""}, *g = NULL;
double x, y, rect[4] = {0.0, 0.0, 0.0, 0.0}, tri_x[4] = {0.0, 0.0, 0.0... | GMT_psternary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_pstext(void *V_API, int mode, void *args) {
unsigned int v4;
int v5;
int v6;
size_t v7;
size_t v8;
const char *v9;
int v10;
int v11;
char *v12;
unsigned int v13;
int v14;
char *v15;
int v16;
int v17;
size_t v18;
size_t v19;
int v20;
char *v21;
unsigned int v22;
int v23;
... | int GMT_pstext (void *V_API, int mode, void *args) {
int error = 0, k, fmode, nscan, *c_just = NULL;
bool master_record = false, skip_text_records = false, old_is_world, clip_set = false;
unsigned int length = 0, n_paragraphs = 0, n_add, m = 0, pos, text_col;
unsigned int n_read = 0, n_processed = 0, txt_alloc... | GMT_pstext | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_pswiggle(void *V_API, int mode, void *args) {
int v4;
int unit;
double v6;
double v7;
uint64_t v8;
_BOOL8 v9;
_BOOL8 v10;
unsigned int tbl;
int error;
int errora;
size_t n_alloc;
double x_2;
double y_2;
double *xx;
double *yy;
double *zz;
GMT_CTRL *GMT_cpy;
GMT_OPTION *option... | int GMT_pswiggle (void *V_API, int mode, void *args) {
bool negative;
int error = 0;
unsigned int tbl;
uint64_t row, seg, j;
size_t n_alloc = GMT_CHUNK;
double x_2, y_2, start_az, stop_az, fix_az, dz;
double *xx = NULL, *yy = NULL, *zz = NULL, *lon = NULL, *lat = NULL, *z = NULL;
struct GMT_DATASET *D = N... | GMT_pswiggle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psxy(void *V_API, int mode, void *args) {
bool v4;
bool v5;
bool v6;
double offset;
double v8;
double v9;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
long v17;
double v18;
double v19;
double v20;
double v21;
unsigned int v22;
unsigned int v23;
... | int GMT_psxy (void *V_API, int mode, void *args) {
bool polygon, penset_OK = true, not_line, old_is_world;
bool get_rgb, clip_set = false, fill_active, may_intrude_inside = false;
bool error_x = false, error_y = false, def_err_xy = false;
bool default_outline, outline_active, geovector = false;
unsigned int n_ne... | GMT_psxy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_psxyz(void *V_API, int mode, void *args) {
bool v4;
bool v5;
bool v6;
double offset;
double v8;
double v9;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
long v17;
double v18;
double v19;
double v20;
double v21;
unsigned int v22;
unsigned int v23;
... | int GMT_psxyz (void *V_API, int mode, void *args) {
bool polygon, penset_OK = true, not_line, old_is_world;
bool get_rgb, read_symbol, clip_set = false, fill_active;
bool default_outline, outline_active, save_u = false, geovector = false;
unsigned int k, j, geometry, tbl, pos2x, pos2y, set_type;
unsigned int n_c... | GMT_psxyz | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *GMT_runtime_bindir(char *result, const char *candidate) {
char *save_ptr;
char *dir;
ssize_t len;
char *path;
char *c;
char candidate_abs[4104];
unsigned long v9;
v9 = __readfsqword(0x28u);
save_ptr = 0;
*result = 0;
len = readlink("/proc/self/exe", result, 0x1000u);
if (len == -1) {
... | char *GMT_runtime_bindir (char *result, const char *candidate) {
char *c, *path, *dir, *save_ptr = NULL;
char candidate_abs[PATH_MAX+1];
ssize_t len;
*result = '\0';
if ( (len = readlink ("/proc/self/exe", result, PATH_MAX)) != -1 ) {
result[len] = '\0';
if ( (c = strrchr (result, '/')) && c != result )
... | GMT_runtime_bindir | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_sample1d(void *V_API, int mode, void *args) {
unsigned int v4;
GMT_DATATABLE **v5;
double *v6;
double *v7;
uint64_t v8;
uint64_t v9;
uint64_t v10;
double v11;
double stop;
double v13;
double v14;
char *v15;
double *v16;
double *v17;
uint64_t v18;
double *v19;
bool resample_path... | int GMT_sample1d (void *V_API, int mode, void *args) {
unsigned int geometry, int_mode;
bool resample_path = false;
int error = 0, result;
unsigned char *nan_flag = NULL;
size_t m_alloc;
uint64_t k, tbl, col, row, seg, m = 0, m_supplied = 0, dim[GMT_DIM_SIZE] = {0, 0, 0, 0};
double *t_supplied_out = NULL, *... | GMT_sample1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void GMT_set_proj_limits(GMT_CTRL *GMT, GMT_GRID_HEADER *r, GMT_GRID_HEADER *g,
bool projected) {
char v4;
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double ... | GMT_LOCAL void GMT_set_proj_limits (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *r, struct GMT_GRID_HEADER *g, bool projected) {
unsigned int i, k;
bool all_lats = false, all_lons = false;
double x, y;
r->n_columns = g->n_columns; r->n_rows = g->n_rows;
r->registration = g->registration;
r->n_bands = g->n... | GMT_set_proj_limits | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_spectrum1d(void *V_API, int mode, void *args) {
double *v4;
unsigned int k;
unsigned int n_outputs;
int error;
int errora;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
uint64_t tbl;
uint64_t seg;
uint64_t n_cols_tot;
GMT_DATASET *Dout;
GMT_DATATABLE *Tout;
double *y;
GMT_DATASET *Din;
G... | int GMT_spectrum1d (void *V_API, int mode, void *args) {
int error = 0;
unsigned int k, n_outputs;
uint64_t tbl, seg, n_cols_tot = 0;
double *y = NULL;
struct SPECTRUM1D_INFO C;
struct GMT_DATASET *Din = NULL, *Dout = NULL;
struct GMT_DATATABLE *Tout = NULL;
struct GMT_DATASEGMENT *S = NULL, *Sout = NULL;
... | GMT_spectrum1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_sph2grd(void *V_API, int mode, void *args) {
int v4;
int v5;
void **v6;
void **v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
unsigned int verbose;
double v15;
bool v16;
uint32_t v17;
double v18;
bool v19;
double v20;
unsigned int v21;
double v22;... | int GMT_sph2grd (void *V_API, int mode, void *args) {
bool ortho = false, duplicate_col;
int row, col, n_columns, error, L_sign = 1, L, L_min = 0, L_max = 0, M, M_max = 0, kk = 0;
unsigned int n_PLM, n_CS, n_CS_nx, next_10_percent = 10;
uint64_t tbl, seg, drow, node, k;
char text[GMT_LEN32] = {""};
double lon, la... | GMT_sph2grd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_sphdistance(void *V_API, int mode, void *args) {
unsigned int v4;
unsigned int v5;
size_t v6;
size_t v7;
size_t v8;
float v9;
size_t v10;
size_t v11;
size_t v12;
size_t v13;
size_t v14;
size_t v15;
uint32_t n_columns;
double v17;
bool v18;
double **v19;
double *v20;
double *v... | int GMT_sphdistance (void *V_API, int mode, void *args) {
bool first = false, periodic, duplicate_col;
int error = 0, s_row, south_row, north_row, w_col, e_col;
unsigned int row, col, p_col, west_col, east_col, nx1, n_in = 0;
uint64_t n_dup = 0, n_set = 0, side, ij, node, n_new, n = 0;
uint64_t vertex, node_stop,... | GMT_sphdistance | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_sphinterpolate(void *V_API, int mode, void *args) {
size_t v4;
size_t v5;
size_t v6;
size_t v7;
size_t v8;
size_t v9;
size_t v10;
size_t v11;
size_t v12;
float v13;
float v14;
unsigned int row;
unsigned int col;
int error;
int errora;
size_t n_alloc;
GMT_CTRL *GMT_cpy;
GMT_OP... | int GMT_sphinterpolate (void *V_API, int mode, void *args) {
unsigned int row, col;
int error = 0;
size_t n_alloc = 0;
uint64_t i, n = 0, ij, ij_f;
double w_min, w_max, sf = 1.0, X[3];
double *xx = NULL, *yy = NULL, *zz = NULL, *ww = NULL, *surfd = NULL, *in = NULL;
struct GMT_GRID *Grid = NULL;
struct SPHI... | GMT_sphinterpolate | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_sphtriangulate(void *V_API, int mode, void *args) {
unsigned int v4;
bool v6;
size_t v7;
size_t v8;
size_t v9;
size_t v10;
size_t v11;
size_t v12;
size_t v13;
size_t v14;
size_t v15;
GMT_DATATABLE *v16;
const char *v17;
char *v18;
char **v19;
GMT_DATATABLE *v20;
char **v21;
b... | int GMT_sphtriangulate (void *V_API, int mode, void *args) {
char *tmode[2] = {"Delaunay", "Voronoi"}, header[GMT_BUFSIZ];
int error = 0;
bool first = false, steradians = false, do_authalic = false;
uint64_t n = 0, n_dup = 0;
size_t n_alloc;
double first_x = 0.0, first_y = 0.0, X[3], *in = NULL;
double *xx = N... | GMT_sphtriangulate | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_splitxyz(void *V_API, int mode, void *args) {
unsigned int v4;
double *v5;
double *v6;
double **v7;
double *v8;
double *v9;
double **v10;
double v11;
double v12;
double v13;
double v14;
double v15;
uint64_t n_records;
double v17;
uint64_t n_segments;
uint64_t v19;
double **v20;... | int GMT_splitxyz (void *V_API, int mode, void *args) {
unsigned int i, j, d_col, h_col, z_cols, xy_cols[2] = {0, 1}, io_mode = 0;
unsigned int output_choice[SPLITXYZ_N_OUTPUT_CHOICES], n_outputs = 0, n_in;
int error = 0;
bool ok, first = true, no_z_column;
uint64_t dim[GMT_DIM_SIZE] = {1, 0, 0, 0};
size_t n_all... | GMT_splitxyz | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_surface(void *V_API, int mode, void *args) {
bool v4;
unsigned int verbose;
unsigned int v6;
unsigned int v7;
int error;
int errora;
int errorb;
int key;
GMT_CTRL *GMT_cpy;
GMT_OPTION *options;
GMT_DATATABLE *xyzline;
GMT_DATASET *Lin;
SURFACE_CTRL *Ctrl;
GMT_CTRL *GMT;
GMTAPI_CTRL... | int GMT_surface (void *V_API, int mode, void *args) {
int error = 0, key, one = 1;
double wesn[4];
struct GMT_DATATABLE *xyzline = NULL;
struct GMT_DATASET *Lin = NULL;
struct SURFACE_INFO C;
struct SURFACE_CTRL *Ctrl = NULL;
struct GMT_CTRL *GMT = NULL, *GMT_cpy = NULL;
struct GMT_OPTION *options = NULL;
st... | GMT_surface | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_trend1d(void *V_API, int mode, void *args) {
unsigned int verbose;
unsigned int v5;
unsigned int n_outputs;
bool significanta;
char significant;
bool significantb;
bool significantc;
unsigned int rank;
unsigned int i;
unsigned int n_model;
int error;
unsigned int np;
uint64_t n_data;
... | int GMT_trend1d (void *V_API, int mode, void *args) {
unsigned int i, n_model, rank, np;
int error = 0;
bool significant;
uint64_t n_data;
double *gtg = NULL, *v = NULL, *gtd = NULL, *lambda = NULL, *workb = NULL;
double *workz = NULL, *c_model = NULL, *o_model = NULL, *w_model = NULL, *work = NULL;
double xmi... | GMT_trend1d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_trend2d(void *V_API, int mode, void *args) {
unsigned int verbose;
bool significanta;
char significant;
bool significantb;
bool significantc;
unsigned int rank;
unsigned int i;
unsigned int n_model;
int error;
unsigned int np;
uint64_t n_data;
double *gtg;
double *v;
double *gtd;
d... | int GMT_trend2d (void *V_API, int mode, void *args) {
unsigned int i, n_model, rank, np;
int error = 0;
bool significant;
uint64_t n_data;
double *gtg = NULL, *v = NULL, *gtd = NULL, *lambda = NULL, *workb = NULL;
double *workz = NULL, *c_model = NULL, *o_model = NULL, *w_model = NULL, *work = NULL;
double xm... | GMT_trend2d | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_triangulate(void *V_API, int mode, void *args) {
bool v4;
int v5;
unsigned int v6;
int v7;
double *v8;
double v9;
double v10;
char *v11;
uint32_t n_rows;
uint32_t v13;
double v14;
bool v15;
uint32_t v16;
uint32_t v17;
float v18;
float value;
uint64_t v20;
uint64_t v21;
uint... | int GMT_triangulate (void *V_API, int mode, void *args) {
int *link = NULL;
uint64_t ij, ij1, ij2, ij3, np, i, j, k, n_edge, p, node = 0, seg, n = 0;
unsigned int n_input, n_output, side;
int row, col, col_min, col_max, row_min, row_max, error = 0;
bool triplets[2] = {false, false}, map_them = false, do_output ... | GMT_triangulate | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int GMT_xyz2grd(void *V_API, int mode, void *args) {
uint64_t v4;
char *file;
int v6;
float *v7;
float f_NaN;
float v9;
float v10;
GMT_GRID_HEADER *header;
char v12;
char *v13;
int v14;
unsigned int io_type;
size_t v16;
float v17;
uint32_t n_rows;
int v19;
float v20;
float v21;
flo... | int GMT_xyz2grd (void *V_API, int mode, void *args) {
bool previous_bin_i = false, previous_bin_o = false;
int error = 0, scol, srow;
unsigned int zcol, row, col, i, *flag = NULL, n_min = 1;
uint64_t n_empty = 0, n_confused = 0;
uint64_t ij, ij_gmt, n_read, n_filled = 0, n_used = 0, n_req;
char c, Amode;
doubl... | GMT_xyz2grd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double GaussianWeight(double r, double *par) { return exp(r * r * par[4]); } | GMT_LOCAL double GaussianWeight (double r, double par[]) {
return (exp (r * r * par[GRDFILTER_INV_R_SCALE]));
} | GaussianWeight | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void KML_plot_object(GMTAPI_CTRL *API, double *x, double *y, uint64_t np,
int type, int process_id, int alt_mode, int N,
double z_level) {
int v10;
int v11;
int v12;
uint64_t k;
double out[4];
int Nd;
int Na;
int Nb;
int Nc;
int Ne;
int Nf;
*(_QWORD *)&... | void KML_plot_object (struct GMTAPI_CTRL *API, double *x, double *y, uint64_t np, int type, int process_id, int alt_mode, int N, double z_level) {
static char *name[2] = {"Wiggle Anomaly", "Positive Anomaly"};
static char *feature[5] = {"Point", "Point", "Point", "LineString", "Polygon"};
double out[3];
uint64_t... | KML_plot_object | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double L1_misfit(GMT_CTRL *GMT, double *ey, double *W, uint64_t n,
unsigned int regression, double slope) {
uint64_t v6;
double v7;
uint64_t k;
double E;
double f;
E = 0.0;
f = get_scale_factor(regression, slope);
for (k = 0; k < n; ++k)
E = fabs(sqrt(W[k]) * ey[k]) + E;
v6 = n -... | GMT_LOCAL double L1_misfit (struct GMT_CTRL *GMT, double *ey, double *W, uint64_t n, unsigned int regression, double slope) {
uint64_t k;
double f, E = 0.0;
gmt_M_unused(GMT);
f = get_scale_factor (regression, slope);
for (k = 0; k < n; k++) E += fabs (sqrt (W[k]) * ey[k]);
return (f * E / (n-2));
} | L1_misfit | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double L1_scale(GMT_CTRL *GMT, double *ey, double *W, uint64_t n, double *par) {
float v5;
float v6;
uint64_t k;
GMT_OBSERVATION *ee;
double MAD;
ee = (GMT_OBSERVATION *)gmt_memory_func(GMT, 0, n, 8u, 0, "L1_scale");
for (k = 0; k < n; ++k) {
v5 = W[k];
ee[k].weight = v5;
v6 = fabs(ey[k]);
... | GMT_LOCAL double L1_scale (struct GMT_CTRL *GMT, double *ey, double *W, uint64_t n, double *par) {
uint64_t k;
double MAD;
struct GMT_OBSERVATION *ee = NULL;
gmt_M_unused(GMT); gmt_M_unused(par);
ee = gmt_M_memory (GMT, NULL, n, struct GMT_OBSERVATION);
for (k = 0; k < n; k++) {
ee[k].weight = (float)W[k];
... | L1_scale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double L2_misfit(GMT_CTRL *GMT, double *ey, double *W, uint64_t n,
unsigned int regression, double slope) {
uint64_t v6;
double v7;
uint64_t k;
double E;
double f;
E = 0.0;
f = get_scale_factor(regression, slope);
for (k = 0; k < n; ++k)
E = ey[k] * (W[k] * ey[k]) + E;
v6 = n - 2... | GMT_LOCAL double L2_misfit (struct GMT_CTRL *GMT, double *ey, double *W, uint64_t n, unsigned int regression, double slope) {
uint64_t k;
double f, E = 0.0;
gmt_M_unused(GMT);
f = get_scale_factor (regression, slope);
for (k = 0; k < n; k++) E += W[k] * ey[k] * ey[k];
return (f * f * E / (n-2));
} | L2_misfit | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double L2_scale(GMT_CTRL *GMT, double *ey, double *W, uint64_t n, double *par) {
uint64_t v5;
double v6;
double W_sum;
W_sum = gmt_sum(W, n);
v5 = n - 2;
if ((long)(n - 2) < 0)
v6 = (double)(int)(v5 & 1 | (v5 >> 1)) + (double)(int)(v5 & 1 | (v5 >> 1));
else
v6 = (double)(int)v5;
return sqrt(v6 ... | GMT_LOCAL double L2_scale (struct GMT_CTRL *GMT, double *ey, double *W, uint64_t n, double *par) {
double W_sum, scale;
gmt_M_unused(GMT); gmt_M_unused(ey);
W_sum = gmt_sum (W, n);
scale = sqrt ((n-2)*par[GMTREGRESS_MISFT] / W_sum);
return (scale);
} | L2_scale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double LMS_misfit(GMT_CTRL *GMT, double *ey, double *W, uint64_t n,
unsigned int regression, double slope) {
double v6;
uint64_t k;
double *ee;
double f;
ee = (double *)gmt_memory_func(GMT, 0, n, 8u, 0, "LMS_misfit");
f = get_scale_factor(regression, slope);
for (k = 0; k < n; ++k)
... | GMT_LOCAL double LMS_misfit (struct GMT_CTRL *GMT, double *ey, double *W, uint64_t n, unsigned int regression, double slope) {
uint64_t k;
double f, E, *ee = gmt_M_memory (GMT, NULL, n, double);
f = get_scale_factor (regression, slope);
for (k = 0; k < n; k++) ee[k] = W[k] * ey[k] * ey[k];
gmt_sort_array (GMT, ... | LMS_misfit | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double LMS_scale(GMT_CTRL *GMT, double *ey, double *W, uint64_t n,
double *par) {
double v5;
if ((n & 0x8000000000000000LL) != 0LL)
v5 = (double)(int)(n & 1 | (n >> 1)) + (double)(int)(n & 1 | (n >> 1));
else
v5 = (double)(int)n;
return sqrt(par[1]) * ((5.0 / (v5 - 2.0) + 1.0) * 1.4826... | GMT_LOCAL double LMS_scale (struct GMT_CTRL *GMT, double *ey, double *W, uint64_t n, double *par) {
double scale;
gmt_M_unused(GMT); gmt_M_unused(ey); gmt_M_unused(W);
scale = MAD_NORMALIZE * (1.0 + 5.0 / (n - 2.0)) * sqrt (par[GMTREGRESS_MISFT]);
return (scale);
} | LMS_scale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double LSRMA_regress1D(GMT_CTRL *GMT, double *x, double *y, double **w,
uint64_t n, double *par) {
double v7;
uint64_t k;
double *U;
double *V;
double *W;
double sx;
double scale;
U = (double *)gmt_memory_func(GMT, 0, n, 8u, 0, "LSRMA_regress1D");
V = (double *)gmt_memory_func(... | GMT_LOCAL double LSRMA_regress1D (struct GMT_CTRL *GMT, double *x, double *y, double *w[], uint64_t n, double *par) {
uint64_t k;
double sx, sy, scale;
double *U = gmt_M_memory (GMT, NULL, n, double), *V = gmt_M_memory (GMT, NULL, n, double), *W = gmt_M_memory (GMT, NULL, n, double);
gmt_M_memset (par, GMTREGRESS... | LSRMA_regress1D | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double LSxy_regress1D(GMT_CTRL *GMT, double *x, double *y, double **w,
uint64_t n, double *par) {
if (w && *w && w[1])
return LSxy_regress1D_york(GMT, x, y, w, n, par);
else
return LSxy_regress1D_basic(GMT, x, y, n, par);
} | GMT_LOCAL double LSxy_regress1D (struct GMT_CTRL *GMT, double *x, double *y, double *w[], uint64_t n, double *par) {
double scale;
if (w && w[GMT_X] && w[GMT_Y])
scale = LSxy_regress1D_york (GMT, x, y, w, n, par);
else
scale = LSxy_regress1D_basic (GMT, x, y, n, par);
return (scale);
} | LSxy_regress1D | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double LSxy_regress1D_basic(GMT_CTRL *GMT, double *x, double *y, uint64_t n,
double *par) {
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v12;
unsigned int p;
unsigned int pa;
double sig_x;
double sig_y;
uint64_t k;
double *u;
double *v... | GMT_LOCAL double LSxy_regress1D_basic (struct GMT_CTRL *GMT, double *x, double *y, uint64_t n, double *par) {
uint64_t k;
unsigned int p;
double *u = gmt_M_memory (GMT, NULL, n, double), *v = gmt_M_memory (GMT, NULL, n, double);
double *W = gmt_M_memory (GMT, NULL, n, double), *Q = gmt_M_memory (GMT, NULL, n, dou... | LSxy_regress1D_basic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double LSxy_regress1D_york(GMT_CTRL *GMT, double *X, double *Y, double **w,
uint64_t n, double *par) {
double v6;
double v7;
unsigned int n_iter;
uint64_t i;
double b;
double *W;
double *U;
double *V;
double *x;
double *u;
double *alpha;
double *beta;
double b_old;
... | GMT_LOCAL double LSxy_regress1D_york (struct GMT_CTRL *GMT, double *X, double *Y, double *w[], uint64_t n, double *par) {
uint64_t i;
unsigned int n_iter = 0;
double *W = NULL, *U = NULL, *V = NULL, *x = NULL, *u = NULL, *alpha = NULL, *beta = NULL;
double b, b_old, a, W_sum, x_mean, sigma_a, sigma_b, misfit, sca... | LSxy_regress1D_york | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double LSy_regress1D(GMT_CTRL *GMT, double *x, double *y, double **w,
uint64_t n, double *par) {
double v7;
uint64_t k;
double S_xx;
double S_xy;
double *Q;
double *W;
double *U;
double *V;
double S;
double *P;
double D;
double scale;
Q = (double *)gmt_memory_func(GMT, 0,... | GMT_LOCAL double LSy_regress1D (struct GMT_CTRL *GMT, double *x, double *y, double *w[], uint64_t n, double *par) {
uint64_t k;
double *Q = gmt_M_memory (GMT, NULL, n, double), *W = gmt_M_memory (GMT, NULL, n, double);
double *U = gmt_M_memory (GMT, NULL, n, double), *V = gmt_M_memory (GMT, NULL, n, double);
doub... | LSy_regress1D | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void NE_triangle(GMT_GRID *G, uint64_t ij, bool triangle, double *dv,
double *da) {
double v5;
double frac;
double x0;
double x0_1;
double y1_1;
frac = 0.0;
x0 = (float)(G->data[ij - G->header->mx] /
(float)(G->data[ij - G->header->mx] -
G->data[ij -... | GMT_LOCAL void NE_triangle (struct GMT_GRID *G, uint64_t ij, bool triangle, double *dv, double *da) {
double x0, y1, a, x0_1, y1_1, frac = 0.0;
x0 = G->data[ij-G->header->mx] / (G->data[ij-G->header->mx] - G->data[ij+1-G->header->mx]);
y1 = G->data[ij+1] / (G->data[ij+1] - G->data[ij+1-G->header->mx]);
x0_1 = ... | NE_triangle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
NN_DIST *NNA_init_dist(GMT_CTRL *GMT, GMT_DATASET *D, uint64_t *n_points) {
uint64_t n_columns;
uint64_t np;
uint64_t k;
uint64_t tbl;
uint64_t seg;
uint64_t row;
uint64_t col;
GMT_DATASEGMENT *S;
NN_DIST *P;
uint64_t n_cols;
double distance;
np = 0;
P = (NN_DIST *)gmt_memory_func(GMT, 0, D->... | GMT_LOCAL struct NN_DIST *NNA_init_dist (struct GMT_CTRL *GMT, struct GMT_DATASET *D, uint64_t *n_points) {
uint64_t np = 0, k, tbl, seg, row, col, n_cols;
double distance;
struct GMT_DATASEGMENT *S = NULL;
struct NN_DIST *P = gmt_M_memory (GMT, NULL, D->n_records, struct NN_DIST);
n_cols = MIN (D->n_columns, ... | NNA_init_dist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
NN_DIST *NNA_update_dist(GMT_CTRL *GMT, NN_DIST *P, uint64_t *n_points) {
uint64_t k;
uint64_t k2_0;
size_t np;
double distance;
np = *n_points;
for (k = 0; k < np - 1; ++k) {
P[k].distance = 1.797693134862316e308;
for (k2_0 = k + 1; k2_0 < np; ++k2_0) {
distance = gmt_distance(GMT, P[k].data... | GMT_LOCAL struct NN_DIST *NNA_update_dist (struct GMT_CTRL *GMT, struct NN_DIST *P, uint64_t *n_points) {
uint64_t k, k2, np;
double distance;
np = *n_points;
for (k = 0; k < (np-1); k++) {
if (gmt_M_is_dnan (P[k].distance)) continue;
P[k].distance = DBL_MAX;
for (k2 = k + 1; k2 < np; k2++) {
if (gmt_... | NNA_update_dist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
NN_INFO *NNA_update_info(GMT_CTRL *GMT, NN_INFO *I, NN_DIST *NN_dist,
uint64_t n_points) {
NN_INFO *v4;
uint64_t k;
NN_INFO *info;
if (I)
v4 = I;
else
v4 = (NN_INFO *)gmt_memory_func(GMT, 0, n_points, 0x10u, 0,
"NNA_update_info");
info = ... | GMT_LOCAL struct NN_INFO *NNA_update_info (struct GMT_CTRL *GMT, struct NN_INFO * I, struct NN_DIST *NN_dist, uint64_t n_points) {
uint64_t k;
struct NN_INFO *info = (I) ? I : gmt_M_memory (GMT, NULL, n_points, struct NN_INFO);
for (k = 0; k < n_points; k++) {
info[k].sort_rec = k;
info[k].orig_rec = int64_abs... | NNA_update_info | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void NS_trapezoid(GMT_GRID *G, uint64_t ij, bool right, double *dv,
double *da) {
double x0;
double x1;
x0 = (float)(G->data[ij] / (float)(G->data[ij] - G->data[ij + 1]));
x1 = (float)(G->data[ij - G->header->mx] /
(float)(G->data[ij - G->header->mx] -
G-... | GMT_LOCAL void NS_trapezoid (struct GMT_GRID *G, uint64_t ij, bool right, double *dv, double *da) {
double x0, x1;
x0 = G->data[ij] / (G->data[ij] - G->data[ij+1]);
x1 = G->data[ij-G->header->mx] / (G->data[ij-G->header->mx] - G->data[ij+1-G->header->mx]);
if (right) {
*dv += vol_prism_frac_y (G, ij, 0.0, 1... | NS_trapezoid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void NW_triangle(GMT_GRID *G, uint64_t ij, bool triangle, double *dv,
double *da) {
double v5;
double v6;
double x1;
double y0;
double y0_1;
x1 = (float)(G->data[ij - G->header->mx] /
(float)(G->data[ij - G->header->mx] -
G->data[ij - G->header->mx + 1... | GMT_LOCAL void NW_triangle (struct GMT_GRID *G, uint64_t ij, bool triangle, double *dv, double *da) {
double x1, y0, y0_1, frac;
x1 = G->data[ij-G->header->mx] / (G->data[ij-G->header->mx] - G->data[ij+1-G->header->mx]);
y0 = G->data[ij] / (G->data[ij] - G->data[ij-G->header->mx]);
y0_1 = 1.0 - y0;
frac = (x1... | NW_triangle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void SE_triangle(GMT_GRID *G, uint64_t ij, bool triangle, double *dv,
double *da) {
double v5;
double frac;
double x0;
double y1;
double x0_1;
frac = 0.0;
x0 = (float)(G->data[ij] / (float)(G->data[ij] - G->data[ij + 1]));
y1 = (float)(G->data[ij + 1] /
(float)(G->data[i... | GMT_LOCAL void SE_triangle (struct GMT_GRID *G, uint64_t ij, bool triangle, double *dv, double *da) {
double x0, y1, c, x0_1, frac = 0.0;
x0 = G->data[ij] / (G->data[ij] - G->data[ij+1]);
y1 = G->data[ij+1] / (G->data[ij+1] - G->data[ij+1-G->header->mx]);
x0_1 = 1.0 - x0;
if (x0_1 != 0.0) {
c = y1 / x0_1;
... | SE_triangle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void SW_triangle(GMT_GRID *G, uint64_t ij, bool triangle, double *dv,
double *da) {
double v5;
double v6;
double x1;
double y0;
x1 = (float)(G->data[ij] / (float)(G->data[ij] - G->data[ij + 1]));
y0 =
(float)(G->data[ij] / (float)(G->data[ij] - G->data[ij - G->header->mx]));
if (x1... | GMT_LOCAL void SW_triangle (struct GMT_GRID *G, uint64_t ij, bool triangle, double *dv, double *da) {
double x1, y0, frac;
x1 = G->data[ij] / (G->data[ij] - G->data[ij+1]);
y0 = G->data[ij] / (G->data[ij] - G->data[ij-G->header->mx]);
frac = (x1 == 0.0) ? 0.0 : vol_prism_frac_x (G, ij, 0.0, x1, 0.0, 0.0, -y0 /... | SW_triangle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double SphericalRadius(GMT_CTRL *GMT, double x0, double y0, double x1,
double y1, double *par) {
double y1a;
double x1a;
x1a = x1;
y1a = y1;
if (fabs(y1) > 90.0) {
y1a = copysign(180.0 - fabs(y1), y1);
x1a = x1 + 180.0;
}
return j_gmt_great_circle_dist_meter(GMT, x0, y0, x1... | GMT_LOCAL double SphericalRadius (struct GMT_CTRL *GMT, double x0, double y0, double x1, double y1, double par[]) {
gmt_M_unused(par);
if (fabs (y1) > 90.0) {
y1 = copysign (180.0 - fabs (y1), y1);
x1 += 180.0;
}
return (0.001 * gmt_great_circle_dist_meter (GMT, x0, y0, x1, y1));
} | SphericalRadius | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double UnitWeight(double r, double *par) { return 1.0; } | GMT_LOCAL double UnitWeight (double r, double par[]) {
gmt_M_unused(r); gmt_M_unused(par);
return (1.0);
} | UnitWeight | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void abc_to_xy(double a, double b, double c, double *x, double *y) {
double s;
s = a + b + c;
*x = 0.5 * (b + b + c) / s;
*y = 0.8660254037844386 * c / s;
} | GMT_LOCAL void abc_to_xy (double a, double b, double c, double *x, double *y) {
double s = (a + b + c);
*x = 0.5 * (2.0 * b + c) / s;
*y = 0.5 * SQRT3 * c / s;
} | abc_to_xy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool accept_the_jump(GMT_CTRL *GMT, double lon1, double lon0, double *xx,
bool cartesian) {
double dlon;
if (!cartesian)
return 1;
if (cartesian)
return 1;
dlon = fmod(lon0 - lon1, 360.0);
if (fabs(dlon) > 180.0)
dlon = copysign(360.0 - fabs(dlon), -dlon);
return fabs(dlon)... | GMT_LOCAL bool accept_the_jump (struct GMT_CTRL *GMT, double lon1, double lon0, double xx[], bool cartesian) {
double dlon;
gmt_M_unused(GMT);
gmt_M_unused(xx);
if (!cartesian) return true;
if (cartesian) return true;
gmt_M_set_delta_lon (lon1, lon0, dlon);
if (fabs (dlon) > 1.0 && fabs (dlon) < 90.0) r... | accept_the_jump | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
NEARNEIGHBOR_NODE *add_new_node(GMT_CTRL *GMT, unsigned int n) {
unsigned int na;
NEARNEIGHBOR_NODE *new_node;
na = n;
new_node = (NEARNEIGHBOR_NODE *)gmt_memory_func(GMT, 0, 1u, 0x10u, 0,
"add_new_node");
new_node->distance =
(float *)gmt_memory_func(G... | GMT_LOCAL struct NEARNEIGHBOR_NODE *add_new_node (struct GMT_CTRL *GMT, unsigned int n) {
struct NEARNEIGHBOR_NODE *new_node = gmt_M_memory (GMT, NULL, 1U, struct NEARNEIGHBOR_NODE);
new_node->distance = gmt_M_memory (GMT, NULL, n, float);
new_node->datum = gmt_M_memory (GMT, NULL, n, int64_t);
while (n > 0) new_... | add_new_node | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void add_node(double *x, double *y, double *z, double *v, uint64_t *k,
unsigned int node, double *X_vert, double *Y_vert, float *topo,
float *zgrd, uint64_t ij) {
x[*k] = X_vert[node];
y[*k] = Y_vert[node];
z[*k] = topo[ij];
v[(*k)++] = zgrd[node];
} | GMT_LOCAL void add_node (double x[], double y[], double z[], double v[], uint64_t *k, unsigned int node, double X_vert[], double Y_vert[], float topo[], float zgrd[], uint64_t ij) {
x[*k] = X_vert[node];
y[*k] = Y_vert[node];
z[*k] = topo[ij];
v[*k] = zgrd[node];
(*k)++;
} | add_node | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void add_operation(GMT_CTRL *GMT, GRDFFT_CTRL *Ctrl, int operation,
unsigned int n_par, double *par) {
Ctrl->operation = (int *)gmt_memory_func(
GMT, Ctrl->operation, ++Ctrl->n_op_count, 4u, 0, "add_operation");
Ctrl->operation[Ctrl->n_op_count - 1] = operation;
if (n_par) {
Ctrl->par... | GMT_LOCAL void add_operation (struct GMT_CTRL *GMT, struct GRDFFT_CTRL *Ctrl, int operation, unsigned int n_par, double *par) {
Ctrl->n_op_count++;
Ctrl->operation = gmt_M_memory (GMT, Ctrl->operation, Ctrl->n_op_count, int);
Ctrl->operation[Ctrl->n_op_count-1] = operation;
if (n_par) {
Ctrl->par = gmt_M_memory (... | add_operation | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool add_this_polygon_to_path(GMT_CTRL *GMT, int k0_0, GMT_GSHHS_POL *p,
int level, int k) {
int j;
if (level != p[k].level)
return 0;
if (k0_0 == -1)
return 1;
if (gmt_non_zero_winding(GMT, *p[k].lon, *p[k].lat, p[k0_0].lon, p[k0_0].lat,
p[k0_0]... | GMT_LOCAL bool add_this_polygon_to_path (struct GMT_CTRL *GMT, int k0, struct GMT_GSHHS_POL *p, int level, int k) {
int j;
if (p[k].level != level) return (false);
if (k0 == -1) return (true);
if (gmt_non_zero_winding (GMT, p[k].lon[0], p[k].lat[0], p[k0].lon, p[k0].lat, p[k0].n)) return (true);
j = ... | add_this_polygon_to_path | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void adjust_R(GMTAPI_CTRL *API, GRDSAMPLE_CTRL *Ctrl, GMT_GRID *Gin,
double *wesn) {
double v4;
double v5;
double v6;
double v7;
int shift;
int n;
int na;
int nb;
int nc;
if (Gin->header->wesn[2] - Gin->header->inc[1] > wesn[2] ||
wesn[3] > Gin->header->inc[1] + Gin->header->wes... | GMT_LOCAL void adjust_R (struct GMTAPI_CTRL *API, struct GRDSAMPLE_CTRL *Ctrl, struct GMT_GRID *Gin, double *wesn) {
int n;
double x, y, d;
if (wesn[YLO] < (Gin->header->wesn[YLO] - Gin->header->inc[GMT_Y]) || wesn[YHI] > (Gin->header->wesn[YHI] + Gin->header->inc[GMT_Y])) {
GMT_Report (API, GMT_MSG_NORMAL... | adjust_R | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void adjust_hill_label(GMT_CTRL *GMT, GMT_CONTOUR *G, GMT_GRID *Grid) {
uint32_t n_rows;
double v4;
double v5;
double v6;
long v7;
__int128 cosx;
GMT_GRID *Grida;
GMT_CONTOUR *Ga;
GMT_CTRL *GMTa;
int row;
int col;
__int128 n_columns;
double x_on;
double y_on;
double x_node_p;
double y_no... | GMT_LOCAL void adjust_hill_label (struct GMT_CTRL *GMT, struct GMT_CONTOUR *G, struct GMT_GRID *Grid) {
int col, row;
uint64_t k, seg, ij;
double n_columns, n_rows, x_on, y_on, x_node, y_node, x_node_p, y_node_p, dx, dy, dz, dot, angle;
struct GMT_CONTOUR_LINE *C = NULL;
for (seg = 0; seg < G->n_segments; seg++... | adjust_hill_label | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void alloc_arrays(GMT_CTRL *GMT, SPECTRUM1D_INFO *C) {
C->n_spec = C->window / 2;
C->window_2 = 2 * C->window;
C->spec =
(SPEC *)gmt_memory_func(GMT, 0, C->n_spec, 0x30u, 0, "alloc_arrays");
C->datac =
(float *)gmt_memory_func(GMT, 0, C->window_2, 4u, 0, "alloc_arrays");
} | GMT_LOCAL void alloc_arrays (struct GMT_CTRL *GMT, struct SPECTRUM1D_INFO *C) {
C->n_spec = C->window/2;
C->window_2 = 2 * C->window;
C->spec = gmt_M_memory (GMT, NULL, C->n_spec, struct SPEC);
C->datac = gmt_M_memory (GMT, NULL, C->window_2, float);
} | alloc_arrays | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void alloc_space(GMT_CTRL *GMT, size_t *n_alloc, double **xx, double **yy,
double **zz) {
*n_alloc *= 2LL;
*xx = (double *)gmt_memory_func(GMT, *xx, *n_alloc, 8u, 0, "alloc_space");
*yy = (double *)gmt_memory_func(GMT, *yy, *n_alloc, 8u, 0, "alloc_space");
*zz = (double *)gmt_memory_func(GMT, *... | GMT_LOCAL void alloc_space (struct GMT_CTRL *GMT, size_t *n_alloc, double **xx, double **yy, double **zz) {
(*n_alloc) <<= 1;
*xx = gmt_M_memory (GMT, *xx, *n_alloc, double);
*yy = gmt_M_memory (GMT, *yy, *n_alloc, double);
*zz = gmt_M_memory (GMT, *zz, *n_alloc, double);
} | alloc_space | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_GRID *alloc_stack_grid(GMT_CTRL *GMT, GMT_GRID *Template) {
return (GMT_GRID *)GMT_Create_Data(
GMT->parent, 1u, 8u, 0, 0, Template->header->wesn, Template->header->inc,
Template->header->registration, -1, 0);
} | GMT_LOCAL struct GMT_GRID *alloc_stack_grid (struct GMT_CTRL *GMT, struct GMT_GRID *Template) {
struct GMT_GRID *New = GMT_Create_Data (GMT->parent, GMT_IS_GRID, GMT_IS_SURFACE, GMT_CONTAINER_AND_DATA, NULL, Template->header->wesn, Template->header->inc, \
Template->header->registration, GMT_NOTSET, NULL);
return... | alloc_stack_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void allocate_data_space(GMT_CTRL *GMT, FILTER1D_INFO *F) {
void **v2;
uint64_t i;
for (i = 0; i < F->n_cols; ++i) {
v2 = (void **)&F->data[i];
*v2 =
gmt_memory_func(GMT, *v2, F->n_row_alloc, 8u, 0, "allocate_data_space");
}
} | GMT_LOCAL void allocate_data_space (struct GMT_CTRL *GMT, struct FILTER1D_INFO *F) {
uint64_t i;
for (i = 0; i < F->n_cols; ++i) F->data[i] = gmt_M_memory (GMT, F->data[i], F->n_row_alloc, double);
} | allocate_data_space | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void allocate_more_work_space(GMT_CTRL *GMT, FILTER1D_INFO *F) {
void **v2;
uint64_t i;
for (i = 0; i < F->n_cols; ++i) {
v2 = (void **)&F->work[i];
*v2 = gmt_memory_func(GMT, *v2, F->n_work_alloc, 8u, 0,
"allocate_more_work_space");
}
} | GMT_LOCAL void allocate_more_work_space (struct GMT_CTRL *GMT, struct FILTER1D_INFO *F) {
uint64_t i;
for (i = 0; i < F->n_cols; ++i) F->work[i] = gmt_M_memory (GMT, F->work[i], F->n_work_alloc, double);
} | allocate_more_work_space | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int allocate_space(GMT_CTRL *GMT, FILTER1D_INFO *F) {
double **v2;
uint64_t i;
F->n_this_col =
(uint64_t *)gmt_memory_func(GMT, 0, F->n_cols, 8u, 0, "allocate_space");
F->data =
(double **)gmt_memory_func(GMT, 0, F->n_cols, 8u, 1, "allocate_space");
if (F->check_asym)
F->n_left =
(uin... | GMT_LOCAL int allocate_space (struct GMT_CTRL *GMT, struct FILTER1D_INFO *F) {
F->n_this_col = gmt_M_memory (GMT, NULL, F->n_cols, uint64_t);
F->data = gmt_M_memory_aligned (GMT, NULL, F->n_cols, double *);
if (F->check_asym) F->n_left = gmt_M_memory (GMT, NULL, F->n_cols, uint64_t);
if (F->check_asym) F->n_right ... | allocate_space | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.