Skip to content

Commit

Permalink
Fix events for infinite symbols (#8611)
Browse files Browse the repository at this point in the history
* Fix

* Add GMT_KNOWN_FAILURE
  • Loading branch information
Esteban82 authored Jan 1, 2025
1 parent b877d72 commit 85b1b53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/psevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ GMT_LOCAL void psevents_set_outarray (struct GMT_CTRL *GMT, struct PSEVENTS_CTRL
out[t_col] = 0.0;
if (Ctrl->M.active[PSEVENTS_DZ]) out[z_col] += Ctrl->M.value[PSEVENTS_DZ][PSEVENTS_VAL1] * x; /* Changing of color via dz */
}
else if (finite_duration && t_now < t[PSEVENTS_T_END]) { /* We are within the normal display phase with nominal symbol size */
else if (t_now < t[PSEVENTS_T_END]) { /* We are within the normal display phase with nominal symbol size */
out[x_col] = 1.0;
out[i_col] = out[t_col] = 0.0; /* No intensity or transparency during normal phase */
}
Expand Down
2 changes: 2 additions & 0 deletions test/psevents/events.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash
# Test gmt psevents with some quakes

# GMT_KNOWN_FAILURE

ps=events.ps

#gmt convert "https://earthquake.usgs.gov/fdsnws/event/1/query.csv?starttime=2018-01-01%2000:00:00&endtime=2018-12-31%2000:00:00&minmagnitude=5&orderby=time-asc" \
Expand Down

0 comments on commit 85b1b53

Please sign in to comment.