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_cylstereo(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double j_y; double lona; for (lona = lon - GMT->current.proj.central_meridian; lona < -180.00000001; lona = lona + 360.0) ; while (lona > 180.00000001) lona = lona - 360.0; *x = GMT->current.pr...
void gmt_cylstereo (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { gmt_M_wind_lon (GMT, lon) *x = lon * GMT->current.proj.j_x; *y = GMT->current.proj.j_y * tand (0.5 * lat); }
gmt_cylstereo
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_datum_init(GMT_CTRL *GMT, GMT_DATUM *from, GMT_DATUM *to, bool heights) { unsigned int k; GMT->current.proj.datum.h_given = heights; memcpy(&GMT->current.proj.datum.from, from, sizeof(GMT->current.proj.datum.from)); memcpy(&GMT->current.proj.datum.to, to, sizeof(GMT->curre...
void gmt_datum_init (struct GMT_CTRL *GMT, struct GMT_DATUM *from, struct GMT_DATUM *to, bool heights) { unsigned int k; GMT->current.proj.datum.h_given = heights; gmt_M_memcpy (&GMT->current.proj.datum.from, from, 1, struct GMT_DATUM); gmt_M_memcpy (&GMT->current.proj.datum.to, to, 1, struct GMT_DATUM); ...
gmt_datum_init
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_dcw_country_has_states(char *code, GMT_DCW_COUNTRY_STATE *st_country, unsigned int n) { unsigned int i; for (i = 0; i < n; ++i) { if (!strcmp(code, st_country[i].country)) return 1; } return 0; }
GMT_LOCAL bool gmt_dcw_country_has_states (char *code, struct GMT_DCW_COUNTRY_STATE *st_country, unsigned int n) { unsigned int i; for (i = 0; i < n; i++) if (!strcmp (code, st_country[i].country)) return (true); return (false); }
gmt_dcw_country_has_states
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_decode_grd_h_info(GMT_CTRL *GMT, char *input, GMT_GRID_HEADER *h) { __m128i v3; size_t i; unsigned int uerr; unsigned int pos; size_t k; size_t n_slash; double d; char word[264]; unsigned long v13; v13 = __readfsqword(0x28u); n_slash = 0; uerr = 0; k = 0; for (i = strlen(input); k <...
int gmt_decode_grd_h_info (struct GMT_CTRL *GMT, char *input, struct GMT_GRID_HEADER *h) { size_t k, n_slash = 0; unsigned int uerr = 0; for (k = 0; k < strlen (input); k++) if (input[k] == '/') n_slash++; if (n_slash > 4) gmt_decode_grd_h_info_old (GMT, input, h); else { char word[GMT_LEN256] = {""}; u...
gmt_decode_grd_h_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_decode_grd_h_info_old(GMT_CTRL *GMT, char *input, GMT_GRID_HEADER *h) { __m128i v3; char v4; bool v5; bool copy; unsigned int entry; char *stringp; size_t len; char *ptr; double d; char sep[2]; unsigned long v14; v14 = __readfsqword(0x28u); stringp = input; strcpy(sep, "/"); entr...
GMT_LOCAL void gmt_decode_grd_h_info_old (struct GMT_CTRL *GMT, char *input, struct GMT_GRID_HEADER *h) { char *ptr, *stringp = input, sep[] = "/"; bool copy; unsigned int entry = 0; size_t len = 0; double d; if (input[0] != input[strlen(input)-1]) {} else if (input[0] == '=') {} else if (input[0] >=...
gmt_decode_grd_h_info_old
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_default_error(GMT_CTRL *GMT, char option) { _BOOL4 v2; _BOOL4 v3; _BOOL4 v4; _BOOL4 v5; int error; error = 0; switch (option) { case '-': case '>': break; case ':': error = !GMT->common.colon.active; break; case 'B': v2 = !GMT->common.B.active[0] && !GMT->common.B.active[1...
int gmt_default_error (struct GMT_CTRL *GMT, char option) { int error = 0; switch (option) { case '-': break; case '>': break; case 'B': error += (GMT->common.B.active[GMT_PRIMARY] == false && GMT->common.B.active[GMT_SECONDARY] == false); break; case 'J': error += GMT->common.J.active == false; brea...
gmt_default_error
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_demeaning(GMT_CTRL *GMT, double *X, double *Y, double **w, uint64_t n, double *par, double *U, double *V, double *W, double *alpha, double *beta) { double v11; const char *v12; double *v13; unsigned int v14; double v15; double v16; double v17; double ...
GMT_LOCAL double gmt_demeaning (struct GMT_CTRL *GMT, double *X, double *Y, double *w[], uint64_t n, double *par, double *U, double *V, double *W, double *alpha, double *beta) { double S; gmt_M_unused(GMT); if (w && w[GMT_X] && w[GMT_Y]) { double corr_i = 0.0, alpha_i, w_xy; uint64_t i; for (i = 0; ...
gmt_demeaning
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_dilog(GMT_CTRL *GMT, double x) { double y; double ya; double yb; if (x < -0.00000001) return GMT->session.d_NaN; if (x <= 0.0) return 1.644934066848226; if (x >= 0.5) { if (x >= 2.0) { yb = log(x); return -(((((((0.00000000179867 * (yb * yb) - 0.00000009176495399999999) *...
double gmt_dilog (struct GMT_CTRL *GMT, double x) { double pisqon6, y, ysq, z; if (x < -GMT_CONV8_LIMIT) return (GMT->session.d_NaN); pisqon6 = M_PI * M_PI / 6.0; if (x <= 0.0) return (pisqon6); if (x < 0.5) { y = -log (1.0 - x); ysq = y * y; z = y * (1.0 + y * (-0.25 + y * (0....
gmt_dilog
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_disable_bhi_opts(GMT_CTRL *GMT) { GMT->common.i.active = 0; GMT->current.setting.io_header_orig = GMT->current.setting.io_header[0]; GMT->current.setting.io_header[0] = 0; if (GMT->common.b.active[0]) { GMT->common.b.active[0] = 0; GMT->common.b.bin_primary = 1; GMT->current.io.input = ...
void gmt_disable_bhi_opts (struct GMT_CTRL *GMT) { GMT->common.i.active = false; GMT->current.setting.io_header_orig = GMT->current.setting.io_header[GMT_IN]; GMT->current.setting.io_header[GMT_IN] = false; if (GMT->common.b.active[GMT_IN]) { GMT->common.b.active[GMT_IN] = false; GMT->common.b.bin_primary ...
gmt_disable_bhi_opts
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_dist_syntax(GMT_CTRL *GMT, char option, char *string) { if (*string == 32) GMT_Report(GMT->parent, 1u, "Syntax error -%c option. Correct syntax:\n", (unsigned int)option); gmt_message(GMT, "\t-%c %s\n", (unsigned int)option, string); gmt_message(GMT, "\t Append e (meter), f (foot), ...
void gmt_dist_syntax (struct GMT_CTRL *GMT, char option, char *string) { if (string[0] == ' ') GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -%c option. Correct syntax:\n", option); gmt_message (GMT, "\t-%c %s\n", option, string); gmt_message (GMT, "\t Append e (meter), f (foot), k (km), M (mile), n (n...
gmt_dist_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_distance(GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE) { return gmt_distance_type(GMT, lonS, latS, lonE, latE, 0); }
double gmt_distance (struct GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE) { return (gmt_distance_type (GMT, lonS, latS, lonE, latE, 0)); }
gmt_distance
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_distance_type(GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE, unsigned int id) { double scale; scale = GMT->current.map.dist[id].scale; return GMT->current.map.dist[id].func(GMT, lonS, latS, lonE, latE) * scale; }
double gmt_distance_type (struct GMT_CTRL *GMT, double lonS, double latS, double lonE, double latE, unsigned int id) { return (GMT->current.map.dist[id].scale * GMT->current.map.dist[id].func (GMT, lonS, latS, lonE, latE)); }
gmt_distance_type
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_dot2v(GMT_CTRL *GMT, double *a, double *b) { return b[1] * a[1] + *a * *b; }
double gmt_dot2v (struct GMT_CTRL *GMT, double *a, double *b) { gmt_M_unused(GMT); return (a[GMT_X]*b[GMT_X] + a[GMT_Y]*b[GMT_Y]); }
gmt_dot2v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_dot3v(GMT_CTRL *GMT, double *a, double *b) { return b[2] * a[2] + *a * *b + b[1] * a[1]; }
double gmt_dot3v (struct GMT_CTRL *GMT, double *a, double *b) { gmt_M_unused(GMT); return (a[GMT_X]*b[GMT_X] + a[GMT_Y]*b[GMT_Y] + a[GMT_Z]*b[GMT_Z]); }
gmt_dot3v
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmt_download_file_if_not_found(GMT_CTRL *GMT, const char *file_name) { const char *v3; unsigned int verbose; char *v5; unsigned int kind; unsigned int pos; unsigned int dir; int curl_err; int _curl_opt; int _curl_opt_0; int _curl_opt_1; int ...
unsigned int gmt_download_file_if_not_found (struct GMT_CTRL *GMT, const char* file_name) { unsigned int kind = 0, dir = 0, pos = 0; int curl_err = 0; CURL *Curl = NULL; static char *ftp_dir[2] = {"/cache", ""}, *name[2] = {"CACHE", "USER"}; char *user_dir[2] = {GMT->session.CACHEDIR, GMT->session.USERDIR}; ch...
gmt_download_file_if_not_found
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_draw_colorbar(GMT_CTRL *GMT, PSSCALE_CTRL *Ctrl, GMT_PALETTE *P, double *z_width) { bool v4; bool v5; bool v6; bool v7; unsigned int n_colors; unsigned int v9; unsigned int v10; double v11; double v12; unsigned int v13; double z_low; bool v15; unsigned int v16; ...
GMT_LOCAL void gmt_draw_colorbar (struct GMT_CTRL *GMT, struct PSSCALE_CTRL *Ctrl, struct GMT_PALETTE *P, double *z_width) { unsigned int i, ii, id, j, nb, ndec = 0, dec, depth, flip = Ctrl->D.mmode, l_justify, n_use_labels = 0; unsigned int Label_justify, form, cap, join, n_xpos, nx = 0, ny = 0, nm, barmem, k, justi...
gmt_draw_colorbar
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_draw_custom_symbol(GMT_CTRL *GMT, double x0, double y0, double *size, GMT_CUSTOM_SYMBOL *symbol, GMT_PEN *pen, GMT_FILL *fill, unsigned int outline) { unsigned int v9; bool v10; bool v11; bool v12; bool v13; size_t v14; bool v15; size_t v16; ...
int gmt_draw_custom_symbol (struct GMT_CTRL *GMT, double x0, double y0, double size[], struct GMT_CUSTOM_SYMBOL *symbol, struct GMT_PEN *pen, struct GMT_FILL *fill, unsigned int outline) { int action; unsigned int na, i, id = 0, level = 0, start = 0, *type = NULL; bool flush = false, this_outline = false, found_else...
gmt_draw_custom_symbol
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_draw_front(GMT_CTRL *GMT, double *x, double *y, uint64_t n, GMT_FRONTLINE *f) { double v5; double v6; double v7; bool v8; int f_sense; int v10; int v11; long v12; long v13; long v14; long v15; long v16; double v17; long v18; double cosx; double sinx; GMT_FR...
void gmt_draw_front (struct GMT_CTRL *GMT, double x[], double y[], uint64_t n, struct GMT_FRONTLINE *f) { int ngap, tmp_join = 0, tmp_limit = 0; bool skip; uint64_t i; double *s = NULL, xx[4], yy[4], dist = 0.0, w, frac, dx, dy, angle, dir1, dir2; double gap, x0, y0, xp, yp, len2, len3, len4, cosa, sina, sa, ca, o...
gmt_draw_front
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_draw_map_insert(GMT_CTRL *GMT, GMT_MAP_INSERT *B) { double v2; unsigned int k; unsigned int ka; double *lon; double *lat; GMT_DATASEGMENT *S; GMT_MAP_PANEL *panel; uint64_t np; double s; FILE *fp; double dim[4]; double rect[6]; *(_QWORD *)&rect[5] = __readfsqword(0x28u); panel = B-...
void gmt_draw_map_insert (struct GMT_CTRL *GMT, struct GMT_MAP_INSERT *B) { unsigned int k; double rect[4], dim[3], s; struct GMT_MAP_PANEL *panel = B->panel; if (B->refpoint) gmt_set_refpoint (GMT, B->refpoint); if (B->refpoint || B->unit || B->oblique) { if (B->unit) gmt_init_distaz (GMT, B->unit, GMT...
gmt_draw_map_insert
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_draw_map_panel(GMT_CTRL *GMT, double x, double y, unsigned int mode, GMT_MAP_PANEL *P) { long v5; long v6; long v7; double ya; double xa; _BOOL4 outline; GMT_FILL *fill; double dim[4]; *(_QWORD *)&dim[3] = __readfsqword(0x28u); memset(dim, 0, 24); fill = 0; if (...
void gmt_draw_map_panel (struct GMT_CTRL *GMT, double x, double y, unsigned int mode, struct GMT_MAP_PANEL *P) { double dim[3] = {0.0, 0.0, 0.0}; int outline; struct GMT_FILL *fill = NULL; if (!P) return; outline = ((P->mode & GMT_PANEL_OUTLINE) == GMT_PANEL_OUTLINE); GMT_Report (GMT->parent, GMT_MSG_LO...
gmt_draw_map_panel
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_draw_map_rose(GMT_CTRL *GMT, GMT_MAP_ROSE *mr) { unsigned int tmp_join; unsigned int tmp_limit; PSL_CTRL *PSL; GMT_MAP_PANEL *panel; double dim[4]; *(_QWORD *)&dim[3] = __readfsqword(0x28u); PSL = GMT->PSL; panel = mr->panel; if (mr->plot && GMT->current.io.col_type[0][0] == 4 && GMT->...
void gmt_draw_map_rose (struct GMT_CTRL *GMT, struct GMT_MAP_ROSE *mr) { int tmp_join, tmp_limit; struct PSL_CTRL *PSL= GMT->PSL; struct GMT_MAP_PANEL *panel = mr->panel; double dim[2]; if (!mr->plot) return; if (!gmt_M_is_geographic (GMT, GMT_IN)) return; dim[GMT_X] = dim[GMT_Y] = mr->size; gmt_set_refpoint ...
gmt_draw_map_rose
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_draw_map_scale(GMT_CTRL *GMT, GMT_MAP_SCALE *ms) { char v3; double d_NaN; double v5; size_t v6; double v7; double *page_rgb; int alignment; char *v10; long v11; const char *v12; char measure; unsigned int j; signed int ja; unsigned int justify; gmt_enum_units unit; unsigned int f...
int gmt_draw_map_scale (struct GMT_CTRL *GMT, struct GMT_MAP_SCALE *ms) { unsigned int form, j; double unit_width[GMT_N_UNITS] = {1.1, 1.5, 1.5, 1.5, 2.0, 2.0, 2.0, 1.1, 2.25}; double name_width[GMT_N_UNITS] = {1.0, 2.3, 4.02, 10.7, 3.2, 2.0, 2.0, 3.05, 8.6}; enum gmt_enum_units unit; double x1, x2, y1, y2, tx...
gmt_draw_map_scale
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_dt2rdc(GMT_CTRL *GMT, double t, int64_t *rd, double *s) { *rd = GMT->current.setting.time_system.rata_die + gmtlib_splitinteger(86400.0 * GMT->current.setting.time_system.epoch_t0 + GMT->current.setting.time_system.scale * t, (int)&stru_1518...
void gmt_dt2rdc (struct GMT_CTRL *GMT, double t, int64_t *rd, double *s) { double t_sec; t_sec = (t * GMT->current.setting.time_system.scale + GMT->current.setting.time_system.epoch_t0 * GMT_DAY2SEC_F); *rd = gmtlib_splitinteger (t_sec, GMT_DAY2SEC_I, s) + GMT->current.setting.time_system.rata_die; }
gmt_dt2rdc
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_dummy_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { if (header) GMT_Report(GMT->parent, 1u, "Error: Unknown grid format.\n"); return 2; }
int gmt_dummy_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { if (header) GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Error: Unknown grid format.\n"); return (GMT_GRDIO_UNKNOWN_FORMAT); }
gmt_dummy_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_dummy_grd_read(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { if (header && grid && wesn && pad && complex_mode <= 0x3FF) GMT_Report(GMT->parent, 1u, "Error: Unknown grid format.\n"); return...
int gmt_dummy_grd_read (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { if (header && grid && wesn && pad && complex_mode < 1024) GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Error: Unknown grid format.\n"); return (GMT_GRDIO_UNKNOWN_FORMA...
gmt_dummy_grd_read
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_DATASET *gmt_duplicate_dataset(GMT_CTRL *GMT, GMT_DATASET *Din, unsigned int mode, unsigned int *geometry) { uint64_t tbl; uint64_t seg; GMT_DATASET *D; D = gmt_alloc_dataset(GMT, Din, 0, Din->n_columns, mode); memcpy(D->min, Din->min, 8 * Din->n_columns); memcpy(D->m...
struct GMT_DATASET *gmt_duplicate_dataset (struct GMT_CTRL *GMT, struct GMT_DATASET *Din, unsigned int mode, unsigned int *geometry) { uint64_t tbl, seg; struct GMT_DATASET *D = NULL; D = gmt_alloc_dataset (GMT, Din, 0, Din->n_columns, mode); gmt_M_memcpy (D->min, Din->min, Din->n_columns, double); gmt_M_memcpy ...
gmt_duplicate_dataset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_GRID *gmt_duplicate_grid(GMT_CTRL *GMT, GMT_GRID *G, unsigned int mode) { GMT_GRID_HEADER *header; GMT_GRID_HEADER *v4; GMT_GRID_HEADER *v5; unsigned int *pad; long v7; char modea; unsigned int row; GMT_GRID *Gnew; modea = mode; Gnew = gmt_create_grid(GMT); memcpy(Gnew->header, G->header, siz...
struct GMT_GRID *gmt_duplicate_grid (struct GMT_CTRL *GMT, struct GMT_GRID *G, unsigned int mode) { struct GMT_GRID *Gnew = NULL; Gnew = gmt_create_grid (GMT); gmt_M_memcpy (Gnew->header, G->header, 1, struct GMT_GRID_HEADER); if (G->header->ProjRefWKT) Gnew->header->ProjRefWKT = strdup (G->header->ProjRefWKT); ...
gmt_duplicate_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_duplicate_ogr_seg(GMT_CTRL *GMT, GMT_DATASEGMENT *S_to, GMT_DATASEGMENT *S_from) { char **v3; unsigned int col; if (S_from->ogr) { gmtio_alloc_ogr_seg(GMT, S_to, S_from->ogr->n_aspatial); for (col = 0; col < S_from->ogr->n_aspatial; ++col) { if (S_from->ogr->tval...
void gmt_duplicate_ogr_seg (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S_to, struct GMT_DATASEGMENT *S_from) { unsigned int col; if (!S_from->ogr) return; gmtio_alloc_ogr_seg (GMT, S_to, S_from->ogr->n_aspatial); for (col = 0; col < S_from->ogr->n_aspatial; col++) { if (S_from->ogr->tvalue[col]) S_to->ogr-...
gmt_duplicate_ogr_seg
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_DATASEGMENT *gmt_duplicate_segment(GMT_CTRL *GMT, GMT_DATASEGMENT *Sin) { uint64_t col; GMT_DATASEGMENT *Sout; Sout = (GMT_DATASEGMENT *)GMT_Alloc_Segment(GMT->parent, 0, Sin->n_rows, Sin->n_columns, Sin->header, 0); for (col = 0; col < Sin->n_columns; ++col) ...
struct GMT_DATASEGMENT * gmt_duplicate_segment (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *Sin) { uint64_t col; struct GMT_DATASEGMENT *Sout = GMT_Alloc_Segment (GMT->parent, GMT_IS_DATASET, Sin->n_rows, Sin->n_columns, Sin->header, NULL); for (col = 0; col < Sin->n_columns; col++) gmt_M_memcpy (Sout->data[col]...
gmt_duplicate_segment
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_eckert4(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; int n_iter; double s; double c; double phi; double s_lat; double delta; unsigned long v18; GMTa = GMT; lona = lon; ...
void gmt_eckert4 (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { int n_iter = 0; double phi, delta, s_lat, s, c; gmt_M_wind_lon (GMT, lon) phi = lat * D2R; s_lat = sin (phi); phi *= 0.5; do { sincos (phi, &s, &c); delta = -(phi + s * c + 2.0 * s - (2.0 + M_PI_2) * s_lat) / (2.0 * c...
gmt_eckert4
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_eckert6(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; int n_iter; double s; double c; double phi; double s_lat; double delta; unsigned long v20; ...
void gmt_eckert6 (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { int n_iter = 0; double phi, delta, s_lat, s, c; gmt_M_wind_lon (GMT, lon) if (GMT->current.proj.GMT_convert_latitudes) lat = gmt_M_latg_to_lata (GMT, lat); phi = lat * D2R; s_lat = sin (phi); do { sincos (phi, &s, &c); ...
gmt_eckert6
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_econic(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 rho; double theta; unsigned long v16; GMTa = GMT; lona = lon; lata = lat; xa = x; ya = ...
void gmt_econic (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { double rho, theta, s, c; gmt_M_wind_lon (GMT, lon) rho = GMT->current.proj.EQ_RAD * (GMT->current.proj.d_G - lat * D2R); theta = GMT->current.proj.d_n * lon * D2R; sincos (theta, &s, &c); *x = rho * s; *y = GMT->current....
gmt_econic
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_end(GMT_CTRL *GMT) { unsigned int i; unsigned int ia; unsigned int ib; gmtinit_put_history(GMT); gmt_free_func(GMT, GMT->session.font, 0, "gmt_end"); GMT->session.font = 0; free(GMT->init.runtime_bindir); GMT->init.runtime_bindir = 0; free(GMT->init.runtime_libdir); GMT->init.runtime_libdi...
void gmt_end (struct GMT_CTRL *GMT) { unsigned int i; gmtinit_put_history (GMT); gmt_M_free (GMT, GMT->session.font); #ifdef __FreeBSD__ #ifdef _i386_ fpresetsticky (FP_X_DZ | FP_X_INV); fpsetmask (FP_X_DZ | FP_X_INV); #endif #endif gmt_M_str_free (GMT->init.runtime_bindir); gmt_M_str_free (GMT->init.run...
gmt_end
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_end_module(GMT_CTRL *GMT, GMT_CTRL *Ccopy) { int v2; char *v3; char *v4; char *v5; char *v6; char *v7; char *v8; char *v9; char *v10; char *v11; char **v12; bool pass_changes_back; unsigned int i; unsigned int ia; unsigned int ib; unsigned int ic; unsigned int V_level; int i...
void gmt_end_module (struct GMT_CTRL *GMT, struct GMT_CTRL *Ccopy) { unsigned int i, V_level = GMT->current.setting.verbose; bool pass_changes_back; struct GMT_DEFAULTS saved_settings; if (GMT->current.proj.n_geodesic_approx) { GMT_Report(GMT->parent, GMT_MSG_DEBUG, "Warning: Of % " PRIu64 " geodesic calls, % "...
gmt_end_module
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_erfinv(GMT_CTRL *GMT, double y) { double v3; double v4; double v5; double v6; double v8; double v9; double x; double xa; double fy; fy = fabs(y); if (fy > 1.0) return GMT->session.d_NaN; if (doubleAlmostEqualUlps(fy, 1.0, 5)) return copysign(1.797693134862316e308, y); if (y...
double gmt_erfinv (struct GMT_CTRL *GMT, double y) { double x = 0.0, fy, z; static double a[4] = {0.886226899, -1.645349621, 0.914624893, -0.140543331}; static double b[4] = {-2.118377725, 1.442710462, -0.329097515, 0.012229801}; static double c[4] = {-1.970840454, -1.624906493, 3.429567803, 1.641345311}; sta...
gmt_erfinv
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmt_export2proj4(GMT_CTRL *GMT) { int projection; double v2; size_t v3; size_t v4; double scale_factor; size_t len; size_t lena; size_t lenb; double a; double b; char proj4_ename[16]; char szProj4[520]; unsigned long v14; v14 = __readfsqword(0x28u); scale_factor = *(double *)((char ...
char *gmt_export2proj4 (struct GMT_CTRL *GMT) { char *pStrOut = NULL; char szProj4[GMT_LEN512], proj4_ename[GMT_LEN16]; double scale_factor, false_easting = 0.0, false_northing = 0.0, a, b, f; scale_factor = GMT->current.setting.proj_scale_factor; if (scale_factor < 0) scale_factor = 1; szProj4[0] = 0; switch ...
gmt_export2proj4
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_extract_label(GMT_CTRL *GMT, char *line, char *label, GMT_OGR_SEG *G) { bool done; unsigned int i; unsigned int k; unsigned int j; unsigned int j0; char q[2]; unsigned long v11; v11 = __readfsqword(0x28u); i = 0; *(_WORD *)q = 10018; if (G && G->tvalue && *G->tvalue) { strcpy(label, ...
void gmt_extract_label (struct GMT_CTRL *GMT, char *line, char *label, struct GMT_OGR_SEG *G) { bool done; unsigned int i = 0, k, j, j0; char *p = NULL, q[2] = {'\"', '\''}; if (G && G->tvalue && G->tvalue[0]) { strcpy (label, G->tvalue[0]); return ;} if (gmt_parse_segment_item (GMT, line, "-L", label)) retur...
gmt_extract_label
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_extreme(GMT_CTRL *GMT, double *x, uint64_t n, double x_default, int kind, int way) { uint64_t i; uint64_t k; double x_select; x_select = GMT->session.d_NaN; if (!n) return GMT->session.d_NaN; k = 0; for (i = 0; i < n; ++i) { if ((kind != -1 || x[i] <= 0.0) && (kind !...
double gmt_extreme (struct GMT_CTRL *GMT, double x[], uint64_t n, double x_default, int kind, int way) { uint64_t i, k; double x_select = GMT->session.d_NaN; if (n == 0) return (x_select); for (i = k = 0; i < n; i++) { if (kind == -1 && x[i] > 0.0) continue; if (kind == +1 && x[i] < 0.0) continue; ...
gmt_extreme
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_readgrd(float *array, unsigned int *dim, double *limit, double *inc, char *title, char *remark, const char *name, int ltitle, int lremark, int lname) { return gmt_f77_readgrd_(array, dim, limit, inc, title, remark, name, ltitle, lremark, ln...
int gmt_f77_readgrd (F77_ARG1) { return gmt_f77_readgrd_ (F77_ARG2); }
gmt_f77_readgrd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_readgrd_(float *array, unsigned int *dim, double *limit, double *inc, char *title, char *remark, const char *name, int ltitle, int lremark, int lname) { double v11; int v12; int v13; int l; int l_0; char *file; GMTAPI_CTRL *API; unsigned int no_pad[4...
int gmt_f77_readgrd_ (float *array, unsigned int dim[], double limit[], double inc[], char *title, char *remark, const char *name, int ltitle, int lremark, int lname) { unsigned int no_pad[4] = {0, 0, 0, 0}; double no_wesn[4] = {0.0, 0.0, 0.0, 0.0}; const char *argv = "GMT_F77_readgrd"; char *file = NULL; s...
gmt_f77_readgrd_
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_readgrd__(float *array, unsigned int *dim, double *limit, double *inc, char *title, char *remark, const char *name, int ltitle, int lremark, int lname) { return gmt_f77_readgrd_(array, dim, limit, inc, title, remark, name, ltitle, lrema...
int gmt_f77_readgrd__ (F77_ARG1) { return gmt_f77_readgrd_ (F77_ARG2); }
gmt_f77_readgrd__
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_readgrdinfo(unsigned int *dim, double *limit, double *inc, char *title, char *remark, const char *name, int ltitle, int lremark, int lname) { return gmt_f77_readgrdinfo_(dim, limit, inc, title, remark, name, ltitle, lremark, lna...
int gmt_f77_readgrdinfo (F77_ARG1) { return gmt_f77_readgrdinfo_ (F77_ARG2); }
gmt_f77_readgrdinfo
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_readgrdinfo_(unsigned int *dim, double *limit, double *inc, char *title, char *remark, const char *name, int ltitle, int lremark, int lname) { double v10; int v11; int v12; int l; int l_0; char *file; GMTAPI_CTRL *API; GMT_GRID_HEADER header;...
int gmt_f77_readgrdinfo_ (unsigned int dim[], double limit[], double inc[], char *title, char *remark, const char *name, int ltitle, int lremark, int lname) { const char *argv = "GMT_F77_readgrdinfo"; char *file = NULL; struct GMT_GRID_HEADER header; struct GMTAPI_CTRL *API = NULL; if (name == NULL) { GMT_...
gmt_f77_readgrdinfo_
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_readgrdinfo__(unsigned int *dim, double *limit, double *inc, char *title, char *remark, const char *name, int ltitle, int lremark, int lname) { return gmt_f77_readgrdinfo_(dim, limit, inc, title, remark, name, ltitle, lremar...
int gmt_f77_readgrdinfo__(F77_ARG1) { return gmt_f77_readgrdinfo_ (F77_ARG2); }
gmt_f77_readgrdinfo__
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_writegrd(float *array, unsigned int *dim, double *limit, double *inc, const char *title, const char *remark, const char *name, int ltitle, int lremark, int lname) { return gmt_f77_writegrd_(array, dim, limit, inc, title, remark, name, ltitle, ...
int gmt_f77_writegrd (F77_ARG1) { return gmt_f77_writegrd_ (F77_ARG2); }
gmt_f77_writegrd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_writegrd_(float *array, unsigned int *dim, double *limit, double *inc, const char *title, const char *remark, const char *name, int ltitle, int lremark, int lname) { double v11; int v12; int v13; int l; int l_0; char *file; GMTAPI_CTRL *API; unsign...
int gmt_f77_writegrd_ (float *array, unsigned int dim[], double limit[], double inc[], const char *title, const char *remark, const char *name, int ltitle, int lremark, int lname) { unsigned int no_pad[4] = {0, 0, 0, 0}; const char *argv = "GMT_F77_writegrd"; char *file = NULL; double no_wesn[4] = {0.0, 0.0, 0....
gmt_f77_writegrd_
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_f77_writegrd__(float *array, unsigned int *dim, double *limit, double *inc, const char *title, const char *remark, const char *name, int ltitle, int lremark, int lname) { return gmt_f77_writegrd_(array, dim, limit, inc, title, remark, name, ltitle, ...
int gmt_f77_writegrd__ (F77_ARG1) { return gmt_f77_writegrd_ (F77_ARG2); }
gmt_f77_writegrd__
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_f_cdf(GMT_CTRL *GMT, double F, uint64_t nu1, uint64_t nu2) { double v4; double v5; double v6; double v7; double v8; double v9; double v10; double v11; double v12; double y[2]; *(_QWORD *)&y[1] = __readfsqword(0x28u); y[0] = 0.0; if ((nu1 & 0x8000000000000000LL) != 0LL) v4 = (do...
double gmt_f_cdf (struct GMT_CTRL *GMT, double F, uint64_t nu1, uint64_t nu2) { double y = 0.0; gmtstat_inc_beta (GMT, 0.5*nu1, 0.5*nu2, F*nu1/(F*nu1+nu2), &y); return (y); }
gmt_f_cdf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_f_pdf(GMT_CTRL *GMT, double F, uint64_t nu1, uint64_t nu2) { double v4; double v5; double v6; double v7; double v8; uint64_t v9; double v10; double v11; double v12; double v13; double v14; double v15; double v16; double v17; double v18; double v19; double v21; double v22; ...
double gmt_f_pdf (struct GMT_CTRL *GMT, double F, uint64_t nu1, uint64_t nu2) { double y; y = sqrt (pow (nu1 * F, (double)nu1) * pow ((double)nu2, (double)nu2) / pow (nu1 * F + nu2, (double)(nu1+nu2))) / (F * gmtstat_beta (GMT, 0.5*nu1, 0.5*nu2)); return (y); }
gmt_f_pdf
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_factorial(GMT_CTRL *GMT, int n) { double v3; int v4; if (n >= 0) { if (n <= 32) { while (n > ntop_16) { v4 = ntop_16++; a_15[ntop_16] = (double)ntop_16 * a_15[v4]; } return a_15[n]; } else { v3 = gmtstat_ln_gamma(GMT, (double)n + 1.0); return exp(v...
double gmt_factorial (struct GMT_CTRL *GMT, int n) { static int ntop = 10; static double a[33] = {1.0, 1.0, 2.0, 6.0, 24.0, 120.0, 720.0, 5040.0, 40320.0, 362880.0, 3628800.0}; int i; if (n < 0) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Error: n < 0 in gmt_factorial(n)\n"); return (GMT->session.d_NaN); ...
gmt_factorial
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_fclose(GMT_CTRL *GMT, FILE *stream) { if (!stream) return 0; if (stream == GMT->session.std[0]) return 0; if (stream == GMT->session.std[1]) return 0; if (stream == GMT->session.std[2]) return 0; if ((FILE *)-GMT->current.io.ncid != stream) return fclose(stream); nc_close((unsign...
int gmt_fclose (struct GMT_CTRL *GMT, FILE *stream) { if (!stream || stream == NULL) return (0); if (stream == GMT->session.std[GMT_IN]) return (0); if (stream == GMT->session.std[GMT_OUT]) return (0); if (stream == GMT->session.std[GMT_ERR]) return (0); if ((size_t)stream == (size_t)-GMT->current.io.ncid) { ...
gmt_fclose
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_fft_any_wave(uint64_t k, unsigned int mode, GMT_FFT_WAVENUMBER *K) { double wave; wave = 0.0; if (mode == 2) return fft_kr(k, K); if (mode <= 2) { if (mode) return fft_ky(k, K); else return fft_kx(k, K); } return wave; }
double gmt_fft_any_wave (uint64_t k, unsigned int mode, struct GMT_FFT_WAVENUMBER *K) { double wave = 0.0; switch (mode) { case GMT_FFT_K_IS_KX: wave = fft_kx (k, K); break; case GMT_FFT_K_IS_KY: wave = fft_ky (k, K); break; case GMT_FFT_K_IS_KR: wave = fft_kr (k, K); break; } return (wave); }
gmt_fft_any_wave
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_fft_cleanup(GMT_CTRL *GMT) { ; }
void gmt_fft_cleanup (struct GMT_CTRL *GMT) { #ifndef __APPLE__ gmt_M_unused(GMT); #endif #if defined HAVE_FFTW3F_THREADS fftwf_cleanup_threads(); #endif #ifdef __APPLE__ fft_1d_vDSP_reset (&GMT->current.fft); fft_2d_vDSP_reset (&GMT->current.fft); #endif }
gmt_fft_cleanup
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_fft_get_wave(uint64_t k, GMT_FFT_WAVENUMBER *K) { return K->k_ptr(k, K); }
double gmt_fft_get_wave (uint64_t k, struct GMT_FFT_WAVENUMBER *K) { return (K->k_ptr (k, K)); }
gmt_fft_get_wave
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_fft_initialization(GMT_CTRL *GMT) { memset(GMT->session.fft1d, 5, 8u); memset(GMT->session.fft2d, 5, 8u); GMT->session.fft1d[2] = (int (*)(GMT_CTRL *, float *, unsigned int, int, unsigned int))fft_1d_fftwf; *(unsigned long *)((char *)&stru_20BF8.r_offset + (_QWORD)GMT...
void gmt_fft_initialization (struct GMT_CTRL *GMT) { #if defined HAVE_FFTW3F_THREADS int n_cpu = gmtlib_get_num_processors(); if (n_cpu > 1 && !GMT->current.setting.fftwf_threads) { if ( fftwf_init_threads() ) { fftwf_plan_with_nthreads(n_cpu); GMT_Report (GMT->parent, GMT_MSG_LONG_VERBOSE, "Initialize ...
gmt_fft_initialization
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_fft_set_wave(GMT_CTRL *GMT, unsigned int mode, GMT_FFT_WAVENUMBER *K) { if (mode == 2) { K->k_ptr = (double (*)(uint64_t, GMT_FFT_WAVENUMBER *))fft_kr; } else { if (mode > 2) { GMT_Report(GMT->parent, 1u, "Bad mode selected (%u) - exit\n", mode); GMT_exit_0(GMT, 71); return 71; ...
int gmt_fft_set_wave (struct GMT_CTRL *GMT, unsigned int mode, struct GMT_FFT_WAVENUMBER *K) { switch (mode) { case GMT_FFT_K_IS_KX: K->k_ptr = fft_kx; break; case GMT_FFT_K_IS_KY: K->k_ptr = fft_ky; break; case GMT_FFT_K_IS_KR: K->k_ptr = fft_kr; break; default: GMT_Report (GMT->parent, GMT_MSG_NORMAL, ...
gmt_fft_set_wave
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
fftwf_plan gmt_fftwf_plan_dft(GMT_CTRL *GMT, unsigned int n_rows, unsigned int n_columns, fftwf_complex *data, int direction) { int v5; unsigned int v6; unsigned int sign; fftwf_plan_s *plan; fftwf_plan plana; float *in_place_tmp; plan = 0; if...
GMT_LOCAL fftwf_plan gmt_fftwf_plan_dft(struct GMT_CTRL *GMT, unsigned n_rows, unsigned n_columns, fftwf_complex *data, int direction) { int sign; fftwf_complex *cin, *cout; fftwf_plan plan = NULL; sign = direction == GMT_FFT_FWD ? FFTW_FORWARD : FFTW_BACKWARD; cin = data; cout ...
gmt_fftwf_plan_dft
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
char *gmt_fgets(GMT_CTRL *GMT, char *str, int size, FILE *stream) { int n; int c; str[size - 2] = 0; if (!fgets(str, size, stream)) return 0; if (str[size - 2] && str[size - 2] != 10) { for (n = 0;; ++n) { c = fgetc(stream); if (c == 10 || c == -1) break; } if (c == 10) ...
char *gmt_fgets (struct GMT_CTRL *GMT, char *str, int size, FILE *stream) { str[size-2] = '\0'; if (!fgets (str, size, stream)) return (NULL); if (!(str[size-2] == '\0' || str[size-2] == '\n')) { int c, n = 0; while ((c = fgetc (stream)) != '\n' && c != EOF) ++n; if (c == '\n') str[si...
gmt_fgets
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_file_is_readable(GMT_CTRL *GMT, char *path) { if (!access(path, 4)) return 1; GMT_Report(GMT->parent, 4u, "Unable to read %s (permissions?)\n", path); return 0; }
GMT_LOCAL bool gmt_file_is_readable (struct GMT_CTRL *GMT, char *path) { if (!access (path, R_OK)) return (true); GMT_Report (GMT->parent, GMT_MSG_VERBOSE, "Unable to read %s (permissions?)\n", path); return (false); }
gmt_file_is_readable
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_fill_syntax(GMT_CTRL *GMT, char option, char *string) { if (*string == 32) GMT_Report(GMT->parent, 1u, "Syntax error -%c option. Correct syntax:\n", (unsigned int)option); gmt_message(GMT, "\t-%c<fill> %s Specify <fill> as one of:\n", (unsigned int)option, string); gmt_m...
void gmt_fill_syntax (struct GMT_CTRL *GMT, char option, char *string) { if (string[0] == ' ') GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Syntax error -%c option. Correct syntax:\n", option); gmt_message (GMT, "\t-%c<fill> %s Specify <fill> as one of:\n", option, string); gmt_message (GMT, "\t 1) <gray> or <red>/<...
gmt_fill_syntax
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMT_OPTION *gmt_find_J_option(void *V_API, GMT_OPTION *head) { GMT_OPTION *current; GMT_OPTION *ptr; ptr = 0; if (!head) return 0; for (current = head; !ptr && current; current = current->next) { if (current->option == 74 && *current->arg != 122 && *current->arg != 90) ptr = current; } retu...
GMT_LOCAL struct GMT_OPTION * gmt_find_J_option (void *V_API, struct GMT_OPTION *head) { struct GMT_OPTION *current = NULL, *ptr = NULL; gmt_M_unused(V_API); if (head == NULL) return (NULL); for (current = head; ptr == NULL && current; current = current->next) { if (current->option == 'J' && !(current->arg[0]...
gmt_find_J_option
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmt_fix_up_path(GMT_CTRL *GMT, double **a_lon, double **a_lat, uint64_t n, double step, unsigned int mode) { bool v7; double v8; double v9; double v10; double v11; double v12; double v13; double v14; double v15; double v16; double v17; double v18; double v19; ...
uint64_t gmt_fix_up_path (struct GMT_CTRL *GMT, double **a_lon, double **a_lat, uint64_t n, double step, unsigned int mode) { unsigned int k = 1; bool meridian, boostable; uint64_t i, j, n_new, n_step = 0; double a[3], b[3], x[3], *lon = NULL, *lat = NULL; double c, d, fraction, theta, minlon, maxlon; d...
gmt_fix_up_path
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
FILE *gmt_fopen(GMT_CTRL *GMT, const char *filename, const char *mode) { FILE *fd; const char *c; const char *ca; char path[4104]; unsigned long v9; v9 = __readfsqword(0x28u); if (*mode != 114) return fopen(filename, mode); if (GMT->common.b.active[0]) { c = gmt_getdatapath(GMT, filename, path,...
FILE * gmt_fopen (struct GMT_CTRL *GMT, const char *filename, const char *mode) { char path[GMT_BUFSIZ], *c = NULL; FILE *fd = NULL; if (mode[0] != 'r') return (fopen (filename, mode)); else if (GMT->common.b.active[GMT_IN]) { if ((c = gmt_getdatapath (GMT, filename, path, R_OK)) == NULL) return NULL; retu...
gmt_fopen
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_format_abstime_output(GMT_CTRL *GMT, double dt, char *text) { char date[16]; char tclock[24]; unsigned long v5; v5 = __readfsqword(0x28u); memset(date, 0, sizeof(date)); memset(tclock, 0, 16); gmt_format_calendar(GMT, date, tclock, &GMT->current.io.date_output, &GMT->curren...
void gmt_format_abstime_output (struct GMT_CTRL *GMT, double dt, char *text) { char date[GMT_LEN16] = {""}, tclock[GMT_LEN16] = {""}; gmt_format_calendar (GMT, date, tclock, &GMT->current.io.date_output, &GMT->current.io.clock_output, false, 1, dt); if (date[0] == '\0') sprintf (text, "%s", tclock); else if (tc...
gmt_format_abstime_output
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_format_calendar(GMT_CTRL *GMT, char *date, char *clock, GMT_DATE_IO *D, GMT_CLOCK_IO *W, bool upper, unsigned int kind, double dt) { int year; int iso_y; int v10; double v11; double v12; int ap; unsigned int i_sec; unsigned int m_sec; GMT_GCAL...
void gmt_format_calendar (struct GMT_CTRL *GMT, char *date, char *clock, struct GMT_DATE_IO *D, struct GMT_CLOCK_IO *W, bool upper, unsigned int kind, double dt) { int i_sec, m_sec, ap, ival[3] = {0, 0, 0}; char text[GMT_LEN16+1] = {""}; double step; struct GMT_GCAL calendar; step = 0.5 / W->f_sec_to_int / G...
gmt_format_calendar
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_format_duration_output(GMT_CTRL *GMT, double dt, char *text) { int v3; unsigned int k; unsigned int k0_0; double sec; unsigned int n[8]; char item[24]; unsigned long v9; v9 = __readfsqword(0x28u); k0_0 = 5; memset(item, 0, 16); *text = 80; if (dt == 0.0) { text[1] = 48; text[2]...
void gmt_format_duration_output (struct GMT_CTRL *GMT, double dt, char *text) { unsigned int k, k0 = N_T_UNITS, n[N_T_UNITS]; char item[GMT_LEN16] = {""}; double sec; text[0] = 'P'; if (dt == 0.0) { text[1] = '0'; text[2] = 0; return; } sec = dt * GMT->current.setting.time_system.scale; for (k = 0; k < ...
gmt_format_duration_output
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_br(GMT_CTRL *GMT, GMT_BR *c) { int i; for (i = 0; i < c->ns; ++i) { gmt_free_func(GMT, c->seg[i].dx, 0, "gmt_free_br"); c->seg[i].dx = 0; gmt_free_func(GMT, c->seg[i].dy, 0, "gmt_free_br"); c->seg[i].dy = 0; } if (c->ns) { gmt_free_func(GMT, c->seg, 0, "gmt_free_br"); c->s...
void gmt_free_br (struct GMT_CTRL *GMT, struct GMT_BR *c) { int i; for (i = 0; i < c->ns; i++) { gmt_M_free (GMT, c->seg[i].dx); gmt_M_free (GMT, c->seg[i].dy); } if (c->ns) gmt_M_free (GMT, c->seg); }
gmt_free_br
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_dataset(GMT_CTRL *GMT, GMT_DATASET **data) { gmtlib_free_dataset_ptr(GMT, *data); gmt_free_func(GMT, *data, 0, "gmt_free_dataset"); *data = 0; }
void gmt_free_dataset (struct GMT_CTRL *GMT, struct GMT_DATASET **data) { gmtlib_free_dataset_ptr (GMT, *data); gmt_M_free (GMT, *data); }
gmt_free_dataset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_func(GMT_CTRL *GMT, void *addr, bool align, const char *where) { if (addr) { if (align) fftwf_free(addr); else free(addr); } else { gmtlib_report_func(GMT, 6u, where, "tried to free unallocated memory\n"); } }
void gmt_free_func (struct GMT_CTRL *GMT, void *addr, bool align, const char *where) { if (addr == NULL) { #ifndef DEBUG gmtlib_report_func (GMT, GMT_MSG_DEBUG, where, "tried to free unallocated memory\n"); #endif return; } #ifdef MEMDEBUG if (GMT->hidden.mem_keeper->active) { bool is_safe_to_free = g...
gmt_free_func
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_grid(GMT_CTRL *GMT, GMT_GRID **G, bool free_grid) { gmtgrdio_free_grid_ptr(GMT, *G, free_grid); gmt_free_func(GMT, *G, 0, "gmt_free_grid"); *G = 0; }
void gmt_free_grid (struct GMT_CTRL *GMT, struct GMT_GRID **G, bool free_grid) { (void)gmtgrdio_free_grid_ptr (GMT, *G, free_grid); gmt_M_free (GMT, *G); }
gmt_free_grid
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_segment(GMT_CTRL *GMT, GMT_DATASEGMENT **S) { unsigned int k; uint64_t col; GMT_DATASEGMENT *segment; segment = *S; if (*S) { if (segment->alloc_mode == GMT_enum_alloc_GMT_ALLOC_INTERNALLY) { for (col = 0; col < segment->n_columns; ++col) { gmt_free_func(GMT, segment->data[col...
void gmt_free_segment (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT **S) { unsigned int k; uint64_t col; struct GMT_DATASEGMENT *segment = *S; if (!segment) return; if (segment->alloc_mode == GMT_ALLOC_INTERNALLY) { for (col = 0; col < segment->n_columns; col++) gmt_M_free (GMT, segment->data[col]); } gmt...
gmt_free_segment
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_shore(GMT_CTRL *GMT, GMT_SHORE *c) { int i; for (i = 0; i < c->ns; ++i) { gmt_free_func(GMT, c->seg[i].dx, 0, "gmt_free_shore"); c->seg[i].dx = 0; gmt_free_func(GMT, c->seg[i].dy, 0, "gmt_free_shore"); c->seg[i].dy = 0; } if (c->ns) { gmt_free_func(GMT, c->seg, 0, "gmt_free_sh...
void gmt_free_shore (struct GMT_CTRL *GMT, struct GMT_SHORE *c) { int i; for (i = 0; i < c->ns; i++) { gmt_M_free (GMT, c->seg[i].dx); gmt_M_free (GMT, c->seg[i].dy); } if (c->ns) gmt_M_free (GMT, c->seg); }
gmt_free_shore
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_shore_polygons(GMT_CTRL *GMT, GMT_GSHHS_POL *p, unsigned int n) { unsigned int k; for (k = 0; k < n; ++k) { gmt_free_func(GMT, p[k].lon, 0, "gmt_free_shore_polygons"); p[k].lon = 0; gmt_free_func(GMT, p[k].lat, 0, "gmt_free_shore_polygons"); p[k].lat = 0; } }
void gmt_free_shore_polygons (struct GMT_CTRL *GMT, struct GMT_GSHHS_POL *p, unsigned int n) { unsigned int k; for (k = 0; k < n; k++) { gmt_M_free (GMT, p[k].lon); gmt_M_free (GMT, p[k].lat); } }
gmt_free_shore_polygons
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_table(GMT_CTRL *GMT, GMT_DATATABLE *table) { unsigned int k; unsigned int ka; uint64_t seg; if (table) { for (k = 0; k < table->n_headers; ++k) { free(table->header[k]); table->header[k] = 0; } gmt_free_func(GMT, table->header, 0, "gmt_free_table"); table->header = 0; ...
void gmt_free_table (struct GMT_CTRL *GMT, struct GMT_DATATABLE *table) { unsigned int k; if (!table) return; for (k = 0; k < table->n_headers; k++) gmt_M_str_free (table->header[k]); gmt_M_free (GMT, table->header); gmt_M_free (GMT, table->min); gmt_M_free (GMT, table->max); for (k = 0; k < 2; k++) gmt_M_str_...
gmt_free_table
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_free_vector(GMT_CTRL *GMT, GMT_VECTOR **V, bool free_vector) { gmtlib_free_vector_ptr(GMT, *V, free_vector); gmt_free_func(GMT, *V, 0, "gmt_free_vector"); *V = 0; }
void gmt_free_vector (struct GMT_CTRL *GMT, struct GMT_VECTOR **V, bool free_vector) { (void)gmtlib_free_vector_ptr (GMT, *V, free_vector); gmt_M_free (GMT, *V); }
gmt_free_vector
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_gauss(GMT_CTRL *GMT, double *a, double *vec, unsigned int n, unsigned int nstore, bool itriag) { size_t v6; unsigned int i; unsigned int ia; unsigned int ib; unsigned int j; unsigned int ja; unsigned int jb; unsigned int jc; unsigned int k; unsigned int ka; unsigned int kb; ...
int gmt_gauss (struct GMT_CTRL *GMT, double *a, double *vec, unsigned int n, unsigned int nstore, bool itriag) { static unsigned int l1; unsigned int *line = NULL, i = 0, j, k, l, j1, j2, *isub = NULL; int iet, ieb; size_t n_alloc = 0; double big, testa, b, sum; iet = 0; ieb = 0; gmt_M_malloc...
gmt_gauss
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_gaussjordan(GMT_CTRL *GMT, double *a, unsigned int nu, double *b) { int i; int ia; signed int j; int ja; unsigned int k; int bad; double c; double ca; double d; _QWORD v16[2]; unsigned int v17; signed int v18; unsigned long v19; v19 = __readfsqword(0x28u); bad = 0; for (j = 0; j...
int gmt_gaussjordan (struct GMT_CTRL *GMT, double *a, unsigned int nu, double *b) { int i, j, k, bad = 0, n = (int)nu; double c, d; for (j = 0; j < (n-1); j++) { k = j; c = fabs(a[k*n+j]); for (i = j + 1; i < n; i++) { if ((d = fabs(a[i*n+j])) > c) k = i, c = d; } if (c < DBL_EPSILON) { ...
gmt_gaussjordan
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_gcal_from_rd(GMT_CTRL *GMT, int64_t date, GMT_GCAL *gcal) { int64_t v3; int v4; double v5; int year; int v7; int v8; double v9; int day_w; int corexn; int tempyear; int64_t prior_days; gcal->day_w = calclock_cal_imod(date, 7); gcal->year = calclock_gyear_from_rd(date); v3 = gmt_rd_...
void gmt_gcal_from_rd (struct GMT_CTRL *GMT, int64_t date, struct GMT_GCAL *gcal) { int64_t prior_days, tempdate; int corexn, tempyear; gcal->day_w = calclock_cal_imod (date, 7); gcal->year = calclock_gyear_from_rd (date); prior_days = date - gmt_rd_from_gymd (GMT, gcal->year, 1, 1); gcal->day_y = (un...
gmt_gcal_from_rd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_gdal_read_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { _BOOL4 v6; float nodata; float v9; int subset; uint64_t j; uint64_t ja; uint64_t jb; uint64_t jc; uint64_t jd; uint64_t...
int gmt_gdal_read_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { struct GMT_GDALREAD_IN_CTRL *to_gdalread = NULL; struct GMT_GDALREAD_OUT_CTRL *from_gdalread = NULL; int nBand, subset; uint64_t i, j, row, col; ch...
gmt_gdal_read_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_gdal_read_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { float nodata; GMT_GDALREAD_IN_CTRL *to_gdalread; GMT_GDALREAD_OUT_CTRL *from_gdalread; if (!strcmp(header->name, "=")) { GMT_Report(GMT->parent, 1u, "Pipes cannot be used within the GDAL interface.\n"); return 7; } el...
int gmt_gdal_read_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { struct GMT_GDALREAD_IN_CTRL *to_gdalread = NULL; struct GMT_GDALREAD_OUT_CTRL *from_gdalread = NULL; if (!strcmp (header->name, "=")) { GMT_Report (GMT->parent, GMT_MSG_NORMAL, "Pipes cannot be used within the GDAL interface.\n");...
gmt_gdal_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_gdal_write_grd(GMT_CTRL *GMT, GMT_GRID_HEADER *header, float *grid, double *wesn, unsigned int *pad, unsigned int complex_mode) { int v7; char *v8; double v9; char *v10; float v11; uint64_t v12; char *v13; float v14; uint64_t v15; char *v16; fl...
int gmt_gdal_write_grd (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header, float *grid, double wesn[], unsigned int *pad, unsigned int complex_mode) { uint64_t node = 0, ij, imag_offset, imsize; int first_col, last_col; int first_row, last_row; unsigned int width_out; unsigned int height_out; unsigned int ...
gmt_gdal_write_grd
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_gdal_write_grd_info(GMT_CTRL *GMT, GMT_GRID_HEADER *header) { return 0; }
int gmt_gdal_write_grd_info (struct GMT_CTRL *GMT, struct GMT_GRID_HEADER *header) { gmt_M_unused(GMT); gmt_M_unused(header); return (GMT_NOERROR); }
gmt_gdal_write_grd_info
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_genper(GMT_CTRL *GMT, double lon, double lat, double *xt, double *yt) { double v5; double v6; double cosx; double sinx; double *yta; double *xta; double lata; double lona; GMT_CTRL *GMTa; double sin_lat; double cos_lat; double sin_dlon; double cos_dlon; double x; double y; doubl...
void gmt_genper (struct GMT_CTRL *GMT, double lon, double lat, double *xt, double *yt) { double dlon, sin_lat, cos_lat, sin_dlon, cos_dlon; double cosc, sinc; double x, y, kp; double angle; dlon = lon - GMT->current.proj.central_meridian; while (dlon < -GMT_180) dlon += 360.0; while (dlon > 180.0) dlon -= 360.0...
gmt_genper
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_genper_reset(GMT_CTRL *GMT, bool reset) { if (GMT->current.proj.projection != 305 || !GMT->current.proj.windowed) return 0; if (reset) { GMT_Report(GMT->parent, 6u, "Revert to old genper crossing/overlap functions\n"); GMT->current.map.crossing = (unsigned int (*)( GMT_CT...
bool gmt_genper_reset (struct GMT_CTRL *GMT, bool reset) { if (GMT->current.proj.projection == GMT_GENPER && GMT->current.proj.windowed) { if (reset) { GMT_Report (GMT->parent, GMT_MSG_DEBUG, "Revert to old genper crossing/overlap functions\n"); GMT->current.map.crossing = &map_rect_crossing; GMT-...
gmt_genper_reset
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_geo_ellipse(GMT_CTRL *GMT, double lon, double lat, double major, double minor, double azimuth) { double central_meridian; double cosx; double sinx; double azimutha; double minora; double majora; double lata; double lona; GMT_CTRL *GMTa; int i; int N; double sin_azim...
void gmt_geo_ellipse (struct GMT_CTRL *GMT, double lon, double lat, double major, double minor, double azimuth) { int i, N; double delta_azimuth, sin_azimuth, cos_azimuth, sinp, cosp, ax, ay, axx, ayy, bx, by, bxx, byy, L; double center, *px = NULL, *py = NULL; struct GMT_DATASEGMENT *S = NULL; major *= 500...
gmt_geo_ellipse
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_geo_line(GMT_CTRL *GMT, double *lon, double *lat, uint64_t n) { GMT->current.plot.n = gmt_geo_to_xy_line(GMT, lon, lat, n); if (GMT->current.plot.n) gmt_plot_line(GMT, GMT->current.plot.x, GMT->current.plot.y, GMT->current.plot.pen, GMT->current.plot.n, 0); }
void gmt_geo_line (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t n) { if ((GMT->current.plot.n = gmt_geo_to_xy_line (GMT, lon, lat, n)) == 0) return; gmt_plot_line (GMT, GMT->current.plot.x, GMT->current.plot.y, GMT->current.plot.pen, GMT->current.plot.n, PSL_LINEAR); }
gmt_geo_line
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmt_geo_polarcap_segment(GMT_CTRL *GMT, GMT_DATASEGMENT *S, double **lon, double **lat) { uint64_t v5; double *x_perim; double *y_perim; uint64_t k0_0; uint64_t m; uint64_t k; double yc; double dx_0; double pole_lat; uint64_t n; double *plon; double *pl...
uint64_t gmt_geo_polarcap_segment (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S, double **lon, double **lat) { uint64_t k0, perim_n, n_new, m, n = S->n_rows, k; double start_lon, stop_lon, yc = 0.0, dx, pole_lat = 90.0 * S->pole; double *x_perim = NULL, *y_perim = NULL, *plon = NULL, *plat = NULL; static cha...
gmt_geo_polarcap_segment
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_geo_polygons(GMT_CTRL *GMT, GMT_DATASEGMENT *S) { bool v2; bool add_pole; bool separate; int outline; GMT_DATASEGMENT *S2; GMT_DATASEGMENT *S2a; GMT_DATASEGMENT *S2b; uint64_t used; PSL_CTRL *PSL; char *type[2]; char *use[2]; char comment[72]; unsigned long v14; v14 = __readfsqword...
void gmt_geo_polygons (struct GMT_CTRL *GMT, struct GMT_DATASEGMENT *S) { struct GMT_DATASEGMENT *S2 = NULL; bool add_pole, separate; int outline = 0; uint64_t used = 0; char *type[2] = {"Perimeter", "Polar cap perimeter"}; char *use[2] = {"fill only", "fill and outline"}; char comment[GMT_LEN64] = {""...
gmt_geo_polygons
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_geo_rectangle(GMT_CTRL *GMT, double lon, double lat, double width, double height, double azimuth) { double central_meridian; double v7; double v8; double v9; double v10; double v11; double v12; double v13; double v14; double v15; double v16; double v17; double v...
void gmt_geo_rectangle (struct GMT_CTRL *GMT, double lon, double lat, double width, double height, double azimuth) { int jump; double sin_azimuth, cos_azimuth, sinp, cosp, x, y, x_prime, y_prime, rho, c, dim[3]; double sin_c, cos_c, center, lon_w, lat_w, lon_h, lat_h, xp, yp, xw, yw, xh, yh; struct PSL_CTRL *PS...
gmt_geo_rectangle
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_geo_to_cart(GMT_CTRL *GMT, double lat, double lon, double *a, bool degrees) { double v5; double cosx; double sinx; bool degreesa; double *aa; double lona; double lata; GMT_CTRL *GMTa; double clat; double slon; unsigned long v15; GMTa = GMT; lata = lat; lona = l...
void gmt_geo_to_cart (struct GMT_CTRL *GMT, double lat, double lon, double *a, bool degrees) { double clat, clon, slon; gmt_M_unused(GMT); if (degrees) { lat *= D2R; lon *= D2R; } sincos (lat, &a[GMT_Z], &clat); sincos (lon, &slon, &clon); a[GMT_X] = clat * clon; a[GMT_Y] = clat * slon; }
gmt_geo_to_cart
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_geo_to_xy(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { ((void (*)(GMT_CTRL *, double *, double *, double, double))GMT->current.proj.fwd)(GMT, x, y, lon, lat); *x = GMT->current.proj.origin[0] + *x * GMT->current.proj.scale[0]; *y = *(double *)((char *)&lo...
bool gmt_geo_to_xy (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { if (gmt_M_is_dnan (lon) || gmt_M_is_dnan (lat)) {(*x) = (*y) = GMT->session.d_NaN; return true;} (*GMT->current.proj.fwd) (GMT, lon, lat, x, y); (*x) = (*x) * GMT->current.proj.scale[GMT_X] + GMT->current.proj.origin[GMT_X];...
gmt_geo_to_xy
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
uint64_t gmt_geo_to_xy_line(GMT_CTRL *GMT, double *lon, double *lat, uint64_t n) { unsigned int *pen; uint64_t v5; unsigned int *v6; uint64_t v7; unsigned int *v8; uint64_t v9; unsigned int *v10; uint64_t v11; unsigned int *v12; uint64_t v13; bool cartesian; bool this...
uint64_t gmt_geo_to_xy_line (struct GMT_CTRL *GMT, double *lon, double *lat, uint64_t n) { uint64_t j, k, np, n_sections; bool last_inside = false, this_inside, jump, cartesian = !gmt_M_is_geographic (GMT, GMT_IN); unsigned int sides[4]; unsigned int nx; double xlon[4], xlat[4], xx[4], yy[4]; double this_x, ...
gmt_geo_to_xy_line
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_geo_to_xy_noshift(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { ((void (*)(GMT_CTRL *, double *, double *, double, double))GMT->current.proj.fwd)(GMT, x, y, lon, lat); *x = GMT->current.proj.scale[0] * *x; *y = GMT->current.proj.scale[1] * *y; re...
bool gmt_geo_to_xy_noshift (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { if (gmt_M_is_dnan (lon) || gmt_M_is_dnan (lat)) {(*x) = (*y) = GMT->session.d_NaN; return true;} (*GMT->current.proj.fwd) (GMT, lon, lat, x, y); (*x) = (*x) * GMT->current.proj.scale[GMT_X]; (*y) = (*y) * GMT->curre...
gmt_geo_to_xy_noshift
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
bool gmt_geo_to_xy_noshiftscale(GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { ((void (*)(GMT_CTRL *, double *, double *, double, double))GMT->current.proj.fwd)(GMT, x, y, lon, lat); return 0; }
bool gmt_geo_to_xy_noshiftscale (struct GMT_CTRL *GMT, double lon, double lat, double *x, double *y) { if (gmt_M_is_dnan (lon) || gmt_M_is_dnan (lat)) {(*x) = (*y) = GMT->session.d_NaN; return true;} (*GMT->current.proj.fwd) (GMT, lon, lat, x, y); return false; }
gmt_geo_to_xy_noshiftscale
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
unsigned int gmt_geo_vector(GMT_CTRL *GMT, double lon0, double lat0, double azimuth, double length, GMT_PEN *pen, GMT_SYMBOL *S) { double lon0a; lon0a = lon0; if ((S->v.status & 0x200000) == 0) { *(float *)&lon0 = plot_inch_to_degree_scale(GMT); LOD...
unsigned int gmt_geo_vector (struct GMT_CTRL *GMT, double lon0, double lat0, double azimuth, double length, struct GMT_PEN *pen, struct GMT_SYMBOL *S) { unsigned int warn; if ((S->v.status & PSL_VEC_SCALE) == 0) { S->v.scale = plot_inch_to_degree_scale (GMT); S->v.status |= PSL_VEC_SCALE; } if (S->v.st...
gmt_geo_vector
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_geo_wedge(GMT_CTRL *GMT, double xlon, double xlat, double radius, char unit, double az_start, double az_stop, unsigned int mode) { int v8; int v9; unsigned int v10; double radiusa; int n_arc; int k; int kk; int kka; int n_path; double px; double py; ...
void gmt_geo_wedge (struct GMT_CTRL *GMT, double xlon, double xlat, double radius, char unit, double az_start, double az_stop, unsigned int mode) { int n_arc, k, kk, n_path; uint64_t n_new; double d_az, px, py, qx, qy, L, plat, plon, qlon, qlat, az, rot_start, E[3], P[3], Q[3], R[3][3]; struct GMT_DATASEGME...
gmt_geo_wedge
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
void gmt_geoz_to_xy(GMT_CTRL *GMT, double x, double y, double z, double *x_out, double *y_out) { double v6; double x0; double y0[2]; *(_QWORD *)&y0[1] = __readfsqword(0x28u); j_gmt_geo_to_xy(GMT, x, y, &x0, y0); v6 = j_gmt_z_to_zz(GMT, z); gmt_xyz_to_xy(GMT, x0, y0[0], v6, x_out, y_ou...
void gmt_geoz_to_xy (struct GMT_CTRL *GMT, double x, double y, double z, double *x_out, double *y_out) { double x0, y0; gmt_geo_to_xy (GMT, x, y, &x0, &y0); gmt_xyz_to_xy (GMT, x0, y0, gmt_z_to_zz (GMT, z), x_out, y_out); }
gmt_geoz_to_xy
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
int gmt_get_V(char arg) { int mode; if (!arg) return 4; if ((unsigned int)arg > 0x76 || arg < 48) return -1; switch (arg) { case '0': case 'q': mode = 0; break; case '1': case 'c': mode = 3; break; case '2': case 'v': return 4; case '3': case 'l': mode = 5; b...
int gmt_get_V (char arg) { int mode = GMT_MSG_QUIET; switch (arg) { case 'q': case '0': mode = GMT_MSG_QUIET; break; case 'n': mode = GMT_MSG_NORMAL; break; case 't': mode = GMT_MSG_TICTOC; break; case 'c': case '1': mode = GMT_MSG_COMPAT; break; case 'v': case '2': case '\0': mode ...
gmt_get_V
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
GMTAPI_CTRL *gmt_get_api_ptr(GMTAPI_CTRL *ptr) { if (ptr) return ptr; gmtapi_report_error(0, 27); return 0; }
struct GMTAPI_CTRL * gmt_get_api_ptr (struct GMTAPI_CTRL *ptr) { if (ptr == NULL) return_null (NULL, GMT_NOT_A_SESSION); return (ptr); }
gmt_get_api_ptr
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0
double gmt_get_aspatial_value(GMT_CTRL *GMT, int col, GMT_DATASEGMENT *S) { char *v3; int id; uint64_t k; for (k = 0;; ++k) { if (k >= *(unsigned int *)((char *)&stru_21510.r_offset + (_QWORD)GMT)) { GMT_Report( GMT->parent, 1u, "Warning: No aspatial value found for column %d [Ret...
double gmt_get_aspatial_value (struct GMT_CTRL *GMT, int col, struct GMT_DATASEGMENT *S) { uint64_t k; int64_t scol = col; int id; char *V = NULL; for (k = 0; k < GMT->common.a.n_aspatial; k++) { if (scol != GMT->common.a.col[k]) continue; id = gmt_get_ogr_id (GMT->current.io.OGR, GMT->common.a.name[k]); ...
gmt_get_aspatial_value
gmt-5.4.4
sci-geosciences
O0/sci-geosciences/gmt-5.4.4/libgmt.so.5.4.4
ida
O0