Skip to content

Let gmt clear data be able to select an specific type of grid (not the whole planet). #7738

Closed

Description

@Esteban82

From the docs:

To only wipe your GMT server directory for Earth data, try:

gmt clear data=earth

I just discovered this module. But I think it would be great if I could select just a type of remote data set.
I am thinking something like. For example, to be able to use this just to delete the earth_faa data set.

gmt clear data=earth_faa

Activity

  1. added
    feature request
    on Aug 18, 2023
  2. PaulWessel commented on Aug 18, 2023

    @PaulWessel
    Contributor

    I need this too so will have a look later today

  3. self-assigned this
    on Aug 18, 2023
  4. anbj commented on Aug 18, 2023

    @anbj
    Contributor

    This module was new to me too.

    The description in gmt-doc:

    gmt clear items
    Deletes current defaults, or the cache, data or sessions directories.
    Choose between defaults (deletes the current gmt.conf file used for
    the current modern session), cache (deletes the user’s cache directory
    and all of its content), data (deletes the user’s data download directory
    and all of its content), or all (does all of the above).
    

    differs a bit from what is written in clear; e.g. defaults is not mentioned in the latter. I guess they both explain the same thing?

  5. anbj commented on Aug 18, 2023

    @anbj
    Contributor

    And maybe there should be a link from gmt-doc to the modules own doc, if applicable. E.g. clear, begin, figure, etc.

  6. Esteban82 commented on Aug 18, 2023

    @Esteban82
    MemberAuthor

    Great.

    @PaulWessel another feature that I would like/need is a direct way to only delete my local version gmt_data_server.txt.
    Right now, this can only be accomplished it if I do gmt clear data. Not with gmt clear data=earth.

  7. PaulWessel commented on Aug 18, 2023

    @PaulWessel
    Contributor

    Well, isn't this pretty direct?:

    rm -f ~/.gmt/server/gmt_data_server.txt

  8. Esteban82 commented on Aug 18, 2023

    @Esteban82
    MemberAuthor

    Well, isn't this pretty direct?:

    rm -f ~/.gmt/server/gmt_data_server.txt

    Yes, pretty direct.

  9. added a commit that references this issue on Aug 18, 2023
  10. Esteban82 commented on Aug 25, 2023

    @Esteban82
    MemberAuthor

    I think that this was already done by #7740. I am closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

feature request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions