gmtconvert is not able to return time converted input from wrappers

Open
#8,836 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, julia
Domain
cli

Research direction

Start with the gmtconvert wrapper path shown in the reproducer and compare how converted output is handled when returned in memory versus written to a file. Verify the TIME_EPOCH and TIME_UNIT parameters with the sample1d input; done means the wrapper returns the converted time values instead of the unchanged input.

Written by the indexing model from the issue text.

Description

feature request
using GMT

result = sample1d([0 0; 4 1], inc=0.5);
gmtconvert(result, f="i0t/o0T", par=(TIME_EPOCH="1969-07-21T02:56:00", TIME_UNIT=:d))

Returns the same as input (telling it to save to file, works). The reason seems convoluted as the workflow follows quite different paths for return as memory address (the wrappers output) or when saving to file.

Dominant language
C
Stars
997
Forks
420
Avg merge
13h 27m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/gmt

All issues in GenericMappingTools/gmt

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.