How to use the pysat.instruments.methods.nasa_cdaweb function in pysat

To help you get started, we’ve selected a few pysat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pysat / pysat / pysat / instruments / erg_lepi.py View on Github external
platform = 'erg'
name = 'lepi'

# dictionary of data 'tags' and corresponding description
tags = {'': 'omni flux data'}
sat_ids = {'': ['']}
test_dates = {'': {'': pysat.datetime(2017, 4, 1)}}

remote_site = 'https://ergsc.isee.nagoya-u.ac.jp'
fname = 'erg_lepi_l2_omniflux_{year:04d}{month:02d}{day:02d}_v03_00.cdf'
supported_tags = {'': {'': fname}}
# use the CDAWeb methods list files routine
# the command below presets some of the methods inputs, leaving
# those provided by pysat available when invoked
list_files = functools.partial(cdw.list_files,
                               supported_tags=supported_tags)

# use the default CDAWeb method
# no other information needs to be supplied here
# pysatCDF is used to load data
load = cdw.load
basic_tag = {'dir': '/data/ergsc/satellite/erg/lepi/l2/omniflux/',
             'remote_fname': '{year:4d}/{month:2d}/' + fname,
             'local_fname': fname}
supported_tags = {'': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags,
                             remote_site=remote_site)

# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
                                      remote_site=remote_site,
github pysat / pysat / pysat / instruments / erg_lepe.py View on Github external
platform = 'erg'
name = 'lepe'

# dictionary of data 'tags' and corresponding description
tags = {'': 'omni flux data'}
sat_ids = {'': ['']}
test_dates = {'': {'': pysat.datetime(2017, 4, 1)}}

remote_site = 'https://ergsc.isee.nagoya-u.ac.jp'
fname = 'erg_lepe_l2_omniflux_{year:04d}{month:02d}{day:02d}_v01_00.cdf'
supported_tags = {'': {'': fname}}
# use the CDAWeb methods list files routine
# the command below presets some of the methods inputs, leaving
# those provided by pysat available when invoked
list_files = functools.partial(cdw.list_files,
                               supported_tags=supported_tags)

# use the default CDAWeb method
# no other information needs to be supplied here
# pysatCDF is used to load data
load = cdw.load
basic_tag = {'dir': '/data/ergsc/satellite/erg/lepe/l2/omniflux/',
             'remote_fname': '{year:4d}/{month:2d}/' + fname,
             'local_fname': fname}
supported_tags = {'': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags,
                             remote_site=remote_site)

# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
                                      remote_site=remote_site,
github pysat / pysat / pysat / instruments / erg_lepi.py View on Github external
sat_ids = {'': ['']}
test_dates = {'': {'': pysat.datetime(2017, 4, 1)}}

remote_site = 'https://ergsc.isee.nagoya-u.ac.jp'
fname = 'erg_lepi_l2_omniflux_{year:04d}{month:02d}{day:02d}_v03_00.cdf'
supported_tags = {'': {'': fname}}
# use the CDAWeb methods list files routine
# the command below presets some of the methods inputs, leaving
# those provided by pysat available when invoked
list_files = functools.partial(cdw.list_files,
                               supported_tags=supported_tags)

# use the default CDAWeb method
# no other information needs to be supplied here
# pysatCDF is used to load data
load = cdw.load
basic_tag = {'dir': '/data/ergsc/satellite/erg/lepi/l2/omniflux/',
             'remote_fname': '{year:4d}/{month:2d}/' + fname,
             'local_fname': fname}
supported_tags = {'': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags,
                             remote_site=remote_site)

# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
                                      remote_site=remote_site,
                                      supported_tags=supported_tags)


# code should be defined below as needed
def default(self):
    """Default customization function.