argopy.ArgoDOI

argopy.ArgoDOI#

class ArgoDOI(hashtag=None, fs=None, cache=True)[source]#

Argo GDAC snapshot DOI access and discovery

Examples

Listing 60 Load DOI meta-data#
from argopy import ArgoDOI

doi = ArgoDOI()  # If you don't know where to start, just load the primary Argo DOI record
doi = ArgoDOI('95141')  # To point directly to a snapshot ID
doi = ArgoDOI(hashtag='95141')
doi = ArgoDOI(fs=httpstore(cache=True))
Listing 61 Searching for a specific DOI snapshot#
# Return doi closest to a given date:
ArgoDOI().search('2020-02')

# Return doi closest to a given date for a specific network:
ArgoDOI().search('2020-02', network='BGC')
Listing 62 Working with DOIs#
doi = ArgoDOI('95141')

doi.download()  # Trigger download of the DOI file
doi.file  # Easy to read list of file(s) associated with a DOI record
doi.dx  # http link toward the DOI snapshot webpage
__init__(hashtag=None, fs=None, cache=True)[source]#

Methods

__init__([hashtag, fs, cache])

dates([network])

Mapping of DOI snapshot hashtag(s) to their publication date(s)

download()

Trigger download of a DOI tar.gz file

search(date[, network])

Search the DOI record the closest to a given date

Attributes

doi

DOI component (without hashtag)

dx

DOI url

file

DOI tar.gz file properties