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_get_br_bin(GMT_CTRL *GMT, unsigned int b, GMT_BR *c,
unsigned int *level, unsigned int n_levels) {
GMT_BR_SEGMENT *v6;
GMT_BR_SEGMENT *v7;
bool skip;
int s;
int i;
int err;
int erra;
unsigned int k;
int *seg_start;
short *seg_n;
short *seg_level;
size_t start[1];
siz... | int gmt_get_br_bin (struct GMT_CTRL *GMT, unsigned int b, struct GMT_BR *c, unsigned int *level, unsigned int n_levels) {
size_t start[1], count[1];
int *seg_start = NULL;
short *seg_n = NULL, *seg_level = NULL, s_level;
int s, i, err;
unsigned int k;
bool skip;
c->lon_sw = (c->bins[b] % c->bin_nx) * c->bin_... | gmt_get_br_bin | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_get_cellarea(GMT_CTRL *GMT, GMT_GRID *G) {
if (GMT->current.io.col_type[0][0] == 4 &&
GMT->current.io.col_type[0][1] == 2)
get_geo_cellarea(GMT, G);
else
get_cart_cellarea(GMT, G);
} | void gmt_get_cellarea (struct GMT_CTRL *GMT, struct GMT_GRID *G) {
if (gmt_M_is_geographic (GMT, GMT_IN))
get_geo_cellarea (GMT, G);
else
get_cart_cellarea (GMT, G);
} | gmt_get_cellarea | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t gmt_get_cols(GMT_CTRL *GMT, unsigned int direction) {
uint64_t v4;
if (direction >= 2)
return 29;
if (direction) {
if (GMT->common.i.active)
v4 = *(unsigned long *)((char *)&stru_230A0.r_offset + (_QWORD)GMT);
else
v4 = *(unsigned long *)((char *)&stru_21B28.r_offset + (_QWORD)GM... | uint64_t gmt_get_cols (struct GMT_CTRL *GMT, unsigned int direction) {
uint64_t n_cols;
if (! (direction == GMT_IN || direction == GMT_OUT)) return (GMT_NOT_A_VALID_DIRECTION);
if (direction == GMT_IN) {
n_cols = (GMT->common.i.active) ? GMT->common.i.n_cols : GMT->common.b.ncol[GMT_IN];
}
else... | gmt_get_cols | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_get_ellipsoid(GMT_CTRL *GMT, char *name) {
int i;
int n;
double pol_radius;
FILE *fp;
double slop;
char ename[64];
char line[4096];
char path[4104];
unsigned long v11;
v11 = __readfsqword(0x28u);
strncpy(ename, name, 0x3Fu);
gmtlib_str_tolower(ename);
for (i = 0; i <= 74; ++i) {
s... | int gmt_get_ellipsoid (struct GMT_CTRL *GMT, char *name) {
int i, n;
char line[GMT_BUFSIZ], ename[GMT_LEN64];
double pol_radius;
strncpy (ename, name, GMT_LEN64-1);
gmtlib_str_tolower (ename);
for (i = 0; i < GMT_N_ELLIPSOIDS; i++) {
strcpy (line, GMT->current.setting.ref_ellipsoid[i].name);
gmtlib_str... | gmt_get_ellipsoid | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *gmt_get_ext(char *string) {
char *p;
if (!string)
__assert_fail("string != NULL",
"/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/"
"src/common_string.c",
0x58u, "gmt_get_ext");
p = strrchr(string, 46);
if (p)
return p + 1;
else
... | char *gmt_get_ext (char *string) {
char *p;
assert (string != NULL);
if ((p = strrchr(string, '.'))) {
return (p + 1);
}
return NULL;
} | gmt_get_ext | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_DATASET *gmt_get_gshhg_lines(GMT_CTRL *GMT, double *wesn, char res,
GMT_SHORE_SELECT *A) {
double v5;
double v6;
GMT_DATATABLE **v7;
const char *v8;
const char *v9;
GMT_DATATABLE **v10;
GMT_DATATABLE *v11;
GMT_DATASEGMENT **segment;
uint64_t v13;
GMT_DATATABLE **... | struct GMT_DATASET * gmt_get_gshhg_lines (struct GMT_CTRL *GMT, double wesn[], char res, struct GMT_SHORE_SELECT *A) {
char *shore_resolution[5] = {"full", "high", "intermediate", "low", "crude"};
unsigned int base = gmt_set_resolution (GMT, &res, 'D');
int ind, err, np = 0, k;
size_t n_alloc = GMT_CHUNK;
uint6... | gmt_get_gshhg_lines | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_get_io_type(GMT_CTRL *GMT, char type) {
int result;
int t;
t = -1;
switch (type) {
case 'A':
case 'a':
goto LABEL_13;
case 'H':
t = 3;
goto LABEL_13;
case 'I':
t = 5;
goto LABEL_13;
case 'L':
t = 7;
goto LABEL_13;
case 'c':
t = 0;
goto LABEL_13;
case 'd... | int gmt_get_io_type (struct GMT_CTRL *GMT, char type) {
int t = -1;
switch (type) {
case 'a': case 'A': break;
case 'c': t = GMT_CHAR; break;
case 'u': t = GMT_UCHAR; break;
case 'h': t = GMT_SHORT; break;
case 'H': t = GMT_USHORT; break;
case 'i': t = GMT_INT; break;
case 'I': ... | gmt_get_io_type | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int gmt_get_modifier(const char *string, char modifier, char *token) {
bool quoted;
unsigned __int128 k;
unsigned long len;
size_t lena;
quoted = 0;
*((_QWORD *)&k + 1) = 0;
if (!string || !*string)
return 0;
len = strlen(string);
*(_QWORD *)&k = 0;
while (k < len - 1) {
if (string... | unsigned int gmt_get_modifier (const char *string, char modifier, char *token) {
bool quoted = false;
size_t k, len, start = 0;
if (!string || string[0] == 0) return 0;
len = strlen (string);
for (k = 0; start == 0 && k < (len-1); k++) {
if (string[k] == '\"') quoted = !quoted;
if (quoted) continue; ... | gmt_get_modifier | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
const char *gmt_get_module_info(GMTAPI_CTRL *API, char *module,
unsigned int lib_no) {
if (lib_no)
return gmt_get_shared_module_info(API, module, lib_no);
else
return gmt_core_module_info(API, module);
} | GMT_LOCAL const char * gmt_get_module_info (struct GMTAPI_CTRL *API, char *module, unsigned int lib_no) {
if (lib_no == 0)
return (gmt_core_module_info (API, module));
return (gmt_get_shared_module_info (API, module, lib_no));
} | gmt_get_module_info | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_get_ogr_id(GMT_OGR *G, char *name) {
unsigned int k;
for (k = 0; k < G->n_aspatial; ++k) {
if (!strcmp(name, G->name[k]))
return k;
}
return -1;
} | int gmt_get_ogr_id (struct GMT_OGR *G, char *name) {
unsigned int k;
for (k = 0; k < G->n_aspatial; k++) if (!strcmp (name, G->name[k])) return (k);
return (GMT_NOTSET);
} | gmt_get_ogr_id | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
const char *gmt_get_shared_module_info(GMTAPI_CTRL *API, char *module,
unsigned int lib_no) {
Gmt_libinfo *v4;
char *v5;
const char *(*func)(void *, char *);
const char *keys;
char function[72];
unsigned long v10;
v10 = __readfsqword(0x28u);
memset(function, 0, 64... | GMT_LOCAL const char * gmt_get_shared_module_info (struct GMTAPI_CTRL *API, char *module, unsigned int lib_no) {
char function[GMT_LEN64] = {""};
const char *keys = NULL;
const char * (*func)(void*, char*) = NULL;
if (API->lib[lib_no].skip) return (NULL);
if (API->lib[lib_no].handle == NULL && (... | gmt_get_shared_module_info | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_get_shore_bin(GMT_CTRL *GMT, unsigned int b, GMT_SHORE *c) {
int max_level;
_BOOL4 v4;
_BOOL4 v5;
unsigned char v7;
GMT_SHORE_SEGMENT *v8;
GMT_SHORE_SEGMENT *v9;
int s;
int sa;
int i;
int ia;
int ib;
int ic;
int k;
int ka;
int kb;
int err;
int erra;
int errb;
int errc;
in... | int gmt_get_shore_bin (struct GMT_CTRL *GMT, unsigned int b, struct GMT_SHORE *c) {
size_t start[1], count[1];
int *seg_info = NULL, *seg_start = NULL, *seg_ID = NULL;
int s, i, k, ny, err, level, inc[4], ll_node, node, ID, *seg_skip = NULL;
unsigned short corner[4], bitshift[4] = {9, 6, 3, 0};
signed char *se... | gmt_get_shore_bin | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_DATASEGMENT *gmt_get_smallcircle(GMT_CTRL *GMT, double plon, double plat,
double colat, uint64_t m) {
double v6;
uint64_t v7;
double v8;
double v9;
double v10;
long v11;
uint64_t v12;
long v13;
uint64_t v14;
double plata;
double x;
double y;
double last... | struct GMT_DATASEGMENT * gmt_get_smallcircle (struct GMT_CTRL *GMT, double plon, double plat, double colat, uint64_t m) {
double P[3], X[3], N[3], R[3][3], xlat, dlon, xx, yy, x, y, last_x = 0.0, last_y = 0.0, dx;
uint64_t k, n;
struct GMT_DATASEGMENT *S = NULL;
if (m < 2) return NULL;
S = GMT_Alloc_Segment ... | gmt_get_smallcircle | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_get_time_system(GMT_CTRL *GMT, char *name,
GMT_TIME_SYSTEM *time_system) {
char *epoch;
if (!strcmp(name, "j2000")) {
qmemcpy(time_system->epoch, "2000-01-01T12:00", 16);
*(_DWORD *)&time_system->epoch[16] = (_DWORD)&loc_30303A;
time_system->unit = 100;
} else if (!s... | bool gmt_get_time_system (struct GMT_CTRL *GMT, char *name, struct GMT_TIME_SYSTEM *time_system) {
char *epoch = NULL;
gmt_M_unused(GMT);
if (!strcmp (name, "j2000")) {
strcpy (time_system->epoch, "2000-01-01T12:00:00");
time_system->unit = 'd';
}
else if (!strcmp (name, "jd")) {
strcpy (time_system... | gmt_get_time_system | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *gmt_getdatapath(GMT_CTRL *GMT, const char *stem, char *path, int mode) {
size_t v5;
bool found;
unsigned int pos;
unsigned int d;
size_t L;
size_t N;
char *udir[3];
char path_separator[2];
char dir[4104];
unsigned long v16;
v16 = __readfsqword(0x28u);
udir[0] = GMT->session.USERDIR;
udi... | char *gmt_getdatapath (struct GMT_CTRL *GMT, const char *stem, char *path, int mode) {
unsigned int d, pos;
size_t L;
bool found;
char *udir[3] = {GMT->session.USERDIR, GMT->session.DATADIR, GMT->session.CACHEDIR}, dir[GMT_BUFSIZ];
char path_separator[2] = {PATH_SEPARATOR, '\0'};
#ifdef HAVE_DIRENT_H_
size... | gmt_getdatapath | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_getdefaults(GMT_CTRL *GMT, char *this_file) {
char file[4104];
unsigned long v3;
v3 = __readfsqword(0x28u);
if (this_file) {
gmt_loaddefaults(GMT, this_file);
} else if (gmtlib_getuserpath(GMT, "gmt.conf", file)) {
gmt_loaddefaults(GMT, file);
}
} | void gmt_getdefaults (struct GMT_CTRL *GMT, char *this_file) {
char file[GMT_BUFSIZ];
if (this_file)
gmt_loaddefaults (GMT, this_file);
else if (gmtlib_getuserpath (GMT, "gmt.conf", file))
gmt_loaddefaults (GMT, file);
} | gmt_getdefaults | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_getmad(GMT_CTRL *GMT, double *x, uint64_t n, double location,
double *scale) {
double v5;
uint64_t i;
double med;
double *dev;
if (n) {
if (n == 1) {
*scale = 0.0;
} else {
dev = (double *)gmt_memory_func(GMT, 0, n, 8u, 0, "gmt_getmad");
for (i = 0; i < n; +... | void gmt_getmad (struct GMT_CTRL *GMT, double *x, uint64_t n, double location, double *scale) {
uint64_t i;
double med, *dev = NULL;
if (n == 0) {
*scale = GMT->session.d_NaN;
return;
}
else if (n == 1) {
*scale = 0.0;
return;
}
dev = gmt_M_memory (GMT, NULL, n, double);
for (i = 0; i < n; i++) dev[... | gmt_getmad | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_getmad_f(GMT_CTRL *GMT, float *x, uint64_t n, double location,
double *scale) {
float v5;
double v6;
uint64_t i;
double med;
float *dev;
if (n) {
if (n == 1) {
*scale = 0.0;
} else {
dev = (float *)gmt_memory_func(GMT, 0, n, 8u, 0, "gmt_getmad_f");
for (... | void gmt_getmad_f (struct GMT_CTRL *GMT, float *x, uint64_t n, double location, double *scale) {
uint64_t i;
float *dev = NULL;
double med;
if (n == 0) {
*scale = GMT->session.d_NaN;
return;
}
else if (n == 1) {
*scale = 0.0;
return;
}
dev = gmt_M_memory (GMT, NULL, n, double);
for (i = 0; i < n; i+... | gmt_getmad_f | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *gmt_getsharepath(GMT_CTRL *GMT, const char *subdir, const char *stem,
const char *suffix, char *path, int mode) {
GMT_Report(GMT->parent, 6u, "GMT: 1. gmt_getsharepath trying current dir\n");
sprintf(path, "%s%s", stem, suffix);
if (!access(path, mode))
return path;
if (*stem ==... | char *gmt_getsharepath (struct GMT_CTRL *GMT, const char *subdir, const char *stem, const char *suffix, char *path, int mode) {
GMT_Report (GMT->parent, GMT_MSG_DEBUG, "GMT: 1. gmt_getsharepath trying current dir\n");
sprintf (path, "%s%s", stem, suffix);
if (!access (path, mode)) return (path);
if... | gmt_getsharepath | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_gnomonic(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_lat;
double cos_lat;
double sin_lon;
double cos_lon;
double cc;
double k;
unsigned long v18;
GMTa = GMT;
... | void gmt_gnomonic (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double k, sin_lat, cos_lat, sin_lon, cos_lon, cc;
gmt_M_wind_lon (GMT, lon)
sincosd (lat, &sin_lat, &cos_lat);
sincosd (lon, &sin_lon, &cos_lon);
cc = cos_lat * cos_lon;
k = GMT->current.proj.EQ_RAD / (GMT->current.proj... | gmt_gnomonic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
uint64_t gmt_graticule_path(GMT_CTRL *GMT, double **x, double **y, int dir,
bool check, double w, double e, double s,
double n) {
double *v9;
double *v10;
double *v11;
double *v12;
size_t v13;
size_t v14;
size_t v15;
size_t v16;
size_t v17;
siz... | uint64_t gmt_graticule_path (struct GMT_CTRL *GMT, double **x, double **y, int dir, bool check, double w, double e, double s, double n) {
size_t n_alloc = 0;
uint64_t np = 0;
double *xx = NULL, *yy = NULL;
double px0, px1, px2, px3;
if (dir == 1) {
px0 = px3 = w; px1 = px2 = e;
}
else {
px0 = px3 = e... | gmt_graticule_path | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_grd_RI_verify(GMT_CTRL *GMT, GMT_GRID_HEADER *h, unsigned int mode) {
unsigned int v4;
unsigned int v5;
unsigned int error;
error = 0;
if (!strcmp(GMT->init.module_name, "grdedit"))
return 0;
v4 = gmt_minmaxinc_verify(GMT, h->wesn[0], h->wesn[1], h->inc[0], 0.0001);
if (v4 == 3) {
GMT_Rep... | int gmt_grd_RI_verify (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, unsigned int mode) {
unsigned int error = 0;
if (!strcmp (GMT->init.module_name, "grdedit")) return (GMT_NOERROR);
switch (gmt_minmaxinc_verify (GMT, h->wesn[XLO], h->wesn[XHI], h->inc[GMT_X], GMT_CONV4_LIMIT)) {
case 3:
GMT_Rep... | gmt_grd_RI_verify | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double *gmt_grd_coord(GMT_CTRL *GMT, GMT_GRID_HEADER *header, int dir) {
double v3;
double v4;
uint32_t k;
uint32_t ka;
double *coord;
if ((unsigned int)dir >= 2)
__assert_fail("dir == GMT_X || dir == GMT_Y",
"/var/tmp/portage/sci-geosciences/gmt-5.4.4/work/gmt-5.4.4/"
... | double * gmt_grd_coord (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, int dir) {
unsigned int k;
double *coord = NULL;
assert (dir == GMT_X || dir == GMT_Y);
if (dir == GMT_X) {
coord = gmt_M_memory (GMT, NULL, header->n_columns, double);
for (k = 0; k < header->n_columns; k++) coord[k] = gmt_M_grd_co... | gmt_grd_coord | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
size_t gmt_grd_data_size(GMT_CTRL *GMT, unsigned int format, float *nan_value) {
size_t result;
switch (GMT->session.grdformat[format][1]) {
case 'b':
result = 1;
break;
case 'd':
result = 8;
break;
case 'f':
result = 4;
break;
case 'i':
case 'm':
result = 4;
break;
case... | size_t gmt_grd_data_size (struct GMT_CTRL *GMT, unsigned int format, float *nan_value) {
switch (GMT->session.grdformat[format][1]) {
case 'b':
if (isnan (*nan_value)) *nan_value = CHAR_MIN;
return (sizeof (char));
break;
case 's':
if (isnan (*nan_value)) *nan_value = SHRT_MIN;
return (sizeof (in... | gmt_grd_data_size | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_detrend(GMT_CTRL *GMT, GMT_GRID *Grid, unsigned int mode,
double *coeff) {
signed long nm;
double v5;
size_t v6;
float v7;
float v8;
signed long v9;
double v10;
size_t v11;
float v12;
size_t v13;
double v14;
bool is_complex;
uint32_t col;
uint32_t cola;
ui... | void gmt_grd_detrend (struct GMT_CTRL *GMT, struct GMT_GRID *Grid, unsigned mode, double *coeff) {
unsigned int col, row, one_or_zero, start_component = 0, stop_component = 0, component;
uint64_t ij, offset;
bool is_complex = false;
double x_half_length, one_on_xhl, y_half_length, one_on_yhl;
double sum... | gmt_grd_detrend | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_grd_format_decoder(GMT_CTRL *GMT, const char *code,
unsigned int *type_id) {
int v3;
int v4;
int v5;
unsigned int i;
unsigned int id_candidate;
if (((*__ctype_b_loc())[*code] & 0x800) != 0) {
v3 = atoi(code);
v4 = v3 >> 31;
v5 = v4 ^ v3;
id_candidate = v5 ... | int gmt_grd_format_decoder (struct GMT_CTRL *GMT, const char *code, unsigned int *type_id) {
if (isdigit ((int)code[0])) {
unsigned id_candidate = (unsigned) abs (atoi (code));
if (id_candidate > 0 && id_candidate < GMT_N_GRD_FORMATS) {
*type_id = id_candidate;
return GMT_NOERROR;
}
}
else {
un... | gmt_grd_format_decoder | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_grd_get_format(GMT_CTRL *GMT, char *file, GMT_GRID_HEADER *header,
bool magic) {
size_t v5;
long v6;
bool magica;
int val;
int vala;
int valb;
int choice;
size_t i;
size_t ia;
char *pch;
char *pch_0;
char tmp[4104];
unsigned long v18;
magica = magic;
v18 = _... | int gmt_grd_get_format (struct GMT_CTRL *GMT, char *file, struct GMT_GRID_HEADER *header, bool magic) {
size_t i = 0, j;
int val;
unsigned int direction = (magic) ? GMT_IN : GMT_OUT;
char tmp[GMT_BUFSIZ] = {""};
grdio_grd_parse_xy_units (GMT, header, file, direction);
grdio_expand_filename (GMT,... | gmt_grd_get_format | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_info_syntax(GMT_CTRL *GMT, char option) {
GMT_Message(
GMT->parent, 0,
"\t-%c Append grid header information as one string composed of one or\n",
(unsigned int)option);
GMT_Message(GMT->parent, 0,
"\t more modifiers; items not listed will remain unchanged:\n");
GMT_M... | void gmt_grd_info_syntax (struct GMT_CTRL *GMT, char option) {
GMT_Message (GMT->parent, GMT_TIME_NONE, "\t-%c Append grid header information as one string composed of one or\n", option);
GMT_Message (GMT->parent, GMT_TIME_NONE, "\t more modifiers; items not listed will remain unchanged:\n");
GMT_Message (GMT->p... | gmt_grd_info_syntax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_init(GMT_CTRL *GMT, GMT_GRID_HEADER *header, GMT_OPTION *options,
bool update) {
long v4;
size_t v5;
int argc;
int i;
char **argv;
size_t len;
void *ptr;
GMTAPI_CTRL *API;
char mem[4];
unsigned long v14;
v14 = __readfsqword(0x28u);
if (update) {
memset(header-... | void gmt_grd_init (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, struct GMT_OPTION *options, bool update) {
int i;
if (update)
gmt_M_memset (header->command, GMT_GRID_COMMAND_LEN320, char);
else {
void *ptr = header->index_function;
char mem[4];
gmt_M_memcpy (mem, header->mem_layout, 4, cha... | gmt_grd_init | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_grd_lmsscl(GMT_CTRL *GMT, GMT_GRID *G, GMT_GRID *W, double *mode,
bool overwrite) {
float v5;
float *v6;
uint64_t v7;
float *v8;
uint64_t v9;
float v10;
float v11;
GMT_GRID *v12;
unsigned int GMT_n_multiples;
unsigned int row;
unsigned int col;
unsigned int gmt_m... | double gmt_grd_lmsscl (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_GRID *W, double *mode, bool overwrite) {
uint64_t node, n = 0;
double wmode, lmsscl;
if (W) {
unsigned int row, col;
struct GMT_OBSERVATION *pair = gmt_M_memory (GMT, NULL, G->header->nm, struct GMT_OBSERVATION);
if (mode) {
w... | gmt_grd_lmsscl | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_grd_mad(GMT_CTRL *GMT, GMT_GRID *G, GMT_GRID *W, double *median,
bool overwrite) {
float v5;
float *v6;
uint64_t v7;
float *v8;
uint64_t v9;
float v10;
GMT_GRID *v11;
double v12;
unsigned int row;
unsigned int rowa;
signed int col;
signed int cola;
double wmad;
... | double gmt_grd_mad (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_GRID *W, double *median, bool overwrite) {
uint64_t node, n = 0;
double wmed, wmad;
if (W) {
unsigned int row, col;
struct GMT_OBSERVATION *pair = gmt_M_memory (GMT, NULL, G->header->nm, struct GMT_OBSERVATION);
if (median) {
wme... | gmt_grd_mad | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_grd_mean(GMT_CTRL *GMT, GMT_GRID *G, GMT_GRID *W) {
double v3;
unsigned int row;
unsigned int rowa;
signed int col;
signed int cola;
uint64_t node;
uint64_t nodea;
uint64_t n;
double sum_zw;
double sum_w;
n = 0;
sum_zw = 0.0;
sum_w = 0.0;
if (W) {
for (row = 0; (signed int)G-... | double gmt_grd_mean (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_GRID *W) {
uint64_t node, n = 0;
unsigned int row, col;
double sum_zw = 0.0, sum_w = 0.0;
if (W) {
gmt_M_grd_loop (GMT, G, row, col, node) {
if (gmt_M_is_fnan (G->data[node]) || gmt_M_is_dnan (W->data[node])) continue;
sum_zw += G-... | gmt_grd_mean | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_grd_median(GMT_CTRL *GMT, GMT_GRID *G, GMT_GRID *W, bool overwrite) {
float *v4;
uint64_t v5;
GMT_GRID *v6;
float v7;
unsigned int row;
signed int col;
GMT_GRID *Z;
uint64_t node;
uint64_t n;
double wmed;
GMT_OBSERVATION *pair;
unsigned long v18;
v18 = __readfsqword(0x28u);
n = 0... | double gmt_grd_median (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_GRID *W, bool overwrite) {
uint64_t node, n = 0;
double wmed;
if (W) {
unsigned int row, col;
struct GMT_OBSERVATION *pair = gmt_M_memory (GMT, NULL, G->header->nm, struct GMT_OBSERVATION);
gmt_M_grd_loop (GMT, G, row, col, no... | gmt_grd_median | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_minmax(GMT_CTRL *GMT, GMT_GRID *Grid, double (*xyz)[3]) {
double v3;
uint64_t v4;
double v5;
double v6;
uint64_t v7;
double v8;
unsigned int row;
signed int col;
unsigned int i;
uint64_t ij;
float z_extreme[2];
uint64_t i_minmax[3];
unsigned long v15;
v15 = __readfsqword(0x28u)... | void gmt_grd_minmax (struct GMT_CTRL *GMT, struct GMT_GRID *Grid, double xyz[2][3]) {
unsigned int row, col, i;
uint64_t ij, i_minmax[2] = {0, 0};
float z_extreme[2] = {FLT_MAX, -FLT_MAX};
gmt_M_unused(GMT);
gmt_M_grd_loop (GMT, Grid, row, col, ij) {
if (gmt_M_is_fnan (Grid->data[ij])) continue;
if (Grid->d... | gmt_grd_minmax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_grd_mode(GMT_CTRL *GMT, GMT_GRID *G, GMT_GRID *W, bool overwrite) {
float *v4;
uint64_t v5;
float v6;
GMT_GRID *v7;
unsigned int GMT_n_multiples;
unsigned int row;
unsigned int col;
unsigned int gmt_mode_selection;
double wmode;
GMT_GRID *Z;
uint64_t node;
uint64_t n;
GMT_OBSERVATIO... | double gmt_grd_mode (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_GRID *W, bool overwrite) {
uint64_t node, n = 0;
double wmode;
if (W) {
unsigned int row, col;
struct GMT_OBSERVATION *pair = gmt_M_memory (GMT, NULL, G->header->nm, struct GMT_OBSERVATION);
gmt_M_grd_loop (GMT, G, row, col, nod... | gmt_grd_mode | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_mux_demux(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *data,
unsigned int desired_mode) {
long mx;
uint64_t v5;
uint64_t row;
uint64_t rowa;
uint64_t rowb;
uint64_t rowc;
uint64_t rowd;
uint64_t col;
uint64_t cola;
uint64_t colb;
uint64_t col_1;
uint64_t col... | void gmt_grd_mux_demux (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *data, unsigned int desired_mode) {
uint64_t row, col, col_1, col_2, left_node_1, left_node_2, offset, ij, ij2;
float *array = NULL;
if (! (desired_mode == GMT_GRID_IS_INTERLEAVED || desired_mode == GMT_GRID_IS_SERI... | gmt_grd_mux_demux | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_pad_off(GMT_CTRL *GMT, GMT_GRID *G) {
bool is_complex;
uint64_t nm;
if (G->header->arrangement == 1) {
GMT_Report(GMT->parent, 1u,
"Calling gmt_grd_pad_off on interleaved complex grid! "
"Programming error?\n");
} else if (gmt_grd_pad_status(GMT, G->header, 0)) {
... | void gmt_grd_pad_off (struct GMT_CTRL *GMT, struct GMT_GRID *G) {
bool is_complex;
uint64_t nm;
if (G->header->arrangement == GMT_GRID_IS_INTERLEAVED) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Calling gmt_grd_pad_off on interleaved complex grid! Programming error?\n");
return;
}
if (!gmt_grd_pad_status... | gmt_grd_pad_off | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_pad_on(GMT_CTRL *GMT, GMT_GRID *G, unsigned int *pad) {
unsigned int *v3;
long v4;
bool is_complex;
unsigned long size;
GMT_GRID_HEADER *h;
float *f;
if (G->header->arrangement == 1) {
GMT_Report(GMT->parent, 1u,
"Calling gmt_grd_pad_off on interleaved complex grid! "
... | void gmt_grd_pad_on (struct GMT_CTRL *GMT, struct GMT_GRID *G, unsigned int *pad) {
bool is_complex;
size_t size;
struct GMT_GRID_HEADER *h = NULL;
if (G->header->arrangement == GMT_GRID_IS_INTERLEAVED) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Calling gmt_grd_pad_off on interleaved complex grid! Program... | gmt_grd_pad_on | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_grd_pad_status(GMT_CTRL *GMT, GMT_GRID_HEADER *header,
unsigned int *pad) {
unsigned int side;
unsigned int sidea;
if (pad) {
for (side = 0; side <= 3; ++side) {
if (header->pad[side] != pad[side])
return 0;
}
return 1;
} else {
for (sidea = 0; sid... | bool gmt_grd_pad_status (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, unsigned int *pad) {
unsigned int side;
gmt_M_unused(GMT);
if (pad) {
for (side = 0; side < 4; side++) if (header->pad[side] != pad[side]) return (false);
return (true);
}
else {
for (side = 0; side < 4; side++) if... | gmt_grd_pad_status | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_pad_zero(GMT_CTRL *GMT, GMT_GRID *G) {
bool is_complex;
if (G->header->arrangement == 1) {
GMT_Report(GMT->parent, 1u,
"Calling gmt_grd_pad_off on interleaved complex grid! "
"Programming error?\n");
} else if (gmt_grd_pad_status(GMT, G->header, 0) &&
(... | void gmt_grd_pad_zero (struct GMT_CTRL *GMT, struct GMT_GRID *G) {
bool is_complex;
if (G->header->arrangement == GMT_GRID_IS_INTERLEAVED) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Calling gmt_grd_pad_off on interleaved complex grid! Programming error?\n");
return;
}
if (!gmt_grd_pad_status (GMT, G->heade... | gmt_grd_pad_zero | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_grd_prep_io(GMT_CTRL *GMT, GMT_GRID_HEADER *header, double *wesn,
unsigned int *width, unsigned int *height, int *first_col,
int *last_col, int *first_row, int *last_row,
unsigned int **index) {
long v10;
int v12;
double v13;
double v14;
doub... | int gmt_grd_prep_io (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, double wesn[], unsigned int *width, unsigned int *height, int *first_col, int *last_col, int *first_row, int *last_row, unsigned int **index) {
bool geo = false;
unsigned int one_or_zero, col, *actual_col = NULL;
double small = 0.1, ... | gmt_grd_prep_io | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_grd_project(GMT_CTRL *GMT, GMT_GRID *I, GMT_GRID *O, bool inverse) {
uint32_t v5;
float v6;
float v7;
float z_min;
float z_max;
int col_in;
int col_ina;
int col_inb;
int row_in;
int row_ina;
int row_inb;
int col_out;
int col_outa;
int col_outb;
int col_outc;
int col_outd;
int c... | int gmt_grd_project (struct GMT_CTRL *GMT, struct GMT_GRID *I, struct GMT_GRID *O, bool inverse) {
int col_in, row_in, col_out, row_out;
uint64_t ij_in, ij_out;
short int *nz = NULL;
double x_proj = 0.0, y_proj = 0.0, z_int, inv_nz;
double *x_in = NULL, *x_out = NULL, *x_in_proj = NULL, *x_out... | gmt_grd_project | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_grd_rms(GMT_CTRL *GMT, GMT_GRID *G, GMT_GRID *W) {
double v3;
unsigned int row;
unsigned int rowa;
signed int col;
signed int cola;
uint64_t node;
uint64_t nodea;
uint64_t n;
double sum_z2w;
double sum_w;
n = 0;
sum_z2w = 0.0;
sum_w = 0.0;
if (W) {
for (row = 0; (signed int)G... | double gmt_grd_rms (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_GRID *W) {
uint64_t node, n = 0;
unsigned int row, col;
double rms, sum_z2w = 0.0, sum_w = 0.0;
if (W) {
gmt_M_grd_loop (GMT, G, row, col, node) {
if (gmt_M_is_fnan (G->data[node]) || gmt_M_is_dnan (W->data[node])) continue;
sum_z2w... | gmt_grd_rms | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_set_ij_inc(GMT_CTRL *GMT, unsigned int n_columns, int *ij_inc) {
*ij_inc = 0;
ij_inc[1] = 1;
ij_inc[2] = 1 - n_columns;
ij_inc[3] = -n_columns;
} | void gmt_grd_set_ij_inc (struct GMT_CTRL *GMT, unsigned int n_columns, int *ij_inc) {
int s_nx = n_columns;
gmt_M_unused(GMT);
ij_inc[0] = 0;
ij_inc[1] = 1;
ij_inc[2] = 1 - s_nx;
ij_inc[3] = -s_nx;
} | gmt_grd_set_ij_inc | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_grd_setregion(GMT_CTRL *GMT, GMT_GRID_HEADER *h, double *wesn,
unsigned int interpolant) {
bool v4;
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 v18;
double v... | int gmt_grd_setregion (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, double *wesn, unsigned int interpolant) {
bool grid_global;
double shift_x, x_range, off;
grid_global = gmt_M_grd_is_global (GMT, h);
switch (interpolant) {
case BCR_BILINEAR:
off = 0.0;
break;
case BCR_BSPLINE:... | gmt_grd_setregion | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_shift(GMT_CTRL *GMT, GMT_GRID *G, double shift) {
bool gridline;
uint32_t row;
unsigned int n_warn;
int col;
int actual_col;
int n_shift;
_BYTE width[12];
uint64_t ij;
n_warn = 0;
n_shift = lrint(G->header->r_inc[0] * shift);
*(_QWORD *)width = (unsigned int)lrint(G->header->r_inc[0]... | void gmt_grd_shift (struct GMT_CTRL *GMT, struct GMT_GRID *G, double shift) {
unsigned int row, n_warn = 0;
int col, n_shift, width, actual_col;
bool gridline;
uint64_t ij;
float *tmp = NULL;
n_shift = irint (shift * G->header->r_inc[GMT_X]);
width = irint (360.0 * G->header->r_inc[GMT_X]);
if (width > (i... | gmt_grd_shift | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_grd_std(GMT_CTRL *GMT, GMT_GRID *G, GMT_GRID *W) {
double v4;
double v5;
double v6;
double v7;
double v8;
unsigned int row;
unsigned int rowa;
signed int col;
signed int cola;
uint64_t node;
uint64_t nodea;
uint64_t n;
double mean;
double sumw;
double M2;
double deltaa;
doub... | double gmt_grd_std (struct GMT_CTRL *GMT, struct GMT_GRID *G, struct GMT_GRID *W) {
uint64_t node, n = 0;
unsigned int row, col;
double std, mean = 0.0, delta, sumw = 0.0;
if (W) {
double temp, R, M2 = 0.0;
gmt_M_grd_loop (GMT, G, row, col, node) {
if (gmt_M_is_fnan (G->data[node]) || gmt_M_is_dnan (W->da... | gmt_grd_std | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grd_zminmax(GMT_CTRL *GMT, GMT_GRID_HEADER *h, float *z) {
double z_min;
double z_max;
uint32_t row;
uint32_t col;
uint64_t node;
uint64_t n;
n = 0;
h->z_min = 1.797693134862316e308;
h->z_max = -1.797693134862316e308;
for (row = 0; row < h->n_rows; ++row) {
col = 0;
node = h->mx * ... | void gmt_grd_zminmax (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *h, float *z) {
unsigned int row, col;
uint64_t node, n = 0;
h->z_min = DBL_MAX; h->z_max = -DBL_MAX;
for (row = 0; row < h->n_rows; row++) {
for (col = 0, node = gmt_M_ijp (h, row, 0); col < h->n_columns; col++, node++) {
if (isnan (z[node]... | gmt_grd_zminmax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char **gmt_grdformats_sorted(GMT_CTRL *Ctrl) {
if (!sorted_1) {
memcpy(formats_sorted_0, Ctrl->session.grdformat, sizeof(formats_sorted_0));
qsort(&formats_sorted_0[1], 0x18u, 8u,
(__compar_fn_t)customio_compare_grd_fmt_strings);
sorted_1 = 1;
}
return formats_sorted_0;
} | char **gmt_grdformats_sorted (struct GMT_CTRL *Ctrl) {
static char *formats_sorted[GMT_N_GRD_FORMATS];
static bool sorted = false;
if (sorted)
return formats_sorted;
memcpy (formats_sorted, Ctrl->session.grdformat, GMT_N_GRD_FORMATS * sizeof(char*));
qsort (formats_sorted + 1, GMT_N_GRD_FORMATS - 1, sizeof... | gmt_grdformats_sorted | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grdio_init(GMT_CTRL *GMT) {
GMT->session.grdformat[0] = "Unknown grid format";
GMT->session.readinfo[0] =
(int (*)(GMT_CTRL *, GMT_GRID_HEADER *))gmt_dummy_grd_info;
GMT->session.updateinfo[0] =
(int (*)(GMT_CTRL *, GMT_GRID_HEADER *))gmt_dummy_grd_info;
GMT->session.writeinfo[0] =
(i... | void gmt_grdio_init (struct GMT_CTRL *GMT) {
unsigned int id;
id = k_grd_unknown_fmt;
GMT->session.grdformat[id] = "Unknown grid format";
GMT->session.readinfo[id] = &gmt_dummy_grd_info;
GMT->session.updateinfo[id] = &gmt_dummy_grd_info;
GMT->session.writeinfo[id] = &gmt_dummy_grd_i... | gmt_grdio_init | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int gmt_grdspiral_search(GMT_CTRL *GMT, GMT_ZSEARCH *S, double x,
double y) {
uint32_t n_rows;
bool v5;
long v6;
double v7;
double v8;
bool found;
unsigned int T;
unsigned int B;
unsigned int L;
unsigned int R;
int64_t step;
int64_t d_col;
int64_t col... | GMT_LOCAL unsigned int gmt_grdspiral_search (struct GMT_CTRL *GMT, struct GMT_ZSEARCH *S, double x, double y) {
unsigned int T, B, L, R;
int64_t t_row, b_row, l_col, r_col, step = 0, col0, row0;
bool done = false, found = false;
col0 = gmt_M_grd_x_to_col (GMT, x, S->C->G->header);
row0 = gmt_M_grd_y_to_row (... | gmt_grdspiral_search | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_great_circle_dist_meter(GMT_CTRL *GMT, double lon1, double lat1,
double lon2, double lat2) {
return j_gmtlib_great_circle_dist_degree(GMT, lon1, lat1, lon2, lat2) *
GMT->current.proj.DIST_M_PR_DEG;
} | double gmt_great_circle_dist_meter (struct GMT_CTRL *GMT, double lon1, double lat1, double lon2, double lat2) {
return (gmtlib_great_circle_dist_degree (GMT, lon1, lat1, lon2, lat2) * GMT->current.proj.DIST_M_PR_DEG);
} | gmt_great_circle_dist_meter | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_grinten(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
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 cosx;
double sinx;
double *ya;
double *xa;
dou... | void gmt_grinten (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double flat, A, A2, G, P, P2, Q, P2A2, i_P2A2, GP2, c, s, theta;
flat = fabs (lat);
if (flat > (90.0 - GMT_PROJ_CONV_LIMIT)) {
*x = 0.0;
*y = M_PI * copysign (GMT->current.proj.EQ_RAD, lat);
return;
}
if (doubleAlmost... | gmt_grinten | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
char *gmt_guess_sharedir(char *sharedir, const char *runtime_bindir) {
if (!sharedir_from_runtime_libdir(sharedir) &&
!sharedir_from_runtime_bindir(sharedir, runtime_bindir))
return 0;
if (gmt_verify_sharedir_version(sharedir))
return sharedir;
return 0;
} | char *gmt_guess_sharedir (char *sharedir, const char *runtime_bindir) {
if (sharedir_from_runtime_libdir (sharedir) == NULL) {
if (sharedir_from_runtime_bindir (sharedir, runtime_bindir) == NULL)
return NULL;
}
#ifdef DEBUG_RUNPATH
fprintf (stderr, "guessed share dir '%s'.\n", sharedir);
#endif
if ( g... | gmt_guess_sharedir | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_hammer(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double v5;
double cosx;
double sinx;
double *ya;
double *xa;
double lata;
double lona;
GMT_CTRL *GMTa;
double slat;
double clat;
double slon;
double clon;
double D;
unsigned long v18;
GMTa = GMT;
lona = lon;
... | void gmt_hammer (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) {
double slat, clat, slon, clon, D;
if (doubleAlmostEqual (fabs (lat), 90.0)) {
*x = 0.0;
*y = M_SQRT2 * copysign (GMT->current.proj.EQ_RAD, lat);
return;
}
gmt_M_wind_lon (GMT, lon)
if (GMT->current.proj.GMT_convert_l... | gmt_hammer | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_handle5_plussign(GMT_CTRL *GMT, char *in, char *mods,
unsigned int way) {
char *c;
char *ca;
const char *cb;
char *cc;
if (in && *in) {
if (way) {
gmt_strrepc(in, 1, 43);
} else {
for (c = in;; *c = 1) {
ca = strstr(c, "@+");
if (!ca)
... | void gmt_handle5_plussign (struct GMT_CTRL *GMT, char *in, char *mods, unsigned way) {
gmt_M_unused(GMT);
if (in == NULL || in[0] == '\0') return;
if (way == 0) {
char *c = in;
for ( ;; ) {
c = strstr (c, "@+");
if (c == NULL) break;
++c;
*c = 1;
}
c = in;
for ( ;; ) {
c = strchr (c, ... | gmt_handle5_plussign | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_hash_init(GMT_CTRL *GMT, GMT_HASH *hashnode, char **keys,
unsigned int n_hash, unsigned int n_keys) {
unsigned int i;
int entry;
unsigned int next;
memset(hashnode, 0, 200LL * n_hash);
for (i = 0; i < n_keys; ++i) {
entry = gmtinit_hash(GMT, keys[i], n_hash);
next = hashnode... | int gmt_hash_init (struct GMT_CTRL *GMT, struct GMT_HASH *hashnode, char **keys, unsigned int n_hash, unsigned int n_keys) {
unsigned int i, next;
int entry;
gmt_M_memset (hashnode, n_hash, struct GMT_HASH);
for (i = 0; i < n_keys; i++) {
entry = gmtinit_hash (GMT, keys[i], n_hash);
next = hashnode[entry].n_i... | gmt_hash_init | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_hash_lookup(GMT_CTRL *GMT, const char *key, GMT_HASH *hashnode,
unsigned int n, unsigned int n_hash) {
unsigned int k;
signed int i;
i = gmtinit_hash(GMT, key, n_hash);
if (i < 0 || i >= n)
return -1;
if (!hashnode[i].n_id)
return -1;
for (k = 0; k < hashnode[i].n_id && ... | int gmt_hash_lookup (struct GMT_CTRL *GMT, const char *key, struct GMT_HASH *hashnode, unsigned int n, unsigned int n_hash) {
int i;
unsigned int ui, k;
i = gmtinit_hash (GMT, key, n_hash);
if (i < 0 || (ui = i) >= n) return (-1);
if (hashnode[ui].n_id == 0) return (-1);
k = 0;
while (k < hashnode[ui].n... | gmt_hash_lookup | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_i0(GMT_CTRL *GMT, double x) {
double v2;
double xa;
double y;
xa = x;
if (x < 0.0)
xa = -x;
if (xa < 3.75)
return (((((xa * xa / 14.0625 * 0.0045813 + 0.0360768) *
(xa * xa / 14.0625) +
0.2659732) *
(xa * xa / 14.0625) +
1... | double gmt_i0 (struct GMT_CTRL *GMT, double x) {
double y, res;
gmt_M_unused(GMT);
if (x < 0.0) x = -x;
if (x < 3.75) {
y = x * x / 14.0625;
res = 1.0 + y * (3.5156229 + y * (3.0899424 + y * (1.2067492 + y * (0.2659732 + y * (0.360768e-1 + y * 0.45813e-2)))));
}
else {
y = 3.75 / x;
res = (exp (x) / sq... | gmt_i0 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_i1(GMT_CTRL *GMT, double x) {
double v2;
double xa;
double res;
double y;
double ya;
xa = x;
if (x < 0.0)
xa = -x;
if (xa >= 3.75) {
ya = 3.75 / xa;
v2 = exp(xa);
res = ((((((((0.01787654 - ya * 0.00420059) * ya - 0.02895312) * ya +
0.02282967) *
... | double gmt_i1 (struct GMT_CTRL *GMT, double x) {
double y, res;
gmt_M_unused(GMT);
if (x < 0.0) x = -x;
if (x < 3.75) {
y = pow (x / 3.75, 2.0);
res = x * (0.5 + y * (0.87890594 + y * (0.51498869 + y * (0.15084934 + y * (0.02658733 + y * (0.00301532 + y * 0.00032411))))));
}
else {
y = 3.75 / x;
res = ... | gmt_i1 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ialbers(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double v6;
double v7;
double i_half_ECC;
double v9;
double v10;
double cosx;
double sinx;
double ya;
double xa;
double *lata;
double *lona;
GMT_CTRL *GMTa;
int n_iter;
double s;
double c;
double ... | void gmt_ialbers (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
int n_iter;
double theta, rho, q, phi, phi0, s, c, s2, ex_1, delta, r;
theta = (GMT->current.proj.a_n < 0.0) ? d_atan2 (-x, y - GMT->current.proj.a_rho0) : d_atan2 (x, GMT->current.proj.a_rho0 - y);
rho = hypot (x, GMT->curr... | gmt_ialbers | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ialbers_sph(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
double v5;
double v6;
double theta;
double A;
if (GMT->current.proj.a_n >= 0.0) {
if (*(double *)((char *)&loc_12CA88 + (_QWORD)GMT) - y == 0.0 && x == 0.0)
v5 = 0.0;
else
v5 = atan2(x... | void gmt_ialbers_sph (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double theta, A, dy;
theta = (GMT->current.proj.a_n < 0.0) ? d_atan2 (-x, y - GMT->current.proj.a_rho0) : d_atan2 (x, GMT->current.proj.a_rho0 - y);
dy = GMT->current.proj.a_rho0 - y;
A = (x * x + dy * dy) * GMT->current... | gmt_ialbers_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_iazeqdist(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 sin_c;
double cos_c;
double rho;
unsigned long v17;
GMTa = GMT;
lon... | void gmt_iazeqdist (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double rho, sin_c, cos_c;
x *= GMT->current.proj.i_EQ_RAD;
y *= GMT->current.proj.i_EQ_RAD;
rho = hypot (x, y);
if (rho > GMT->current.proj.rho_max) {
*lat = *lon = GMT->session.d_NaN;
return;
}
sincos (rho, &sin_c,... | gmt_iazeqdist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_icassini(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double v6;
double v7;
double cosx;
double sinx;
double ya;
double xa;
double *lata;
double *lona;
GMT_CTRL *GMTa;
double s;
double c;
double M1;
double u1;
double u2;
double phi1;
double tany;
... | void gmt_icassini (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double M1, u1, u2, s, c, phi1, tany, T1, N1, R_1, D, S2, D2, D3;
M1 = GMT->current.proj.c_M0 + y;
u1 = M1 * GMT->current.proj.c_i1;
u2 = 2.0 * u1;
sincos (u2, &s, &c);
phi1 = u1 + s * (GMT->current.proj.c_i2 + c * (GMT->c... | gmt_icassini | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_icassini_sph(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
double v5;
double v6;
double central_meridian;
double cosx;
double sinx;
double ya;
double xa;
double *lata;
double *lona;
GMT_CTRL *GMTa;
double sD;
double cD;
double cx_0;
double sx;
... | void gmt_icassini_sph (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double D, sD, cD, cx, tx, sx;
x *= GMT->current.proj.i_EQ_RAD;
D = y * GMT->current.proj.i_EQ_RAD + GMT->current.proj.c_p;
sincos (D, &sD, &cD);
sincos (x, &sx, &cx);
tx = sx / cx;
*lat = d_asind (sD * cx);
*lon = G... | gmt_icassini_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_icyleq(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double ya;
double xa;
xa = x;
ya = y;
if (GMT->current.proj.GMT_convert_latitudes) {
xa = GMT->current.proj.iDx * x;
ya = GMT->current.proj.iDy * y;
}
*lon = GMT->current.proj.central_meridian +
*... | void gmt_icyleq (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
if (GMT->current.proj.GMT_convert_latitudes) {
x *= GMT->current.proj.iDx;
y *= GMT->current.proj.iDy;
}
*lon = x * GMT->current.proj.j_ix + GMT->current.proj.central_meridian;
*lat = d_asind (y * GMT->current.proj.j_iy);... | gmt_icyleq | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_icyleqdist(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
*lon = GMT->current.proj.central_meridian +
*(double *)((char *)&loc_12CA48 + (_QWORD)GMT) * x;
*lat = GMT->current.proj.j_iy * y;
} | void gmt_icyleqdist (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
*lon = x * GMT->current.proj.j_ix + GMT->current.proj.central_meridian;
*lat = y * GMT->current.proj.j_iy;
} | gmt_icyleqdist | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_icylstereo(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
double v5;
*lon = GMT->current.proj.central_meridian +
*(double *)((char *)&loc_12CA48 + (_QWORD)GMT) * x;
v5 = atan(GMT->current.proj.j_iy * y);
*lat = v5 * 57.29577951308232 + v5 * 57.2957795130823... | void gmt_icylstereo (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
*lon = x * GMT->current.proj.j_ix + GMT->current.proj.central_meridian;
*lat = 2.0 * atand (y * GMT->current.proj.j_iy);
} | gmt_icylstereo | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ieckert4(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double v6;
double s;
double phi;
double c;
s = GMT->current.proj.k4_iy * y;
if (fabs(s) < 1.0)
v5 = asin(s);
else
v5 = copysign(1.570796326794897, s);
phi = v5;
c = cos(v5);
*lon = GMT->current.pro... | void gmt_ieckert4 (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double phi, s, c;
s = y * GMT->current.proj.k4_iy;
phi = d_asin (s);
c = cos (phi);
*lon = R2D * x * GMT->current.proj.k4_ix / (1.0 + c);
if (fabs (*lon) > 180.0) {
*lat = *lon = GMT->session.d_NaN;
return;
}
*lon ... | gmt_ieckert4 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ieckert6(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 c;
double s;
double phi;
unsigned long v17;
GMTa = GMT;
lona = lon;
lata = lat;
xa ... | void gmt_ieckert6 (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double phi, c, s;
phi = 0.5 * y * GMT->current.proj.k6_ir;
sincos (phi, &s, &c);
*lon = R2D * x * GMT->current.proj.k6_ir / (1.0 + c);
if (fabs (*lon) > 180.0) {
*lat = *lon = GMT->session.d_NaN;
return;
}
*lon += G... | gmt_ieckert6 | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ieconic(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double rho;
rho = hypot(x, GMT->current.proj.d_rho0 - y);
if (GMT->current.proj.d_n >= 0.0) {
if (GMT->current.proj.d_rho0 - y == 0.0 && x == 0.0)
v5 = 0.0;
else
v5 = atan2(x, GMT->current.proj.d_rho0... | void gmt_ieconic (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double rho, theta;
rho = hypot (x, GMT->current.proj.d_rho0 - y);
if (GMT->current.proj.d_n < 0.0) rho = -rho;
theta = (GMT->current.proj.d_n < 0.0) ? d_atan2 (-x, y - GMT->current.proj.d_rho0) : d_atan2 (x, GMT->current.pro... | gmt_ieconic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_igenper(GMT_CTRL *GMT, double *lon, double *lat, double xt,
double yt) {
double v5;
double v6;
double v7;
double v8;
double yta;
double x;
double y;
double rho;
double H;
double R;
double P;
double M;
double Q;
double con;
double com;
double sin_c;
double sin_... | void gmt_igenper (struct GMT_CTRL *GMT, double *lon, double *lat, double xt, double yt) {
double H, P, R;
double sin_c, cos_c;
double x, y;
double M, Q;
double con, com, rho;
H = GMT->current.proj.g_H;
R = GMT->current.proj.g_R;
P = GMT->current.proj.g_P;
x = xt;
y = yt;
xt = (x * GMT->current.proj.g_cos_... | gmt_igenper | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ignomonic(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
double v5;
double v6;
double v7;
double v8;
double ya;
double xa;
double rho;
double c;
xa = GMT->current.proj.i_EQ_RAD * x;
ya = GMT->current.proj.i_EQ_RAD * y;
rho = hypot(xa, ya);
if (rho <= ... | void gmt_ignomonic (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double rho, c;
x *= GMT->current.proj.i_EQ_RAD;
y *= GMT->current.proj.i_EQ_RAD;
rho = hypot (x, y);
if (rho > GMT->current.proj.rho_max) {
*lat = *lon = GMT->session.d_NaN;
return;
}
c = atan (rho);
*lat = d_asind ... | gmt_ignomonic | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_igrinten(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double v6;
double v7;
double v8;
double ya;
double xa;
double x2;
double y2;
double x2y2;
double c1;
double c2;
double c3;
double d;
double a1;
double m1;
double theta1;
xa = GMT->current.proj.... | void gmt_igrinten (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double x2, c1, x2y2, y2, c2, c3, d, a1, m1, theta1, p;
x *= GMT->current.proj.v_ir;
y *= GMT->current.proj.v_ir;
x2 = x * x; y2 = y * y;
x2y2 = x2 + y2;
if (x2y2 > 1.0) {
*lat = *lon = GMT->session.d_NaN;
return;
}
... | gmt_igrinten | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ihammer(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double xa;
double rho;
double a;
double cos_c;
double sin_c;
xa = 0.5 * x;
rho = hypot(0.5 * x, y);
a = GMT->current.proj.i_EQ_RAD * (rho * 0.5) *
(GMT->current.proj.i_EQ_RAD * (rho * 0.5));
cos_c = 1.0... | void gmt_ihammer (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double rho, a, sin_c, cos_c;
x *= 0.5;
rho = hypot (x, y);
a = 0.5 * rho * GMT->current.proj.i_EQ_RAD;
a *= a;
cos_c = 1.0 - 2.0 * a;
if (cos_c < -GMT_PROJ_CONV_LIMIT) {
*lat = *lon = GMT->session.d_N... | gmt_ihammer | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ilamb(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double v6;
double v7;
double v8;
double l_N;
double ECC;
int i;
double tphi;
double phi;
double dy;
double rho;
double t;
double r;
dy = GMT->current.proj.l_rho0 - y;
if (GMT->current.proj.l_N >= 0.0)... | void gmt_ilamb (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
int i;
double theta, rho, t, tphi, phi, dy, r;
dy = GMT->current.proj.l_rho0 - y;
theta = (GMT->current.proj.l_N < 0.0) ? d_atan2 (-x, -dy) : d_atan2 (x, dy);
*lon = theta * GMT->current.proj.l_i_Nr + GMT->current.proj.central_m... | gmt_ilamb | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ilamb_sph(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
double v5;
double v6;
double v7;
double v8;
double l_N;
double dy;
double rho;
dy = GMT->current.proj.l_rho0 - y;
if (GMT->current.proj.l_N >= 0.0) {
if (dy == 0.0 && x == 0.0)
v5 = 0.0;
... | void gmt_ilamb_sph (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double theta, rho, t, dy;
dy = GMT->current.proj.l_rho0 - y;
theta = (GMT->current.proj.l_N < 0.0) ? d_atan2 (-x, -dy) : d_atan2 (x, dy);
*lon = theta * GMT->current.proj.l_i_Nr + GMT->current.proj.central_meridian;
rho = c... | gmt_ilamb_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_ilambeq(GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double v5;
double v6;
double ya;
double xa;
double rho;
double a;
double cos_c;
double sin_c;
xa = x;
ya = y;
if (GMT->current.proj.GMT_convert_latitudes) {
xa = GMT->current.proj.iDx * x;
ya = GMT->current.pr... | void gmt_ilambeq (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double rho, a, sin_c, cos_c;
if (GMT->current.proj.GMT_convert_latitudes) {
x *= GMT->current.proj.iDx;
y *= GMT->current.proj.iDy;
}
rho = hypot (x, y);
if (rho > GMT->current.proj.rho_max) {
*lat = *lon = GMT->s... | gmt_ilambeq | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_imerc_sph(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
double v5;
*lon = GMT->current.proj.central_meridian +
*(double *)((char *)&loc_12CA48 + (_QWORD)GMT) * x * 57.29577951308232;
v5 = sinh(*(double *)((char *)&loc_12CA48 + (_QWORD)GMT) * y);
*lat = atan... | void gmt_imerc_sph (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
*lon = x * GMT->current.proj.j_ix * R2D + GMT->current.proj.central_meridian;
*lat = atand (sinh (y * GMT->current.proj.j_ix));
if (GMT->current.proj.GMT_convert_latitudes) *lat = gmt_M_latc_to_latg (GMT, *lat);
} | gmt_imerc_sph | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_img_project(GMT_CTRL *GMT, GMT_IMAGE *I, GMT_IMAGE *O, bool inverse) {
uint32_t v5;
double v6;
unsigned char v7;
double v8;
unsigned char v9;
int col_in;
int col_ina;
int col_inb;
int row_in;
int row_ina;
int row_inb;
int col_out;
int col_outa;
int col_outb;
int col_outc;
int row... | int gmt_img_project (struct GMT_CTRL *GMT, struct GMT_IMAGE *I, struct GMT_IMAGE *O, bool inverse) {
int col_in, row_in, col_out, row_out, b, nb = I->header->n_bands;
uint64_t ij_in, ij_out;
short int *nz = NULL;
double x_proj = 0.0, y_proj = 0.0, inv_nz, rgb[4];
double *x_in = NULL, *x_out ... | gmt_img_project | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_img_syntax(GMT_CTRL *GMT) {
gmt_message(GMT, "\t Give filename and append comma-separated scale, "
"mode, and optionally max latitude.\n");
gmt_message(GMT, "\t The scale (typically 0.1 or 1) is used to multiply "
"after read; give mode as follows:\n");
gmt... | void gmt_img_syntax (struct GMT_CTRL *GMT) {
gmt_message (GMT, "\t Give filename and append comma-separated scale, mode, and optionally max latitude.\n");
gmt_message (GMT, "\t The scale (typically 0.1 or 1) is used to multiply after read; give mode as follows:\n");
gmt_message (GMT, "\t 0 = img fil... | gmt_img_syntax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_imollweide(GMT_CTRL *GMT, double *lon, double *lat, double x,
double y) {
double v5;
double w_x;
double phi;
phi = asin(*(double *)((char *)&loc_12C098 + (_QWORD)GMT) * y);
w_x = GMT->current.proj.w_x;
*lon = x / (w_x * cos(phi));
if (fabs(*lon) <= 180.0) {
*lon = GMT->cu... | void gmt_imollweide (struct GMT_CTRL *GMT, double *lon, double *lat, double x, double y) {
double phi, phi2;
phi = asin (y * GMT->current.proj.w_iy);
*lon = x / (GMT->current.proj.w_x * cos(phi));
if (fabs (*lon) > 180.0) {
*lat = *lon = GMT->session.d_NaN;
return;
}
*lon += GMT->current.proj.central_meri... | gmt_imollweide | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
double gmt_in(GMT_CTRL *GMT, unsigned int n, double x) {
double v4;
signed int j;
double res;
double resa;
double bip;
double bi;
double tox;
double bim;
if (!n)
return gmt_i0(GMT, x);
if (n == 1)
return gmt_i1(GMT, x);
if (x == 0.0)
return 0.0;
tox = 2.0 / fabs(x);
res = 0.0;
b... | double gmt_in (struct GMT_CTRL *GMT, unsigned int n, double x) {
unsigned int j, m, IACC = 40;
double res, tox, bip, bi, bim;
double BIGNO = 1.0e10, BIGNI = 1.0e-10;
if (n == 0) return (gmt_i0 (GMT, x));
if (n == 1) return (gmt_i1 (GMT, x));
if (x == 0.0) return (0.0);
tox = 2.0 / fabs (x);
bip = res = 0.0... | gmt_in | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_inc_syntax(GMT_CTRL *GMT, char option, bool error) {
if (error)
GMT_Report(GMT->parent, 1u, "Syntax error -%c option. Correct syntax:\n",
(unsigned int)option);
gmt_message(
GMT, "\t-%c Specify increment(s) and optionally append units or flags.\n",
(unsigned int)option);
g... | void gmt_inc_syntax (struct GMT_CTRL *GMT, char option, bool error) {
if (error) GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -%c option. Correct syntax:\n", option);
gmt_message (GMT, "\t-%c Specify increment(s) and optionally append units or flags.\n", option);
gmt_message (GMT, "\t Full syntax is <xi... | gmt_inc_syntax | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_init_B(GMT_CTRL *GMT) {
unsigned int no;
unsigned int k;
for (no = 0; no <= 2; ++no) {
memset(&GMT->current.map.frame.axis[no], 0,
sizeof(GMT->current.map.frame.axis[no]));
GMT->current.map.frame.axis[no].id = no;
for (k = 0; k <= 5; ++k)
GMT->current.map.frame.axis[no].item... | void gmt_init_B (struct GMT_CTRL *GMT) {
unsigned int no, k;
for (no = 0; no < 3; no++) {
gmt_M_memset (&GMT->current.map.frame.axis[no], 1, struct GMT_PLOT_AXIS);
GMT->current.map.frame.axis[no].id = no;
for (k = 0; k < 6; k++) GMT->current.map.frame.axis[no].item[k].parent = no;
if (GMT->current.proj.xyz_pr... | gmt_init_B | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_init_br(GMT_CTRL *GMT, char which, char res, GMT_BR *c, double *wesn) {
double v6;
double v7;
double v8;
double v9;
int i;
int ia;
int ib;
int nb;
int this_west;
int err;
int erra;
int errb;
int errc;
int errd;
int erre;
int errf;
int errg;
int errh;
int erri;
int errj;
... | int gmt_init_br (struct GMT_CTRL *GMT, char which, char res, struct GMT_BR *c, double wesn[]) {
int i, nb, idiv, iw, ie, is, in, this_south, this_west, err;
short *stmp = NULL;
int *itmp = NULL;
size_t start[1], count[1];
char stem[GMT_LEN64] = {""}, path[GMT_BUFSIZ] = {""};
gmt_M_memset (c, 1, struct GMT_BR... | gmt_init_br | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
unsigned int gmt_init_distaz(GMT_CTRL *GMT, char unit, unsigned int mode,
unsigned int type) {
unsigned int result;
unsigned int proj_type;
proj_type = 0;
if (strchr("dmsefkMnu", unit) && (GMT->current.io.col_type[0][0] != 4 ||
GMT->current.io.co... | unsigned int gmt_init_distaz (struct GMT_CTRL *GMT, char unit, unsigned int mode, unsigned int type) {
unsigned int proj_type = GMT_GEOGRAPHIC;
if (strchr (GMT_LEN_UNITS, unit) && !gmt_M_is_geographic (GMT, GMT_IN)) {
gmt_parse_common_options (GMT, "f", 'f', "g");
GMT_Report (GMT->parent, GMT_MSG... | gmt_init_distaz | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_init_io_columns(GMT_CTRL *GMT, unsigned int dir) {
unsigned int i;
unsigned int ia;
for (i = 0; i <= 0xFFF; ++i) {
GMT->current.io.col[(unsigned long)dir][i].order = i;
GMT->current.io.col[(unsigned long)dir][i].col =
GMT->current.io.col[(unsigned long)dir][i].order;
}
if (dir != 1) ... | void gmt_init_io_columns (struct GMT_CTRL *GMT, unsigned int dir) {
unsigned int i;
for (i = 0; i < GMT_MAX_COLUMNS; i++) GMT->current.io.col[dir][i].col = GMT->current.io.col[dir][i].order = i;
if (dir == GMT_OUT) return;
for (i = 0; i < GMT_MAX_COLUMNS; i++) GMT->current.io.col_skip[i] = false;
} | gmt_init_io_columns | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
GMT_CTRL *gmt_init_module(GMTAPI_CTRL *API, const char *lib_name,
const char *mod_name, const char *keys,
const char *required, GMT_OPTION **options,
GMT_CTRL **Ccopy) {
GMT_CTRL *GMT;
bool got_R;
bool got_J;
unsigned int n_errors;
... | struct GMT_CTRL *gmt_init_module (struct GMTAPI_CTRL *API, const char *lib_name, const char *mod_name, const char *keys, const char *required, struct GMT_OPTION **options, struct GMT_CTRL **Ccopy) {
API->error = GMT_NOERROR;
if (API->GMT->current.setting.run_mode == GMT_MODERN) {
unsigned i... | gmt_init_module | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_init_scales(GMT_CTRL *GMT, unsigned int unit, double *fwd_scale,
double *inv_scale, double *inch_to_unit,
double *unit_to_inch, char *unit_name) {
unsigned int proj_length_unit;
if (unit <= 8) {
proj_length_unit = GMT->current.setting.proj_length_unit;
if (pr... | int gmt_init_scales (struct GMT_CTRL *GMT, unsigned int unit, double *fwd_scale, double *inv_scale, double *inch_to_unit, double *unit_to_inch, char *unit_name) {
if (unit >= GMT_N_UNITS) {
GMT_Report (GMT->parent, GMT_MSG_NORMAL, "GMT ERROR: Unit id must be 0-%d\n", GMT_N_UNITS-1);
GMT_exit (GMT, GMT... | gmt_init_scales | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_init_shore(GMT_CTRL *GMT, char res, GMT_SHORE *c, double *wesn,
GMT_SHORE_SELECT *info) {
const char *v6;
int high;
double v8;
double v9;
double v10;
double v11;
double v12;
bool int_areas;
bool two_Antarcticas;
int i;
int ia;
int ib;
int ic;
int id;
int nb;
in... | int gmt_init_shore (struct GMT_CTRL *GMT, char res, struct GMT_SHORE *c, double wesn[], struct GMT_SHORE_SELECT *info) {
int i, nb, idiv, iw, ie, is, in, i_ant, this_south, this_west, this_north, err;
bool int_areas = false, two_Antarcticas = false;
short *stmp = NULL;
int *itmp = NULL;
size_t start[1], count[... | gmt_init_shore | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_init_time_system_structure(GMT_CTRL *GMT,
GMT_TIME_SYSTEM *time_system) {
int error;
error = 0;
switch (time_system->unit) {
case 'C':
case 'c':
if (*(_DWORD *)((char *)strncmp + (_QWORD)GMT) > 4u) {
error = 1;
} else {
GMT_Report(GMT->parent, 3u... | int gmt_init_time_system_structure (struct GMT_CTRL *GMT, struct GMT_TIME_SYSTEM *time_system) {
int error = GMT_NOERROR;
switch (time_system->unit) {
case 'y':
case 'Y':
time_system->scale = GMT_YR2SEC_F;
break;
case 'o':
case 'O':
time_system->scale = GMT_MON2SEC_F;
break;
... | gmt_init_time_system_structure | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_init_vector_param(GMT_CTRL *GMT, GMT_SYMBOL *S, bool set, bool outline,
GMT_PEN *pen, bool do_fill, GMT_FILL *fill) {
double v7;
double v8;
double v9;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
long v16;
long v17;
double v18;
double v19;
dou... | int gmt_init_vector_param (struct GMT_CTRL *GMT, struct GMT_SYMBOL *S, bool set, bool outline, struct GMT_PEN *pen, bool do_fill, struct GMT_FILL *fill) {
bool no_outline = false, no_fill = false;
if (set) {
if (outline && (S->v.status & PSL_VEC_OUTLINE2) == 0) S->v.pen = *pen;
else if (!outline && S->v.status ... | gmt_init_vector_param | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
int gmt_init_z_io(GMT_CTRL *GMT, char *format, bool *repeat,
GMT_swap_direction swab, off_t skip, char type, GMT_Z_IO *r) {
int v7;
bool first;
unsigned int k;
first = 1;
memset(r, 0, sizeof(GMT_Z_IO));
for (k = 0; k <= 1; ++k) {
v7 = format[k];
if (v7 == 84) {
if (first)
... | int gmt_init_z_io (struct GMT_CTRL *GMT, char format[], bool repeat[], enum GMT_swap_direction swab, off_t skip, char type, struct GMT_Z_IO *r) {
bool first = true;
unsigned int k;
gmt_M_memset (r, 1, struct GMT_Z_IO);
for (k = 0; k < 2; k++) {
switch (format[k]) {
case 'T':
if (first) r->format = G... | gmt_init_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_inonout_sphpol(GMT_CTRL *GMT, double plon, double plat,
const GMT_DATASEGMENT *P) {
unsigned int count[2];
unsigned long v6;
v6 = __readfsqword(0x28u);
if (P->pole) {
if (P->pole == 1) {
if (P->min[1] > plat)
return 0;
if (plat > P->lat_l... | GMT_LOCAL unsigned int gmt_inonout_sphpol (struct GMT_CTRL *GMT, double plon, double plat, const struct GMT_DATASEGMENT *P) {
unsigned int count[2];
gmt_M_unused(GMT);
if (P->pole) {
if (P->pole == +1) {
if (plat < P->min[GMT_Y]) return (GMT_OUTSIDE);
if (plat > P->lat_limit) retu... | gmt_inonout_sphpol | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_input_is_bin(GMT_CTRL *GMT, const char *filename) {
FILE *fd;
if (GMT->common.b.active[0])
return 1;
if (*(_DWORD *)((char *)strncmp + (_QWORD)GMT) <= 4u &&
GMT->common.b.varnames[0])
return 1;
if (!filename)
return 0;
if (strchr(filename, 63))
return 1;
fd = gmt_nc_fopen(GMT... | bool gmt_input_is_bin (struct GMT_CTRL *GMT, const char *filename) {
FILE *fd = NULL;
if (GMT->common.b.active[GMT_IN]) return true;
if (gmt_M_compat_check (GMT, 4) && GMT->common.b.varnames[0]) return true;
if (!filename) return false;
if (strchr (filename, '?')) return true;
fd = gmt_nc_fopen (GMT, f... | gmt_input_is_bin | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_input_is_nan_proxy(GMT_CTRL *GMT, double value) {
if (!GMT->common.d.active[0])
return 0;
if (GMT->common.d.is_zero[0])
return doubleAlmostEqualUlpsAndAbs(0.0, value, 1.110223024625157e-15, 5);
return doubleAlmostEqualUlps(
*(double *)((char *)&stru_22C50.r_offset + (_QWORD)GMT), value, 5);... | bool gmt_input_is_nan_proxy (struct GMT_CTRL *GMT, double value) {
if (!GMT->common.d.active[GMT_IN]) return false;
if (GMT->common.d.is_zero[GMT_IN]) return doubleAlmostEqualZero (0.0, value);
return doubleAlmostEqual (GMT->common.d.nan_proxy[GMT_IN], value);
} | gmt_input_is_nan_proxy | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_inside_lower_boundary(double val, double min) { return val >= min; } | static inline bool gmt_inside_lower_boundary (double val, double min) {return (val >= min);} | gmt_inside_lower_boundary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
bool gmt_inside_upper_boundary(double val, double max) { return max >= val; } | static inline bool gmt_inside_upper_boundary (double val, double max) {return (val <= max);} | gmt_inside_upper_boundary | gmt-5.4.4 | sci-geosciences | O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4 | ida | O0 |
void gmt_iobl(GMT_CTRL *GMT, double *lon, double *lat, double olon,
double olat) {
double v5;
double v6;
double v7;
double v8;
double v9;
double v10;
double p_cross_x[4];
double X[5];
*(_QWORD *)&X[3] = __readfsqword(0x28u);
gmt_geo_to_cart(GMT, olat, olon, X, 0);
if (fabs(gmt_dot3v... | void gmt_iobl (struct GMT_CTRL *GMT, double *lon, double *lat, double olon, double olat) {
double p_cross_x[3], X[3];
gmt_geo_to_cart (GMT, olat, olon, X, false);
*lat = d_asin (gmt_dot3v (GMT, X, GMT->current.proj.o_IP));
gmt_cross3v (GMT, GMT->current.proj.o_IP, X, p_cross_x);
gmt_normalize3v (GMT, p_cross_x... | gmt_iobl | 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.