Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# we need to provide additional information
# directory location on CDAWeb ftp server
# formatting template for filenames on CDAWeb
# formatting template for files saved to the local disk
# a dictionary needs to be created for each sat_id and tag
# combination along with the file format template
# outer dict keyed by sat_id, inner dict keyed by tag
basic_tag = {'dir': '/pub/data/gold/level1c',
'remote_fname': '{year:4d}/{doy:03d}/' + fname,
'local_fname': fname}
supported_tags = {'cha': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags,
multi_file_day=multi_file_day)
# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
supported_tags=supported_tags,
multi_file_day=multi_file_day)
# code should be defined below as needed
def default(self):
"""Default customization function.
This routine is automatically applied to the Instrument object
on every load by the pysat nanokernel (first in queue).
Parameters
----------
self : pysat.Instrument
This object
list_files = functools.partial(cdw.list_files,
supported_tags=supported_tags)
# support load routine
# use the default CDAWeb method
load = cdw.load
# support download routine
# use the default CDAWeb method
basic_tag = {'dir': '/pub/data/international_space_station_iss/sp_fpmu',
'remote_fname': '{year:4d}/'+fname,
'local_fname': fname}
supported_tags = {'': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags)
# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
supported_tags=supported_tags)
def clean(inst):
"""Return FPMU data cleaned to the specified level.
Parameters
----------
inst : (pysat.Instrument)
Instrument class object, whose attribute clean_level is used to return
the desired level of data selectivity.
Returns
-------
Void : (NoneType)
data in inst is modified in-place.
# we need to provide additional information
# directory location on CDAWeb ftp server
# formatting template for filenames on CDAWeb
# formatting template for files saved to the local disk
# a dictionary needs to be created for each sat_id and tag
# combination along with the file format template
# outer dict keyed by sat_id, inner dict keyed by tag
basic_tag = {'dir': '/pub/data/gold/level1c',
'remote_fname': '{year:4d}/{doy:03d}/' + fname,
'local_fname': fname}
supported_tags = {'cha': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags,
multi_file_day=multi_file_day)
# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
supported_tags=supported_tags,
multi_file_day=multi_file_day)
# code should be defined below as needed
def default(self):
"""Default customization function.
This routine is automatically applied to the Instrument object
on every load by the pysat nanokernel (first in queue).
Parameters
----------
self : pysat.Instrument
This object
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.
This routine is automatically applied to the Instrument object
on every load by the pysat nanokernel (first in queue).
Parameters
----------
self : pysat.Instrument
This object
supported_tags = {'': {'dc_b': fname}}
list_files = functools.partial(cdw.list_files,
supported_tags=supported_tags)
# support load routine
# use the default CDAWeb method
load = cdw.load
# support download routine
# use the default CDAWeb method
basic_tag = {'dir': '/pub/data/cnofs/vefi/bfield_1sec',
'remote_fname': '{year:4d}/' + fname,
'local_fname': fname}
supported_tags = {'': {'dc_b': basic_tag}}
download = functools.partial(cdw.download, supported_tags)
# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
supported_tags=supported_tags)
def clean(inst):
"""Routine to return VEFI data cleaned to the specified level
Parameters
-----------
inst : (pysat.Instrument)
Instrument class object, whose attribute clean_level is used to return
the desired level of data selectivity.
Returns
--------
Void : (NoneType)
data in inst is modified in-place.
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,
supported_tags=supported_tags)
# code should be defined below as needed
def default(self):
"""Default customization function.
This routine is automatically applied to the Instrument object
on every load by the pysat nanokernel (first in queue).
Parameters
----------
self : pysat.Instrument
This object
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/mepi/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.
This routine is automatically applied to the Instrument object
on every load by the pysat nanokernel (first in queue).
Parameters
----------
self : pysat.Instrument
This object
supported_tags = {'': {'': fname}}
list_files = functools.partial(cdw.list_files,
supported_tags=supported_tags)
# support load routine
# use the default CDAWeb method
load = cdw.load
# support download routine
# use the default CDAWeb method
basic_tag = {'dir': '/pub/data/rocsat/ipei',
'remote_fname': '{year:4d}/'+fname,
'local_fname': fname}
supported_tags = {'': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags)
# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
supported_tags=supported_tags)
def clean(inst):
"""Routine to return ROCSAT-1 IVM data cleaned to the specified level
Parameters
-----------
inst : (pysat.Instrument)
Instrument class object, whose attribute clean_level is used to return
the desired level of data selectivity.
Returns
--------
Void : (NoneType)
data in inst is modified in-place.
# we need to provide additional information
# directory location on CDAWeb ftp server
# formatting template for filenames on CDAWeb
# formatting template for files saved to the local disk
# a dictionary needs to be created for each sat_id and tag
# combination along with the file format template
# outer dict keyed by sat_id, inner dict keyed by tag
basic_tag = {'dir': '/pub/data/gold/level1c',
'remote_fname': '{year:4d}/{day:03d}/' + fname,
'local_fname': fname}
supported_tags = {'cha': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags,
multi_file_day=multi_file_day)
# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
supported_tags=supported_tags,
multi_file_day=multi_file_day)
# code should be defined below as needed
def default(self):
"""Default customization function.
This routine is automatically applied to the Instrument object
on every load by the pysat nanokernel (first in queue).
Parameters
----------
self : pysat.Instrument
This object
supported_tags = {'': {'': fname}}
list_files = functools.partial(cdw.list_files,
supported_tags=supported_tags)
# support load routine
# use the default CDAWeb method
load = cdw.load
# support download routine
# use the default CDAWeb method
basic_tag = {'dir': '/pub/data/cnofs/plp/plasma_1sec',
'remote_fname': '{year:4d}/' + fname,
'local_fname': fname}
supported_tags = {'': {'': basic_tag}}
download = functools.partial(cdw.download, supported_tags)
# support listing files currently on CDAWeb
list_remote_files = functools.partial(cdw.list_remote_files,
supported_tags=supported_tags)
def clean(inst):
"""Routine to return C/NOFS PLP data cleaned to the specified level
Parameters
-----------
inst : (pysat.Instrument)
Instrument class object, whose attribute clean_level is used to return
the desired level of data selectivity.
Returns
--------
Void : (NoneType)
data in inst is modified in-place.