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 |
|---|---|---|---|---|---|---|---|
void gmt_set_tbl_minmax(GMT_CTRL *GMT, unsigned int geometry,
GMT_DATATABLE *T) {
uint64_t seg;
uint64_t col;
uint64_t cola;
GMT_DATASEGMENT *S;
if (T && T->n_columns) {
if (!T->min)
T->min = (double *)gmt_memory_func(GMT, 0, T->n_columns, 8u, 0,
... | void gmt_set_tbl_minmax (struct GMT_CTRL *GMT, unsigned int geometry, struct GMT_DATATABLE *T) {
uint64_t seg, col;
struct GMT_DATASEGMENT *S = NULL;
if (!T) return;
if (!T->n_columns) return;
if (!T->min) T->min = gmt_M_memory (GMT, NULL, T->n_columns, double);
if (!T->max) T->max = gmt_M_memory (GMT, NULL,... | gmt_set_tbl_minmax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_set_textset_minmax(GMT_CTRL *GMT, GMT_TEXTSET *D) {
uint64_t tbl;
GMT_TEXTTABLE *T;
if (D) {
D->n_segments = 0;
D->n_records = D->n_segments;
for (tbl = 0; tbl < D->n_tables; ++tbl) {
T = D->table[tbl];
gmtio_set_texttbl_minmax(GMT, T);
D->n_records += T->n_records;
D... | void gmt_set_textset_minmax (struct GMT_CTRL *GMT, struct GMT_TEXTSET *D) {
uint64_t tbl;
struct GMT_TEXTTABLE *T = NULL;
if (!D) return;
D->n_records = D->n_segments = 0;
for (tbl = 0; tbl < D->n_tables; tbl++) {
T = D->table[tbl];
gmtio_set_texttbl_minmax (GMT, T);
D->n_records += T->n_records;
D->n_s... | gmt_set_textset_minmax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_set_xycolnames(GMT_CTRL *GMT, char *string) {
_BOOL4 v2;
char *xy[2][2];
unsigned long v4;
v4 = __readfsqword(0x28u);
xy[0][0] = "x";
xy[0][1] = "y";
xy[1][0] = "lon";
xy[1][1] = "lat";
v2 = GMT->current.io.col_type[1][0] == 4 &&
GMT->current.io.col_type[1][1] == 2;
sprintf(string, ... | void gmt_set_xycolnames (struct GMT_CTRL *GMT, char *string) {
char *xy[2][2] = {{"x", "y"}, {"lon", "lat"}};
unsigned int mode = (gmt_M_is_geographic (GMT, GMT_OUT)) ? 1 : 0;
unsigned int ix = (GMT->current.setting.io_lonlat_toggle[GMT_OUT]) ? 1 : 0, iy;
iy = 1 - ix;
sprintf (string, "%s[0]\t%s[1]", xy[mode][ix],... | gmt_set_xycolnames | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_set_z_io(GMT_CTRL *GMT, GMT_Z_IO *r, GMT_GRID *G) {
unsigned int v3;
uint32_t y_missing;
uint64_t (*v5)(GMT_Z_IO *, GMT_GRID *, uint64_t);
if (r->x_step == 1)
v3 = 0;
else
v3 = G->header->n_columns - r->x_missing - 1;
r->start_col = v3;
if (r->y_step == 1)
y_missing = r->y_missing;
... | int gmt_set_z_io (struct GMT_CTRL *GMT, struct GMT_Z_IO *r, struct GMT_GRID *G) {
gmt_M_unused(GMT);
r->start_col = ((r->x_step == 1) ? 0 : G->header->n_columns - 1 - r->x_missing);
r->start_row = ((r->y_step == 1) ? r->y_missing : G->header->n_rows - 1);
r->get_gmt_ij = (r->format == GMT_IS_COL_FORMAT) ? gmtio... | gmt_set_z_io | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int gmt_setdefaults(GMT_CTRL *GMT, GMT_OPTION *options) {
unsigned int p;
unsigned int n_errors;
const char *param;
n_errors = 0;
param = 0;
while (options) {
if ((options->option == 60 || options->option == 35) && options->arg &&
strcmp(options->arg, "=")) {
if (*options->arg ==... | unsigned int gmt_setdefaults (struct GMT_CTRL *GMT, struct GMT_OPTION *options) {
unsigned int p, n_errors = 0;
struct GMT_OPTION *opt = NULL;
char *param = NULL;
for (opt = options; opt; opt = opt->next) {
if (!(opt->option == '<' || opt->option == '#') || !opt->arg) continue;
if (!strcmp (opt->arg, "=")) c... | gmt_setdefaults | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_setfill(GMT_CTRL *GMT, GMT_FILL *fill, int outline) {
PSL_CTRL *PSL;
double rgb[6];
*(_QWORD *)&rgb[5] = __readfsqword(0x28u);
PSL = GMT->PSL;
if (fill) {
if (fill->use_pattern) {
rgb[0] = -3.0;
rgb[1] = -3.0;
rgb[2] = -3.0;
rgb[3] = 0.0;
rgb[1] = (double)(int)PSL_s... | void gmt_setfill (struct GMT_CTRL *GMT, struct GMT_FILL *fill, int outline) {
struct PSL_CTRL *PSL= GMT->PSL;
if (!fill)
PSL_setfill (PSL, GMT->session.no_rgb, outline);
else if (fill->use_pattern) {
double rgb[4] = {-3.0, -3.0, -3.0, 0.0};
rgb[1] = (double)PSL_setpattern (PSL, fill->pattern_no, fill->patt... | gmt_setfill | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int gmt_setfont(GMT_CTRL *GMT, GMT_FONT *F) {
int outline;
PSL_setfont(GMT->PSL, F->id);
if ((F->form & 2) != 0) {
gmt_setpen(GMT, &F->pen);
gmt_setfill(GMT, &F->fill, 1);
outline = 1;
if ((F->form & 8) != 0)
return 3;
} else if ((F->form & 4) != 0) {
gmt_setfill(GMT, &F->fil... | unsigned int gmt_setfont (struct GMT_CTRL *GMT, struct GMT_FONT *F) {
unsigned int outline;
PSL_setfont (GMT->PSL, F->id);
if (F->form & 2) {
gmt_setpen (GMT, &F->pen);
gmt_setfill (GMT, &F->fill, true);
outline = 1;
if (F->form & 8) outline = 3;
}
else if (F->form & 4) {
gmt_setfill (GMT, &F-... | gmt_setfont | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_setpen(GMT_CTRL *GMT, GMT_PEN *pen) {
if (pen) {
PSL_setlinewidth(GMT->PSL, pen->width);
PSL_setdash(GMT->PSL, pen->style, pen->offset);
PSL_setcolor(GMT->PSL, pen->rgb, 0);
}
} | void gmt_setpen (struct GMT_CTRL *GMT, struct GMT_PEN *pen) {
if (!pen) return;
PSL_setlinewidth (GMT->PSL, pen->width);
PSL_setdash (GMT->PSL, pen->style, pen->offset);
PSL_setcolor (GMT->PSL, pen->rgb, PSL_IS_STROKE);
} | gmt_setpen | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char gmt_shore_adjust_res(GMT_CTRL *GMT, char res) {
int k;
int orig;
bool ok[5];
unsigned long v6;
v6 = __readfsqword(0x28u);
shore_check(GMT, ok);
orig = shore_res_to_int(res);
for (k = orig; k >= 0 && !ok[k]; --k)
;
if (k >= 0 && k != orig)
GMT_Report(
GMT->parent, 1u,
"War... | char gmt_shore_adjust_res (struct GMT_CTRL *GMT, char res) {
int k, orig;
bool ok[5];
char *type = "clihf";
(void)shore_check (GMT, ok);
k = orig = shore_res_to_int (res);
while (k >= 0 && !ok[k]) --k;
if (k >= 0 && k != orig) GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Warning: Resolution %c not available,... | gmt_shore_adjust_res | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_shore_cleanup(GMT_CTRL *GMT, GMT_SHORE *c) {
gmt_free_func(GMT, c->bins, 0, "gmt_shore_cleanup");
c->bins = 0;
gmt_free_func(GMT, c->bin_info, 0, "gmt_shore_cleanup");
c->bin_info = 0;
gmt_free_func(GMT, c->bin_nseg, 0, "gmt_shore_cleanup");
c->bin_nseg = 0;
gmt_free_func(GMT, c->bin_firstseg, 0,... | void gmt_shore_cleanup (struct GMT_CTRL *GMT, struct GMT_SHORE *c) {
gmt_M_free (GMT, c->bins);
gmt_M_free (GMT, c->bin_info);
gmt_M_free (GMT, c->bin_nseg);
gmt_M_free (GMT, c->bin_firstseg);
gmt_M_free (GMT, c->GSHHS_area);
gmt_M_free (GMT, c->GSHHS_area_fraction);
if (c->min_area > 0.0) gmt_M_free (GMT, c->GS... | gmt_shore_cleanup | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_shore_level_at_point(GMT_CTRL *GMT, GMT_SHORE *c, int inside,
double lon, double lat) {
double v6;
double v7;
const char *v8;
unsigned char v9;
unsigned char v10;
int this_point_level;
int brow;
signed int ind;
unsigned int id;
unsigned int ida;
unsigned int id... | int gmt_shore_level_at_point (struct GMT_CTRL *GMT, struct GMT_SHORE *c, int inside, double lon, double lat) {
static int last_bin = INT_MAX;
static int np[2] = {0, 0};
static struct GMT_GSHHS_POL *p[2] = {NULL, NULL};
int this_point_level, brow, bin, ind, err, wd[2] = {1, -1};
unsigned int col, id, ... | gmt_shore_level_at_point | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_show_name_and_purpose(void *API, const char *component,
const char *name, const char *purpose) {
const char *v4;
char *v5;
const char *lib;
char message[264];
unsigned long v10;
v10 = __readfsqword(0x28u);
memset(message, 0, 256);
if (!name)
__assert_fail("na... | void gmt_show_name_and_purpose (void *API, const char *component, const char *name, const char *purpose) {
char message[GMT_LEN256] = {""};
const char *lib = NULL;
static char *core = "core";
assert (name != NULL);
assert (purpose != NULL);
lib = (component) ? component : core;
snprintf (message, GMT_LEN256, "%s... | gmt_show_name_and_purpose | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_sig_f(GMT_CTRL *GMT, double chi1, uint64_t n1, double chi2, uint64_t n2,
double level, double *prob) {
return !gmtstat_f_test_new(GMT, chi1, n1, chi2, n2, prob, -1) &&
*prob >= level;
} | int gmt_sig_f (struct GMT_CTRL *GMT, double chi1, uint64_t n1, double chi2, uint64_t n2, double level, double *prob) {
int trouble;
trouble = gmtstat_f_test_new (GMT, chi1, n1, chi2, n2, prob, -1);
if (trouble) return (0);
return ((*prob) >= level);
} | gmt_sig_f | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_sinc(GMT_CTRL *GMT, double x) {
if (x == 0.0)
return 1.0;
else
return sin(3.141592653589793 * x) / (3.141592653589793 * x);
} | double gmt_sinc (struct GMT_CTRL *GMT, double x) {
gmt_M_unused(GMT);
if (x == 0.0) return (1.0);
x *= M_PI;
return (sin (x) / x);
} | gmt_sinc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_sinusoidal(GMT_CTRL *GMT, double lon, double lat, double *x,
double *y) {
double v5;
double lata;
double latb;
double lona;
lata = lat;
for (lona = lon - GMT->current.proj.central_meridian; lona < -180.00000001;
lona = lona + 360.0)
;
while (lona > 180.00000001)
... | void gmt_sinusoidal (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
gmt_M_wind_lon (GMT, lon)
if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_lata (GMT, lat);
lat *= D2R;
*x = GMT->current.proj.EQ_RAD * lon * D2R * cos (lat);
*y = GMT->current.proj.EQ_RAD * lat;
} | gmt_sinusoidal | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_skip_output(GMT_CTRL *GMT, double *cols, uint64_t n_cols) {
uint64_t c;
uint64_t ca;
if (n_cols <= 0x1000) {
if (GMT->current.setting.io_nan_mode) {
if (GMT->current.setting.io_nan_mode == 3) {
for (c = 0; c < n_cols; ++c)
;
return 0;
} else {
for (ca = ... | bool gmt_skip_output (struct GMT_CTRL *GMT, double *cols, uint64_t n_cols) {
uint64_t c, n_nan;
if (n_cols > GMT_MAX_COLUMNS) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Number of output data columns (%d) exceeds limit (GMT_MAX_COLUMNS = %d)\n", n_cols, GMT_MAX_COLUMNS);
return (true);
}
if (GMT->current.se... | gmt_skip_output | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_skip_record(GMT_CTRL *GMT, GMT_TEXT_SELECTION *S, char *record) {
bool match;
uint64_t k;
match = 0;
if (!S || !S->n)
return 1;
for (k = 0; !match && k < S->n; ++k) {
if (S->regexp[k])
match =
gmtlib_regexp_match(GMT, record, S->pattern[k], S->caseless[k]) != 0;
else
... | GMT_LOCAL bool gmt_skip_record (struct GMT_CTRL *GMT, struct GMT_TEXT_SELECTION *S, char *record) {
bool match = false;
if (S == NULL || S->n == 0) return (true);
for (uint64_t k = 0; !match && k < S->n; k++) {
#if !defined(WIN32) || (defined(WIN32) && defined(HAVE_PCRE)) || (defined(WIN32) && defined(HAVE_PCRE... | gmt_skip_record | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_skip_xy_duplicates(GMT_CTRL *GMT, bool mode) {
GMT->current.io.skip_duplicates = mode;
} | void gmt_skip_xy_duplicates (struct GMT_CTRL *GMT, bool mode) {
GMT->current.io.skip_duplicates = mode;
} | gmt_skip_xy_duplicates | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_solve_svd(GMT_CTRL *GMT, double *u, unsigned int m, unsigned int nu,
double *v, double *w, double *b, unsigned int k, double *x,
double *cutoff, unsigned int mode) {
double v11;
double v12;
int i;
int ia;
int ib;
int ic;
int id;
int j;
unsigned int n_use;
... | int gmt_solve_svd (struct GMT_CTRL *GMT, double *u, unsigned int m, unsigned int nu, double *v, double *w, double *b, unsigned int k, double *x, double *cutoff, unsigned int mode) {
double w_abs, sing_max, total_variance, variance = 0.0, limit = 0;
int i, j, n_use = 0, n = (int)nu;
double s, *tmp = gmt_M_memory (GM... | gmt_solve_svd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int gmt_split_poly_at_dateline(GMT_CTRL *GMT, GMT_DATASEGMENT *S,
GMT_DATASEGMENT ***Lout) {
uint64_t n_rows;
double v4;
GMT_DATASEGMENT **v5;
void **v6;
void **v7;
void **v8;
GMT_DATASEGMENT *v9;
GMT_DATASEGMENT *v10;
int cross;
int side;
int j;
... | unsigned int gmt_split_poly_at_dateline (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S, struct GMT_DATASEGMENT ***Lout) {
int side, j, np, cross = 0;
uint64_t row, m;
size_t n_alloc = 0;
char label[GMT_LEN256] = {""}, *part = "EW";
double xx[2], yy[2];
struct GMT_DATASEGMENT **L = NULL;
bool (*inside[2]) (doub... | gmt_split_poly_at_dateline | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_srf_read_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid,
double *wesn, unsigned int *pad,
unsigned int complex_mode) {
int v7;
size_t v8;
__m128i f_NaN_low;
size_t v10;
float *v11;
double z_min;
size_t v13;
bool piping;
int first_col;
int la... | int gmt_srf_read_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) {
int j, type, n_rows;
bool piping = false;
int first_col, last_col;
int first_row, last_row;
unsigned int width_in;
unsigned int height_in;... | gmt_srf_read_grd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_srf_read_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) {
size_t v2;
FILE *fp;
srf_header6 h6;
srf_header7 h7;
char id[5];
unsigned long v8;
v8 = __readfsqword(0x28u);
if (!strcmp(header->name, "=")) {
fp = GMT->session.std[0];
v2 = fread(id, 1u, 4u, GMT->session.std[0]);
} else {
... | int gmt_srf_read_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) {
FILE *fp = NULL;
struct srf_header6 h6;
struct srf_header7 h7;
char id[5];
if (!strcmp (header->name, "=")) {
#ifdef SET_IO_MODE
gmt_setmode (GMT, GMT_IN);
#endif
fp = GMT->session.std[GMT_IN];
}
else if ((fp = gmt_fopen (GM... | gmt_srf_read_grd_info | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_srf_write_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid,
double *wesn, unsigned int *pad,
unsigned int complex_mode) {
int v7;
double z_min;
double z_max;
size_t v10;
int first_col;
int last_col;
int first_row;
int last_row;
unsigned int wi... | int gmt_srf_write_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) {
int i, j, type;
int first_col, last_col;
int first_row, last_row;
unsigned int width_out;
unsigned int height_out;
unsigned int i2, ju, i... | gmt_srf_write_grd | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_srf_write_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) {
FILE *fp;
srf_header6 h;
unsigned long v5;
v5 = __readfsqword(0x28u);
if (!strcmp(header->name, "=")) {
fp = GMT->session.std[1];
} else {
fp = gmt_fopen(GMT, header->name, "rb+");
if (!fp) {
fp = gmt_fopen(GMT, header->... | int gmt_srf_write_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) {
FILE *fp = NULL;
struct srf_header6 h;
if (!strcmp (header->name, "="))
{
#ifdef SET_IO_MODE
gmt_setmode (GMT, GMT_OUT);
#endif
fp = GMT->session.std[GMT_OUT];
}
else if ((fp = gmt_fopen (GMT, header->name, "rb+")) == NULL &&... | gmt_srf_write_grd_info | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_ssrfpack_grid(GMT_CTRL *GMT, double *x, double *y, double *z, double *w,
uint64_t n_in, unsigned int mode, double *par,
bool vartens, GMT_GRID_HEADER *h, double *f) {
int64_t v11;
double v12;
double v13;
int64_t v15;
int64_t v16;
double v17;
double v18;
... | int gmt_ssrfpack_grid (struct GMT_CTRL *GMT, double *x, double *y, double *z, double *w, uint64_t n_in, unsigned int mode, double *par, bool vartens, struct GMT_GRID_HEADER *h, double *f) {
int64_t ierror, plus = 1, minus = -1, ij, nxp, k, n = n_in;
int64_t nm, n_sig, ist, iflgs, iter, itgs, n_columns = h->n_columns,... | gmt_ssrfpack_grid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_std_weighted(GMT_CTRL *GMT, double *x, double *w, double wmean,
uint64_t n) {
double v5;
double v6;
double v7;
uint64_t k;
uint64_t m;
double sumw;
double sum2;
double wk;
m = 0;
sumw = 0.0;
sum2 = 0.0;
wk = 1.0;
for (k = 0; k < n; ++k) {
if (w) {
... | double gmt_std_weighted (struct GMT_CTRL *GMT, double *x, double *w, double wmean, uint64_t n) {
uint64_t k, m = 0;
double dx, sumw = 0.0, sum2 = 0.0, wk = 1.0;
for (k = 0; k < n; k++) {
if (gmt_M_is_dnan (x[k])) continue;
if (w) {
if (gmt_M_is_dnan (w[k])) continue;
if (gmt_M_is_zero (w[k])) continue;
... | gmt_std_weighted | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_stereo1_sph(GMT_CTRL *GMT, double lon, double lat, double *x,
double *y) {
double cosx;
double sinx;
double *ya;
double *xa;
double lata;
double lona;
GMT_CTRL *GMTa;
double sin_dlon;
double cos_dlon;
double s;
double c;
double cc;
double A;
unsigned long v18;
... | void gmt_stereo1_sph (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double sin_dlon, cos_dlon, s, c, cc, A;
if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_latc (GMT, lat);
sincosd (lon - GMT->current.proj.central_meridian, &sin_dlon, &cos_dlon);
sincosd (lat, &s, &c);
... | gmt_stereo1_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_stereo2_sph(GMT_CTRL *GMT, double lon, double lat, double *x,
double *y) {
double cosx;
double sinx;
double *ya;
double *xa;
double lata;
double lona;
GMT_CTRL *GMTa;
double s;
double c;
double clon;
double slon;
double dlon;
double A;
unsigned long v18;
GMTa... | void gmt_stereo2_sph (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double dlon, s, c, clon, slon, A;
dlon = lon - GMT->current.proj.central_meridian;
if (doubleAlmostEqual (dlon, 180.0)) {
*x = *y = 0.0;
}
else {
if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_latc... | gmt_stereo2_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_stripack_areas(double *V1, double *V2, double *V3) {
return areas_(V1, V2, V3);
} | double gmt_stripack_areas (double *V1, double *V2, double *V3) {
return (areas_ (V1, V2, V3));
} | gmt_stripack_areas | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_stripack_lists(GMT_CTRL *GMT, uint64_t n_in, double *x, double *y,
double *z, STRIPACK *T) {
int64_t n;
int64_t n_out;
int64_t ierror;
int64_t lnew;
int64_t nrow;
uint64_t kk;
int64_t k;
int64_t *iwk;
int64_t *list;
int64_t *lptr;
int64_t *lend;
double *ds_0;
siz... | int gmt_stripack_lists (struct GMT_CTRL *GMT, uint64_t n_in, double *x, double *y, double *z, struct STRIPACK *T) {
uint64_t kk;
int64_t *iwk = NULL, *list = NULL, *lptr = NULL, *lend = NULL;
int64_t n = n_in, n_out, k, ierror, lnew, nrow = TRI_NROW;
size_t n_alloc;
double *ds = NULL;
ds = gmt_M_me... | gmt_stripack_lists | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
size_t gmt_strlcmp(char *str1, char *str2) {
int v2;
size_t i;
for (i = 0; str1[i]; ++i) {
v2 = tolower((unsigned char)str1[i]);
if (v2 != tolower((unsigned char)str2[i]))
break;
}
if (str1[i])
return 0;
else
return i;
} | size_t gmt_strlcmp (char *str1, char *str2) {
size_t i = 0;
while (str1[i] && tolower((unsigned char) str1[i]) == tolower((unsigned char) str2[i])) ++i;
if (str1[i]) return 0;
return i;
} | gmt_strlcmp | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_strlshift(char *string, size_t n) {
size_t len;
if (!string)
__assert_fail("string != NULL",
"/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/"
"src/common_string.c",
0x84u, "gmt_strlshift");
len = strlen(string);
if (len > n)
mem... | void gmt_strlshift (char *string, size_t n) {
size_t len;
assert (string != NULL);
if ((len = strlen(string)) <= n ) {
*string = '\0';
return;
}
memmove(string, string + n, len + 1);
} | gmt_strlshift | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *gmt_strncpy(char *dest, const char *source, size_t num) {
strncpy(dest, source, num - 1);
dest[num - 1] = source[num - 1];
return dest;
} | char *gmt_strncpy (char *dest, const char *source, size_t num) {
strncpy(dest, source, num-1);
dest[num-1] = source[num-1];
return dest;
} | gmt_strncpy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_strrepc(char *string, int c, int r) {
char *stringa;
stringa = string;
if (!string)
__assert_fail("string != NULL",
"/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/"
"src/common_string.c",
0x92u, "gmt_strrepc");
do {
if (c == *st... | void gmt_strrepc (char *string, int c, int r) {
assert (string != NULL);
do {
if (*string == c)
*string = (char)r;
} while (*(++string));
} | gmt_strrepc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_strstrip(char *string, bool strip_leading) {
char *start;
char *end;
start = string;
if (!string)
__assert_fail("string != NULL",
"/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/"
"src/common_string.c",
0x64u, "gmt_strstrip");
if (... | void gmt_strstrip(char *string, bool strip_leading) {
char *start = string;
char *end;
assert (string != NULL);
if (strip_leading) {
while ((*start) && isspace(*start))
++start;
if (!(*start)) {
*string = '\0';
return;
}
}
end = start;
while (*end)
++end;
while ((--end != star... | gmt_strstrip | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int gmt_strtok(const char *string, const char *sep, unsigned int *pos,
char *token) {
size_t v5;
char *v6;
size_t v7;
size_t i;
size_t j;
unsigned long string_len;
string_len = strlen(string);
while (string[*pos] && strchr(sep, string[*pos]))
++*pos;
*token = 0;
... | unsigned int gmt_strtok (const char *string, const char *sep, unsigned int *pos, char *token) {
size_t i, j, string_len;
string_len = strlen (string);
while (string[*pos] && strchr (sep, (int)string[*pos])) (*pos)++;
token[0] = 0;
if (*pos >= string_len || string_len == 0) return 0;
i = *pos... | gmt_strtok | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_strtok_m(char *in, char **token, char **remain, char *sep) {
size_t v4;
unsigned int pos;
char *s;
char *p;
unsigned long v9;
v9 = __readfsqword(0x28u);
pos = 0;
if (sep)
s = sep;
else
s = " \t";
*token = 0;
*remain = 0;
v4 = strlen(in);
p = (char *)malloc(v4 + 1);
if (gmt_... | void gmt_strtok_m (char *in, char **token, char **remain, char *sep) {
unsigned int pos = 0;
char *p, *s;
if (sep == NULL)
s = " \t";
else
s = sep;
token[0] = NULL; remain[0] = NULL;
p = malloc(strlen(in)+1);
if (gmt_strtok (in, s, &pos, p)) {
token[0] = strdup(p);
if (gmt_strtok (in, s, &pos, p... | gmt_strtok_m | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_sub3v(GMT_CTRL *GMT, double *a, double *b, double *c) {
int k;
for (k = 0; k <= 2; ++k)
c[k] = a[k] - b[k];
} | void gmt_sub3v (struct GMT_CTRL *GMT, double *a, double *b, double *c) {
int k;
gmt_M_unused(GMT);
for (k = 0; k < 3; k++) c[k] = a[k] - b[k];
} | gmt_sub3v | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_sum(double *x, uint64_t n) {
uint64_t k;
double S;
S = 0.0;
for (k = 0; k < n; ++k)
S = x[k] + S;
return S;
} | GMT_LOCAL double gmt_sum (double *x, uint64_t n) {
uint64_t k;
double S = 0.0;
for (k = 0; k < n; k++) S += x[k];
return (S);
} | gmt_sum | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_svdcmp(GMT_CTRL *GMT, double *a, unsigned int m_in, unsigned int n_in,
double *w, double *v) {
GMT_Report(GMT->parent, 4u, "gmt_svdcmp: Using GMT's NR-based SVD\n");
return vector_svdcmp_nr(GMT, a, m_in, n_in, w, v);
} | int gmt_svdcmp (struct GMT_CTRL *GMT, double *a, unsigned int m_in, unsigned int n_in, double *w, double *v) {
#ifdef HAVE_LAPACK
int n = m_in, lda = m_in, info, lwork;
double wkopt, *work = NULL;
gmt_M_unused(n_in);
gmt_M_unused(v);
GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "gmt_svdcmp: Using Lapack dsyev\n"... | gmt_svdcmp | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_syntax(GMT_CTRL *GMT, char option) {
int projection;
char *u;
u = GMT->session.unit_name[GMT->current.setting.proj_length_unit];
GMT_Report(GMT->parent, 1u, "Syntax error -%c option. Correct syntax:\n",
(unsigned int)option);
switch (option) {
case '-':
gmt_message(GMT, "\t--<PARA... | void gmt_syntax (struct GMT_CTRL *GMT, char option) {
char *u = GMT->session.unit_name[GMT->current.setting.proj_length_unit];
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -%c option. Correct syntax:\n", option);
switch (option) {
case 'B':
gmt_message (GMT, "\t-B[p|s][x|y|z]<intervals>[+l<la... | gmt_syntax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_t_cdf(GMT_CTRL *GMT, double t, uint64_t nu) {
double p[2];
*(_QWORD *)&p[1] = __readfsqword(0x28u);
gmtstat_student_t_a(GMT, fabs(t), nu, p);
p[0] = p[0] * 0.5 + 0.5;
if (t < 0.0)
p[0] = 1.0 - p[0];
return p[0];
} | double gmt_t_cdf (struct GMT_CTRL *GMT, double t, uint64_t nu) {
double p;
gmt_M_unused(GMT);
gmtstat_student_t_a (GMT, fabs (t), nu, &p);
p = 0.5 * p + 0.5;
if (t < 0.0)
p = 1.0 - p;
return (p);
} | gmt_t_cdf | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_t_pdf(GMT_CTRL *GMT, double t, uint64_t nu) {
double v3;
double v4;
double v5;
double v6;
double v8;
double v9;
double g1;
double g2;
double n;
unsigned long v14;
v14 = __readfsqword(0x28u);
if ((nu & 0x8000000000000000LL) != 0LL)
v3 = (double)(int)(nu & 1 | (nu >> 1)) + (double)... | double gmt_t_pdf (struct GMT_CTRL *GMT, double t, uint64_t nu) {
double y, n = nu + 1.0, g1 = 0.0, g2 = 0.0;
gmtstat_ln_gamma_r (GMT, 0.5*n, &g1);
gmtstat_ln_gamma_r (GMT, 0.5*nu, &g2);
y = exp (g1 - g2) * pow (1.0 + t*t/nu, -0.5*n) / sqrt (M_PI * nu);
return (y);
} | gmt_t_pdf | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_tcrit(GMT_CTRL *GMT, double alpha, double nu) {
bool done;
int NU;
double p_high;
double p_mid;
double t_low;
double t_high;
double t_mid;
double p;
double sign;
unsigned long v13;
v13 = __readfsqword(0x28u);
t_mid = 0.0;
if (alpha <= 0.5) {
p = 1.0 - (alpha + alpha);
sign ... | double gmt_tcrit (struct GMT_CTRL *GMT, double alpha, double nu) {
int NU;
bool done;
double t_low, t_high, t_mid = 0.0, p_high, p_mid, p, sign;
if (alpha > 0.5) {
p = 1 - (1 - alpha) * 2.0;
sign = 1.0;
}
else {
p = 1 - alpha * 2.0;
sign = -1.0;
}
t_low = gmt_zcrit (GMT, alpha);
if (gmt_M_is_dinf ... | gmt_tcrit | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_terminate_clipping(GMT_CTRL *C, PSL_CTRL *PSL, int n) {
if (n == 0x7FFFFFFF) {
PSL_endclipping(PSL, 0x7FFFFFFF);
GMT_Report(C->parent, 4u, "Restore ALL clip levels\n");
} else {
PSL_endclipping(PSL, (unsigned int)n);
GMT_Report(C->parent, 4u, "Restore %d clip levels\n", n);
}
} | GMT_LOCAL void gmt_terminate_clipping (struct GMT_CTRL *C, struct PSL_CTRL *PSL, int n) {
switch (n) {
case PSL_ALL_CLIP:
PSL_endclipping (PSL, n);
GMT_Report (C->parent, GMT_MSG_VERBOSE, "Restore ALL clip levels\n");
break;
default:
PSL_endclipping (PSL, n);
GMT_Report (C->parent, GMT_MSG_VERBOSE... | gmt_terminate_clipping | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_textpath_init(GMT_CTRL *GMT, GMT_PEN *BP_0, double *Brgb) {
PSL_comment(GMT->PSL, "Pen and fill for text boxes (if enabled):\n");
PSL_defpen(GMT->PSL, "PSL_setboxpen", BP_0->style, BP_0->rgb, BP_0->width,
BP_0->offset);
PSL_defcolor(GMT->PSL, "PSL_setboxrgb", Brgb);
} | void gmt_textpath_init (struct GMT_CTRL *GMT, struct GMT_PEN *BP, double Brgb[]) {
PSL_comment (GMT->PSL, "Pen and fill for text boxes (if enabled):\n");
PSL_defpen (GMT->PSL, "PSL_setboxpen", BP->width, BP->style, BP->offset, BP->rgb);
PSL_defcolor (GMT->PSL, "PSL_setboxrgb", Brgb);
} | gmt_textpath_init | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_this_alloc_level(GMT_CTRL *GMT, unsigned int alloc_level) {
return alloc_level == GMT->hidden.func_level;
} | bool gmt_this_alloc_level (struct GMT_CTRL *GMT, unsigned int alloc_level) {
return (alloc_level == GMT->hidden.func_level);
} | gmt_this_alloc_level | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_tm(GMT_CTRL *P, double lon, double lat, double *x, double *y) {
double v5;
double v6;
double cosx;
double sinx;
double *ya;
double *xa;
double lata;
double lona;
GMT_CTRL *Pa;
double s;
double c;
double s2;
double c2;
double dlon;
double tan_lat;
double M;
double N;
double T... | void gmt_tm (struct GMT_CTRL *P, double lon, double lat, double *x, double *y) {
double N, T, T2, C, A, M, dlon, tan_lat, A2, A3, A5, s, c, s2, c2;
if (doubleAlmostEqual (fabs (lat), 90.0)) {
M = P->current.proj.EQ_RAD * P->current.proj.t_c1 * M_PI_2;
*x = 0.0;
*y = P->current.setting.proj_scale_factor * M;
... | gmt_tm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_tm_sph(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double v5;
double v6;
double cosx;
double sinx;
double *ya;
double *xa;
double lata;
double lona;
GMT_CTRL *GMTa;
double clat;
double slat;
double clon;
double slon;
double dlon;
double yy;
double b;
double ... | void gmt_tm_sph (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double dlon, b, clat, slat, clon, slon, xx, yy;
gmt_M_set_delta_lon (GMT->current.proj.central_meridian, lon, dlon);
if (fabs (lat) > 90.0) {
*x = copysign (1.0e100, dlon);
*y = 0.0;
return;
}
if (GMT->current.proj.... | gmt_tm_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_translin(GMT_CTRL *GMT, double forw, double *inv) { *inv = forw; } | void gmt_translin (struct GMT_CTRL *GMT, double forw, double *inv) {
gmt_M_unused(GMT);
*inv = forw;
} | gmt_translin | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_translind(GMT_CTRL *GMT, double forw, double *inv) {
double forwa;
for (forwa = forw - GMT->current.proj.central_meridian; forwa < -180.00000001;
forwa = forwa + 360.0)
;
while (forwa > 180.00000001)
forwa = forwa - 360.0;
*inv = forwa;
} | void gmt_translind (struct GMT_CTRL *GMT, double forw, double *inv) {
gmt_M_wind_lon (GMT, forw)
*inv = forw ;
} | gmt_translind | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_translog10(GMT_CTRL *GMT, double forw, double *inv) {
double d_NaN;
if (forw > 0.0)
d_NaN = log10(forw);
else
d_NaN = GMT->session.d_NaN;
*inv = d_NaN;
} | void gmt_translog10 (struct GMT_CTRL *GMT, double forw, double *inv) {
*inv = d_log10 (GMT, forw);
} | gmt_translog10 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_transpowx(GMT_CTRL *GMT, double x, double *x_in) {
*x_in = pow(x, GMT->current.proj.xyz_pow[0]);
} | void gmt_transpowx (struct GMT_CTRL *GMT, double x, double *x_in) {
*x_in = pow (x, GMT->current.proj.xyz_pow[GMT_X]);
} | gmt_transpowx | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_transpowy(GMT_CTRL *GMT, double y, double *y_in) {
*y_in = pow(y, *(double *)((char *)&loc_12BEA8 + (_QWORD)GMT));
} | void gmt_transpowy (struct GMT_CTRL *GMT, double y, double *y_in) {
*y_in = pow (y, GMT->current.proj.xyz_pow[GMT_Y]);
} | gmt_transpowy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_transpowz(GMT_CTRL *GMT, double z, double *z_in) {
*z_in = pow(z, GMT->current.proj.xyz_pow[2]);
} | void gmt_transpowz (struct GMT_CTRL *GMT, double z, double *z_in) {
*z_in = pow (z, GMT->current.proj.xyz_pow[GMT_Z]);
} | gmt_transpowz | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_update_grd_info(GMT_CTRL *GMT, char *file, GMT_GRID_HEADER *header) {
header->z_min =
(header->z_min - header->z_add_offset) / header->z_scale_factor;
header->z_max =
(header->z_max - header->z_add_offset) / header->z_scale_factor;
return GMT->session.updateinfo[header->type](GMT, header);
} | int gmt_update_grd_info (struct GMT_CTRL *GMT, char *file, struct GMT_GRID_HEADER *header) {
gmt_M_unused(file);
header->z_min = (header->z_min - header->z_add_offset) / header->z_scale_factor;
header->z_max = (header->z_max - header->z_add_offset) / header->z_scale_factor;
return ((*GMT->session.updateinfo[... | gmt_update_grd_info | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_update_prev_rec(GMT_CTRL *GMT, uint64_t n_use) {
if (GMT->current.io.need_previous)
memcpy(GMT->current.io.prev_rec, (char *)&loc_41498 + (_QWORD)GMT,
8 * n_use);
} | static inline void gmt_update_prev_rec (struct GMT_CTRL *GMT, uint64_t n_use) {
if (GMT->current.io.need_previous) gmt_M_memcpy (GMT->current.io.prev_rec, GMT->current.io.curr_rec, n_use, double);
} | gmt_update_prev_rec | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_utm(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double lona;
lona = lon;
if (lon < 0.0)
lona = lon + 360.0;
j_gmt_tm(GMT, lona, lat, x, y);
*x = *x + 500000.0;
if (!GMT->current.proj.north_pole)
*y = *y + 10000000.0;
} | void gmt_utm (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
if (lon < 0.0) lon += 360.0;
gmt_tm (GMT, lon, lat, x, y);
(*x) += GMT_FALSE_EASTING;
if (!GMT->current.proj.north_pole) (*y) += GMT_FALSE_NORTHING;
} | gmt_utm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_utm_sph(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double lona;
lona = lon;
if (lon < 0.0)
lona = lon + 360.0;
j_gmt_tm_sph(GMT, lona, lat, x, y);
*x = *x + 500000.0;
if (!GMT->current.proj.north_pole)
*y = *y + 10000000.0;
} | void gmt_utm_sph (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
if (lon < 0.0) lon += 360.0;
gmt_tm_sph (GMT, lon, lat, x, y);
(*x) += GMT_FALSE_EASTING;
if (!GMT->current.proj.north_pole) (*y) += GMT_FALSE_NORTHING;
} | gmt_utm_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_valbers(GMT_CTRL *GMT, double lon0, double lat0, double ph1,
double ph2) {
bool v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double i_half_ECC;
double v14;
double v15;
double v16;
double v17;
double v18;
double one_m_ECC2;
... | void gmt_valbers (struct GMT_CTRL *GMT, double lon0, double lat0, double ph1, double ph2) {
double s0, s1, s2, c1, c2, q0, q1, q2, m1, m2;
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.north_pole = (GMT->common.R.wesn[YHI] > 0.0 && (GMT->common.R.wesn[YLO] >= 0.0 || (... | gmt_valbers | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_valbers_sph(GMT_CTRL *GMT, double lon0, double lat0, double ph1,
double ph2) {
bool v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double a_C;
double v12;
double cosx;
double sinx;
double ph2a;
double ph1a;
double lat0a;
double lon0a;
GMT_CTRL *GM... | void gmt_valbers_sph (struct GMT_CTRL *GMT, double lon0, double lat0, double ph1, double ph2) {
double s1, c1;
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.north_pole = (GMT->common.R.wesn[YHI] > 0.0 && (GMT->common.R.wesn[YLO] >= 0.0 || (-GMT->common.R.wesn[YLO]) < ... | gmt_valbers_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vazeqdist(GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
double v4;
double cosx;
double sinx;
double horizona;
double lat0a;
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
lat0a = lat0;
horizona = horizon;
GMT->current.proj.central_meridian = lon0;
GMTa->current.... | void gmt_vazeqdist (struct GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.pole = lat0;
sincosd (lat0, &(GMT->current.proj.sinp), &(GMT->current.proj.cosp));
GMT->current.proj.f_horizon = horizon;
GMT->current.proj.rho_max = horizon * D2R;
... | gmt_vazeqdist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vcassini(GMT_CTRL *GMT, double lon0, double lat0) {
double v3;
double v4;
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double cosx;
double sinx;
double lat0a;
double lon0a;
GMT_CTRL *GMTa;
double s2;
double c2;
double e1;
unsigned long v20;
... | void gmt_vcassini (struct GMT_CTRL *GMT, double lon0, double lat0) {
double e1, s2, c2;
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.pole = lat0;
GMT->current.proj.c_p = lat0 * D2R;
sincos (2.0 * GMT->current.proj.c_p, &s2, &c2);
e1 = (1.0 - d_sqrt (GMT->current.... | gmt_vcassini | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vcyleq(GMT_CTRL *GMT, double lon0, double slat) {
double v3;
double v4;
double v5;
double v6;
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.central_meridian = lon0a;
v5 = *(double *)((char *)&loc_12BDF0 + (_QWORD)GMTa) * 0.0174532... | void gmt_vcyleq (struct GMT_CTRL *GMT, double lon0, double slat) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.j_x = GMT->current.proj.EQ_RAD * D2R * cosd (slat);
GMT->current.proj.j_y = GMT->current.proj.EQ_RAD / cosd (slat);
GMT->current.proj.j_ix = 1.0 / GMT->cur... | gmt_vcyleq | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vcyleqdist(GMT_CTRL *GMT, double lon0, double slat) {
double v3;
double v4;
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.central_meridian = lon0a;
v4 = *(double *)((char *)&loc_12BDF0 + (_QWORD)GMTa) * 0.0174532925199433;
v3 = cos(... | void gmt_vcyleqdist (struct GMT_CTRL *GMT, double lon0, double slat) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.j_x = D2R * GMT->current.proj.EQ_RAD * cosd (slat);
GMT->current.proj.j_y = D2R * GMT->current.proj.EQ_RAD;
GMT->current.proj.j_ix = 1.0 / GMT->current... | gmt_vcyleqdist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vcylstereo(GMT_CTRL *GMT, double lon0, double slat) {
double v3;
double v4;
double v5;
double v6;
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.central_meridian = lon0a;
v5 = *(double *)((char *)&loc_12BDF0 + (_QWORD)GMTa) * 0.017... | void gmt_vcylstereo (struct GMT_CTRL *GMT, double lon0, double slat) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.j_x = GMT->current.proj.EQ_RAD * D2R * cosd (slat);
GMT->current.proj.j_y = GMT->current.proj.EQ_RAD * (1.0 + cosd (slat));
GMT->current.proj.j_ix = 1.... | gmt_vcylstereo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_veckert4(GMT_CTRL *GMT, double lon0) {
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.k4_x = (*(double *)((char *)&loc_12BDF0 + (_QWORD)GMTa) +
*(double *)((char *)&loc_12BDF0 + (_QWORD)GMTa)) /
... | void gmt_veckert4 (struct GMT_CTRL *GMT, double lon0) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.k4_x = 2.0 * GMT->current.proj.EQ_RAD / d_sqrt (M_PI * (4.0 + M_PI));
GMT->current.proj.k4_y = 2.0 * GMT->current.proj.EQ_RAD * d_sqrt (M_PI / (4.0 + M_PI));
GMT->current.proj.k4_ix = 1.0 / GMT->current.proj.k4... | gmt_veckert4 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_veckert6(GMT_CTRL *GMT, double lon0) {
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.k6_r =
*(double *)((char *)&loc_12BDF0 + (_QWORD)GMTa) / 2.267508027238226;
GMTa->current.proj.k6_ir = 1.0 / GMTa->current.proj.k6_r;
GMTa->curre... | void gmt_veckert6 (struct GMT_CTRL *GMT, double lon0) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.k6_r = GMT->current.proj.EQ_RAD / sqrt (2.0 + M_PI);
GMT->current.proj.k6_ir = 1.0 / GMT->current.proj.k6_r;
GMT->current.proj.central_meridian = lon0;
} | gmt_veckert6 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_veconic(GMT_CTRL *GMT, double lon0, double lat0, double lat1,
double lat2) {
bool v5;
double v6;
double v7;
double lon0a;
GMT_CTRL *GMTa;
double c1;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
v5 = GMTa->common.R.wesn[3] > 0.0 &&
(*(double *)((char *)&str... | void gmt_veconic (struct GMT_CTRL *GMT, double lon0, double lat0, double lat1, double lat2) {
double c1;
proj_check_R_J (GMT, &lon0);
GMT->current.proj.north_pole = (GMT->common.R.wesn[YHI] > 0.0 && (GMT->common.R.wesn[YLO] >= 0.0 || (-GMT->common.R.wesn[YLO]) < GMT->common.R.wesn[YHI]));
c1 = cosd (lat1);
GMT-... | gmt_veconic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vector_syntax(GMT_CTRL *GMT, unsigned int mode) {
gmt_message(GMT,
"\t Append length of vector head, with optional modifiers:\n");
gmt_message(GMT, "\t [Left and right are defined by looking from start to "
"end of vector]\n");
gmt_message(GMT,
"\t +... | void gmt_vector_syntax (struct GMT_CTRL *GMT, unsigned int mode) {
gmt_message (GMT, "\t Append length of vector head, with optional modifiers:\n");
gmt_message (GMT, "\t [Left and right are defined by looking from start to end of vector]\n");
gmt_message (GMT, "\t +a<angle> to set angle of the vect... | gmt_vector_syntax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_verify_sharedir_version(const char *dir) {
char version_file[4104];
unsigned long v3;
v3 = __readfsqword(0x28u);
if (access(dir, 5))
return 0;
snprintf(version_file, 0x1001u, "%s/VERSION", dir);
if (gmt_match_string_in_file(version_file, required_version_0))
return 1;
snprintf(version_fil... | int gmt_verify_sharedir_version (const char *dir) {
#ifdef NO_SHAREDIR_VERIFY
gmt_M_unused(dir);
return true;
#else
static char *required_version = GMT_PACKAGE_VERSION_WITH_SVN_REVISION;
char version_file[PATH_MAX+1];
#ifdef DEBUG_RUNPATH
fprintf (stderr, "gmt_verify_sharedir_version: got dir '%s'.\n", dir);
... | gmt_verify_sharedir_version | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vertical_axis(GMT_CTRL *GMT, unsigned int mode) {
long v2;
double v3;
double v4;
double cos_el;
double v6;
double v7;
double v8;
unsigned int k;
unsigned int ka;
unsigned int n_z;
unsigned int old_plane;
unsigned int quadrant;
unsigned int form;
double xx;
double yy;
PSL_CTRL *P... | void gmt_vertical_axis (struct GMT_CTRL *GMT, unsigned int mode) {
unsigned int fore, back, old_plane, form;
double nesw[4], old_level, xx, yy, az;
struct PSL_CTRL *PSL= GMT->PSL;
if (!GMT->current.proj.three_D || !GMT->current.map.frame.axis[GMT_Z].item[GMT_ANNOT_UPPER].active) return;
nesw[0] = GMT->current.... | gmt_vertical_axis | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vgenper(GMT_CTRL *GMT, double lon0, double lat0, double altitude,
double azimuth, double tilt, double twist, double width,
double height) {
double v9;
double v10;
double v11;
double v12;
double v13;
double v14;
double v15;
double v16;
double v17;
double v18... | void gmt_vgenper (struct GMT_CTRL *GMT, double lon0, double lat0, double altitude, double azimuth, double tilt, double twist, double width, double height) {
double R, Req, Rpolar, Rlat0;
double H, P, PP;
double rho, rho2;
double eca, cos_eca, sin_eca ;
double yt_min, yt_max;
double xt_min, xt_max;
double rmax;
... | gmt_vgenper | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vgnomonic(GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
double v4;
double cosx;
double sinx;
double horizona;
double lat0a;
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
lat0a = lat0;
horizona = horizon;
GMT->current.proj.central_meridian = lon0;
GMTa->current.... | void gmt_vgnomonic (struct GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.f_horizon = horizon;
GMT->current.proj.rho_max = tand (GMT->current.proj.f_horizon);
GMT->current.proj.pole = lat0;
GMT->current.proj.north_pole = (lat0 > 0.0);
sin... | gmt_vgnomonic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vgrinten(GMT_CTRL *GMT, double lon0, double scale) {
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.central_meridian = lon0a;
GMTa->current.proj.v_r =
3.141592653589793 * *(double *)((char *)&loc_12BDF0 + (_QWORD)GMTa);
GMTa->curre... | void gmt_vgrinten (struct GMT_CTRL *GMT, double lon0, double scale) {
gmt_M_unused(scale);
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.v_r = M_PI * GMT->current.proj.EQ_RAD;
GMT->current.proj.v_ir = 1.0 / GMT->current.proj.v_r;
} | gmt_vgrinten | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vhammer(GMT_CTRL *GMT, double lon0, double scale) {
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.central_meridian = lon0a;
*(double *)((char *)&loc_12C0A0 + (_QWORD)GMTa) =
0.25 * (GMTa->current.proj.M_PR_DEG * scale * 360.0);
} | void gmt_vhammer (struct GMT_CTRL *GMT, double lon0, double scale) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.w_r = 0.25 * (scale * GMT->current.proj.M_PR_DEG * 360.0);
} | gmt_vhammer | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vlamb(GMT_CTRL *GMT, double rlong0, double rlat0, double pha,
double phb) {
bool v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double v11;
double v12;
double v13;
double d_NaN;
double v15;
double v16;
double v17;
double v18;
double v19;
double v20;
... | void gmt_vlamb (struct GMT_CTRL *GMT, double rlong0, double rlat0, double pha, double phb) {
double sin_pha, cos_pha, sin_phb, cos_phb, t_pha, m_pha, t_phb, m_phb, t_rlat0;
proj_check_R_J (GMT, &rlong0);
GMT->current.proj.north_pole = (GMT->common.R.wesn[YHI] > 0.0 && (GMT->common.R.wesn[YLO] >= 0.0 || (-GMT->co... | gmt_vlamb | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vlambeq(GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
double v4;
double v5;
double cosx;
double sinx;
double horizona;
double lat0a;
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
lat0a = lat0;
horizona = horizon;
GMT->current.proj.central_meridian = lon0;
GMT... | void gmt_vlambeq (struct GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.pole = lat0;
if (GMT->current.proj.GMT_convert_latitudes) lat0 = gmt_M_latg_to_lata (GMT, lat0);
sincosd (lat0, &(GMT->current.proj.sinp), &(GMT->current.proj.cosp));
... | gmt_vlambeq | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vmerc(GMT_CTRL *GMT, double lon0, double slat) {
double v3;
double v4;
double v5;
double ECC2;
double v7;
double v8;
double v9;
GMT->current.proj.central_meridian = lon0;
v3 = cos(slat * 0.0174532925199433);
ECC2 = GMT->current.proj.ECC2;
v7 = sin(slat * 0.0174532925199433) * ECC2;
if ... | void gmt_vmerc (struct GMT_CTRL *GMT, double lon0, double slat) {
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.j_x = cosd (slat) / d_sqrt (1.0 - GMT->current.proj.ECC2 * sind (slat) * sind (slat)) * GMT->current.proj.EQ_RAD;
GMT->current.proj.j_ix = 1.0 / GMT->current.proj.j_x;
} | gmt_vmerc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vmollweide(GMT_CTRL *GMT, double lon0, double scale) {
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.central_meridian = lon0a;
GMTa->current.proj.w_x =
2.82842712474619 *
(*(double *)((char *)&loc_12BDF0 + (_QWORD)GMTa) * 0.01... | void gmt_vmollweide (struct GMT_CTRL *GMT, double lon0, double scale) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.w_x = GMT->current.proj.EQ_RAD * D2R * d_sqrt (8.0) / M_PI;
GMT->current.proj.w_y = GMT->current.proj.EQ_RAD * M_SQRT2;
GMT->current.proj.w_iy = 1.0 /... | gmt_vmollweide | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vortho(GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
double v4;
double v5;
double cosx;
double sinx;
double horizona;
double lat0a;
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
lat0a = lat0;
horizona = horizon;
GMT->current.proj.central_meridian = lon0;
GMTa... | void gmt_vortho (struct GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.pole = lat0;
sincosd (lat0, &(GMT->current.proj.sinp), &(GMT->current.proj.cosp));
GMT->current.proj.f_horizon = horizon;
GMT->current.proj.rho_max = sind (horizon);
} | gmt_vortho | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vpolar(GMT_CTRL *GMT, double lon0) {
double v2;
GMT->current.proj.p_base_angle = lon0;
GMT->current.proj.central_meridian =
0.5 * (GMT->common.R.wesn[1] + GMT->common.R.wesn[0]);
GMT->current.proj.north_pole = GMT->current.proj.got_elevations;
if (GMT->current.proj.got_elevations)
v2 = 90.... | void gmt_vpolar (struct GMT_CTRL *GMT, double lon0) {
GMT->current.proj.p_base_angle = lon0;
GMT->current.proj.central_meridian = 0.5 * (GMT->common.R.wesn[XHI] + GMT->common.R.wesn[XLO]);
GMT->current.proj.north_pole = GMT->current.proj.got_elevations;
GMT->current.proj.pole = (GMT->current.proj.got_elevati... | gmt_vpolar | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vpolyconic(GMT_CTRL *GMT, double lon0, double lat0) {
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.central_meridian = lon0a;
GMTa->current.proj.pole = lat0;
} | void gmt_vpolyconic (struct GMT_CTRL *GMT, double lon0, double lat0) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.pole = lat0;
} | gmt_vpolyconic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vrobinson(GMT_CTRL *GMT, double lon0) {
int v2;
int v3;
int v4;
int v5;
int v6;
double lon0a;
GMT_CTRL *GMTa;
int err_flag;
GMTa = GMT;
lon0a = lon0;
err_flag = 0;
if (!GMT->current.setting.interpolant) {
gmt_message(GMTa, "Warning: -JN requires Akima or Cubic spline "
... | void gmt_vrobinson (struct GMT_CTRL *GMT, double lon0) {
int err_flag = 0;
if (GMT->current.setting.interpolant == GMT_SPLINE_LINEAR) {
gmt_message (GMT, "Warning: -JN requires Akima or Cubic spline interpolant, set to Akima\n");
GMT->current.setting.interpolant = GMT_SPLINE_AKIMA;
}
proj_check_R_J (GMT, &... | gmt_vrobinson | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vsinusoidal(GMT_CTRL *GMT, double lon0) {
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
GMTa->current.proj.central_meridian = lon0a;
} | void gmt_vsinusoidal (struct GMT_CTRL *GMT, double lon0) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.central_meridian = lon0;
} | gmt_vsinusoidal | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vstereo(GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
double v4;
double v5;
double cosx;
double sinx;
double horizona;
double lat0a;
double lon0a;
GMT_CTRL *GMTa;
double clat;
GMTa = GMT;
lon0a = lon0;
lat0a = lat0;
horizona = horizon;
if (GMT->current.proj.GMT_convert... | void gmt_vstereo (struct GMT_CTRL *GMT, double lon0, double lat0, double horizon) {
double clat;
if (GMT->current.proj.GMT_convert_latitudes) {
gmtlib_scale_eqrad (GMT);
clat = gmt_M_latg_to_latc (GMT, lat0);
}
else
clat = lat0;
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.pole = lat0; ... | gmt_vstereo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vtm(GMT_CTRL *GMT, double lon0, double lat0) {
double v3;
double v4;
double v5;
double cosx;
double sinx;
double lat0a;
double lon0a;
GMT_CTRL *GMTa;
double s2;
double c2;
double e1;
unsigned long v14;
GMTa = GMT;
lon0a = lon0;
lat0a = lat0;
v14 = __readfsqword(0x28u);
if (GM... | void gmt_vtm (struct GMT_CTRL *GMT, double lon0, double lat0) {
double e1, s2, c2;
e1 = (1.0 - d_sqrt (GMT->current.proj.one_m_ECC2)) / (1.0 + d_sqrt (GMT->current.proj.one_m_ECC2));
GMT->current.proj.t_e2 = GMT->current.proj.ECC2 * GMT->current.proj.i_one_m_ECC2;
GMT->current.proj.t_c1 = 1.0 - (1.0/4.0) * GMT... | gmt_vtm | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_vwinkel(GMT_CTRL *GMT, double lon0, double scale) {
double lon0a;
GMT_CTRL *GMTa;
GMTa = GMT;
lon0a = lon0;
proj_check_R_J(GMT, &lon0a);
*(_QWORD *)((char *)&loc_12C0A8 + (_QWORD)GMTa) = 0x3FE45E6DECBE327ALL;
GMTa->current.proj.central_meridian = lon0a;
*(double *)((char *)&loc_12C0A0 + (_QWOR... | void gmt_vwinkel (struct GMT_CTRL *GMT, double lon0, double scale) {
proj_check_R_J (GMT, &lon0);
GMT->current.proj.r_cosphi1 = cosd (50.0+(28.0/60.0));
GMT->current.proj.central_meridian = lon0;
GMT->current.proj.w_r = 0.25 * (scale * GMT->current.proj.M_PR_DEG * 360.0);
} | gmt_vwinkel | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_weibull_cdf(GMT_CTRL *GMT, double x, double scale, double shape) {
double v5;
if (x < 0.0)
return 0.0;
v5 = pow(x / scale, shape);
return 1.0 - exp(-v5);
} | double gmt_weibull_cdf (struct GMT_CTRL *GMT, double x, double scale, double shape) {
double p, z;
gmt_M_unused(GMT);
if (x < 0.0) return 0.0;
z = x / scale;
p = 1.0 - exp (-pow (z, shape));
return (p);
} | gmt_weibull_cdf | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_weibull_crit(GMT_CTRL *GMT, double p, double scale, double shape) {
double v4;
v4 = log(1.0 - p);
return pow(-v4, 1.0 / shape) * scale;
} | double gmt_weibull_crit (struct GMT_CTRL *GMT, double p, double scale, double shape) {
double z;
gmt_M_unused(GMT);
z = scale * pow (-log (1.0 - p), 1.0/shape);
return (z);
} | gmt_weibull_crit | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_weibull_pdf(GMT_CTRL *GMT, double x, double scale, double shape) {
double v5;
double v6;
if (x < 0.0)
return 0.0;
v6 = pow(x / scale, shape - 1.0) * (shape / scale);
v5 = pow(x / scale, shape);
return exp(-v5) * v6;
} | double gmt_weibull_pdf (struct GMT_CTRL *GMT, double x, double scale, double shape) {
double p, z;
gmt_M_unused(GMT);
if (x < 0.0) return 0.0;
z = x / scale;
p = (shape/scale) * pow (z, shape-1.0) * exp (-pow(z,shape));
return (p);
} | gmt_weibull_pdf | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_winkel(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double cosx;
double sinx;
double *ya;
double *xa;
double lata;
double lona;
GMT_CTRL *GMTa;
double c;
double s;
double x1;
double y1;
doub... | void gmt_winkel (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double X, D, x1, x2, y1, c, s;
gmt_M_wind_lon (GMT, lon)
lat *= D2R;
lon *= (0.5 * D2R);
sincos (lat, &s, &c);
D = d_acos (c * cos (lon));
if (GMT_PROJ_IS_ZERO (D))
x1 = y1 = 0.0;
else {
X = s / sin (D);
x1 = co... | gmt_winkel | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_write_segmentheader(GMT_CTRL *GMT, FILE *fp, uint64_t n_cols) {
uint64_t v3;
uint64_t v4;
uint64_t col;
uint64_t cola;
uint64_t colb;
if (*((_BYTE *)&loc_51499 + (_QWORD)GMT) == 1) {
if (GMT->common.b.active[1]) {
for (col = 0; col < n_cols; ++col)
GMT->current.io.output(GMT, fp,... | void gmt_write_segmentheader (struct GMT_CTRL *GMT, FILE *fp, uint64_t n_cols) {
uint64_t col;
if (!GMT->current.io.multi_segments[GMT_OUT]) return;
if (GMT->common.b.active[GMT_OUT]) {
for (col = 0; col < n_cols; col++) GMT->current.io.output (GMT, fp, 1, &GMT->session.d_NaN);
return;
}
if (GMT->cu... | gmt_write_segmentheader | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_x_to_xx(GMT_CTRL *GMT, double x) {
double xx[2];
*(_QWORD *)&xx[1] = __readfsqword(0x28u);
((void (*)(GMT_CTRL *, double *, double))GMT->current.proj.fwd_x)(GMT, xx, x);
return GMT->current.proj.origin[0] + GMT->current.proj.scale[0] * xx[0];
} | double gmt_x_to_xx (struct GMT_CTRL *GMT, double x) {
double xx;
(*GMT->current.proj.fwd_x) (GMT, x, &xx);
return (xx * GMT->current.proj.scale[GMT_X] + GMT->current.proj.origin[GMT_X]);
} | gmt_x_to_xx | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_xy_axis(GMT_CTRL *GMT, double x0, double y0, double length,
double val0, double val1, GMT_PLOT_AXIS *A, bool below,
bool annotate) {
double (*v9)(GMT_CTRL *, double);
int v10;
double map_interval;
double v12;
unsigned int v13;
int v14;
bool v15;
bool v16;
boo... | void gmt_xy_axis (struct GMT_CTRL *GMT, double x0, double y0, double length, double val0, double val1, struct GMT_PLOT_AXIS *A, bool below, bool annotate) {
unsigned int k, i, nx, nx1, np = 0;
unsigned int annot_pos;
unsigned int primary;
unsigned int axis = A->id;
unsigned int justify;
bool horizontal;
bo... | gmt_xy_axis | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_xy_to_geo(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
(*(void (**)(GMT_CTRL *, double *, double *, double, double))(
(char *)&loc_12B9F8 + (_QWORD)GMT))(
GMT, lon, lat,
GMT->current.proj.i_scale[0] * (x - GMT->current.proj.origin[0]),
GMT->current... | void gmt_xy_to_geo (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
if (gmt_M_is_dnan (x) || gmt_M_is_dnan (y)) {(*lon) = (*lat) = GMT->session.d_NaN; return;}
x = (x - GMT->current.proj.origin[GMT_X]) * GMT->current.proj.i_scale[GMT_X];
y = (y - GMT->current.proj.origin[GMT_Y]) * GMT->curr... | gmt_xy_to_geo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_xy_to_geo_noshift(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
(*(void (**)(GMT_CTRL *, double *, double *, double, double))(
(char *)&loc_12B9F8 + (_QWORD)GMT))(GMT, lon, lat, x, y);
} | void gmt_xy_to_geo_noshift (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
if (gmt_M_is_dnan (x) || gmt_M_is_dnan (y)) {(*lon) = (*lat) = GMT->session.d_NaN; return;}
(*GMT->current.proj.inv) (GMT, lon, lat, x, y);
} | gmt_xy_to_geo_noshift | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_xy_to_geo_noshiftscale(GMT_CTRL *GMT, double *lon, double *lat,
double x, double y) {
(*(void (**)(GMT_CTRL *, double *, double *, double, double))(
(char *)&loc_12B9F8 + (_QWORD)GMT))(GMT, lon, lat, x, y);
} | void gmt_xy_to_geo_noshiftscale (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
if (gmt_M_is_dnan (x) || gmt_M_is_dnan (y)) {(*lon) = (*lat) = GMT->session.d_NaN; return;}
(*GMT->current.proj.inv) (GMT, lon, lat, x, y);
} | gmt_xy_to_geo_noshiftscale | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_xyz_to_xy(GMT_CTRL *GMT, double x, double y, double z, double *x_out,
double *y_out) {
*x_out = GMT->current.proj.z_project.x_off +
-x * GMT->current.proj.z_project.cos_az +
*(double *)((char *)&loc_12B818 + (_QWORD)GMT) * y;
*y_out = GMT->current.proj.z_project.y_o... | void gmt_xyz_to_xy (struct GMT_CTRL *GMT, double x, double y, double z, double *x_out, double *y_out) {
*x_out = - x * GMT->current.proj.z_project.cos_az + y * GMT->current.proj.z_project.sin_az + GMT->current.proj.z_project.x_off;
*y_out = - (x * GMT->current.proj.z_project.sin_az + y * GMT->current.proj.z_project... | gmt_xyz_to_xy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_y_to_yy(GMT_CTRL *GMT, double y) {
double yy[2];
*(_QWORD *)&yy[1] = __readfsqword(0x28u);
((void (*)(GMT_CTRL *, double *, double))GMT->current.proj.fwd_y)(GMT, yy, y);
return *(double *)((char *)&loc_12BD28 + (_QWORD)GMT) +
GMT->current.proj.scale[1] * yy[0];
} | double gmt_y_to_yy (struct GMT_CTRL *GMT, double y) {
double yy;
(*GMT->current.proj.fwd_y) (GMT, y, &yy);
return (yy * GMT->current.proj.scale[GMT_Y] + GMT->current.proj.origin[GMT_Y]);
} | gmt_y_to_yy | 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.