Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/nickssl/pyspedas
Browse files Browse the repository at this point in the history
  • Loading branch information
nickssl committed Feb 1, 2024
2 parents f67e9a7 + 33f7e4b commit ea1e83e
Show file tree
Hide file tree
Showing 8 changed files with 717 additions and 152 deletions.
65 changes: 65 additions & 0 deletions pyspedas/erg/ground/camera/camera_omti_asi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,72 @@ def camera_omti_asi(
time_clip=False,
ror=True
):
"""
Load data from OMTI all sky imagers
Parameters
----------
trange: list of str
time range of interest [starttime, endtime] with the format
'YYYY-MM-DD','YYYY-MM-DD'] or to specify more or less than a day
['YYYY-MM-DD/hh:mm:ss','YYYY-MM-DD/hh:mm:ss']
Default: ['2020-08-01', '2020-08-02']
suffix: str
The tplot variable names will be given this suffix. Default: ''
site: str or list of str
The site or list of sites to load.
Valid values: 'abu', 'ath', 'drw', 'eur', 'gak', 'hlk', 'hus', 'isg',
'ist', 'ith', 'kap', 'ktb','mgd', 'nai', 'nyr', 'ptk', 'rik', 'rsb',
'sgk', 'sta', 'syo', 'trs', 'yng', 'all'
Default: ['all']
wavelength: str, int, list of str, or list of int
Valid values: [5577, 5725, 6300, 7200, 7774]
Default: 5577
get_support_data: bool
If true, data with an attribute "VAR_TYPE" with a value of "support_data"
or 'data' will be loaded into tplot. Default: False
varformat: str
The CDF file variable formats to load into tplot. Wildcard character
"*" is accepted. Default: None (all variables will be loaded).
varnames: list of str
List of variable names to load. Default: [] (all variables will be loadee)
downloadonly: bool
Set this flag to download the CDF files, but not load them into
tplot variables. Default: False
notplot: bool
Return the data in hash tables instead of creating tplot variables. Default: False
no_update: bool
If set, only load data from your local cache. Default: False
uname: str
User name. Default: None
passwd: str
Password. Default: None
time_clip: bool
Time clip the variables to exactly the range specified in the trange keyword. Default: False
ror: bool
If set, print PI info and rules of the road. Default: True
Returns
-------
Examples
________
"""
site_code_all = ['abu', 'ath', 'drw', 'eur', 'gak', 'hlk',
'hus', 'isg', 'ist', 'ith', 'kap', 'ktb',
'mgd', 'nai', 'nyr', 'ptk', 'rik', 'rsb',
Expand Down
63 changes: 63 additions & 0 deletions pyspedas/erg/ground/geomag/gmag_isee_fluxgate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,70 @@ def gmag_isee_fluxgate(
time_clip=False,
ror=True
):
"""
Load data from ISEE Fluxgate Magnetometers
Parameters
----------
trange: list of str
time range of interest [starttime, endtime] with the format
'YYYY-MM-DD','YYYY-MM-DD'] or to specify more or less than a day
['YYYY-MM-DD/hh:mm:ss','YYYY-MM-DD/hh:mm:ss']
Default: ['2020-08-01', '2020-08-02']
suffix: str
The tplot variable names will be given this suffix. Default: ''
site: str or list of str
The site or list of sites to load.
Valid values: 'msr', 'rik', 'kag', 'ktb', 'lcl', 'mdm', 'tew', 'all'
Default: ['all']
datatype: str or list of str
The data types to load. Valid values: '64hz', '1sec', '1min', '1h', 'all'
Default: 'all'
get_support_data: bool
If true, data with an attribute "VAR_TYPE" with a value of "support_data"
or 'data' will be loaded into tplot. Default: False
varformat: str
The CDF file variable formats to load into tplot. Wildcard character
"*" is accepted. Default: None (all variables will be loaded).
varnames: list of str
List of variable names to load. Default: [] (all variables will be loadee)
downloadonly: bool
Set this flag to download the CDF files, but not load them into
tplot variables. Default: False
notplot: bool
Return the data in hash tables instead of creating tplot variables. Default: False
no_update: bool
If set, only load data from your local cache. Default: False
uname: str
User name. Default: None
passwd: str
Password. Default: None
time_clip: bool
Time clip the variables to exactly the range specified in the trange keyword. Default: False
ror: bool
If set, print PI info and rules of the road. Default: True
Returns
-------
Examples
________
"""
site_code_all = ['msr', 'rik', 'kag', 'ktb', 'lcl', 'mdm', 'tew']
tres_all=['64hz', '1sec', '1min', '1h']
if isinstance(datatype, str):
Expand Down
Loading

0 comments on commit ea1e83e

Please sign in to comment.