MCPcopy Create free account
hub / github.com/GenericMappingTools/gmt / gmtlib_time_array

Function gmtlib_time_array

src/gmt_support.c:15719–15732  ·  view source on GitHub ↗

! . */

Source from the content-addressed store, hash-verified

15717
15718/*! . */
15719unsigned int gmtlib_time_array (struct GMT_CTRL *GMT, double min, double max, struct GMT_PLOT_AXIS_ITEM *T, double **array) {
15720 /* When T->active is true we must return interval start/stop even if outside min/max range */
15721 unsigned int n;
15722 bool interval;
15723
15724 if (!T->active) return (0);
15725 interval = (T->type == 'i' || T->type == 'I'); /* Only true for i/I axis items */
15726 if (T->unit == 's' && T->interval <= 1.0)
15727 n = gmtlib_linear_array (GMT, min, max, T->interval, 0.0, array);
15728 else
15729 n = (unsigned int)gmtsupport_time_array (GMT, min, max, T->interval, T->unit, interval, array);
15730
15731 return (n);
15732}
15733
15734/*! . */
15735unsigned int gmtlib_load_custom_annot (struct GMT_CTRL *GMT, struct GMT_PLOT_AXIS *A, char item, double **xx, char ***labels) {

Callers 3

gmt_plot_timex_gridFunction · 0.85
gmtplot_timey_gridFunction · 0.85
gmtlib_coordinate_arrayFunction · 0.85

Calls 2

gmtlib_linear_arrayFunction · 0.85
gmtsupport_time_arrayFunction · 0.85

Tested by

no test coverage detected