This will check for cdfs on your computer. If they don't exist, or there's an updated version on the server, it will download from the server. It will then load the cdfs using spacepy.pycdf, and place them into a dictionary.
Project description
# getCDFs
This will check for cdfs on your computer. If they don't exist, or there's an updated version on the server, it will download from the server. It will then load the cdfs using spacepy.pycdf, and place them into a dictionary.
##Usage:
getCDFs(getCDFs(datetime, string, string, **kw):
date: Python datetime object containing the date that you want cdfs for.
craft: character - 'A' or 'B'.
species: character - 'H', 'He', or 'O'.
RBlevel: string - RBSPICE data level; '3PAP', '3', '2', '1', or '0'
Hlevel: string - HOPE data level; '3', or '2'
Hproduct: string - If using, HOPE level 3 data, which product; 'PA' or 'MOM'
Maglevel: string - MagEIS data level; '3', or '2'
EMlevel: string - EMFISIS data level; '4', '3', or '2'
PH: string describing which Time of Flight by Pulse Height product you want:
'LEHT'(Low Energy, High Time resolution) or 'HELT'(High Energy, Low Time resolution).
EMF: string describing which EMFISIS product you want:
('1sec', '4sec', or 'hires')+'-'+('gei', 'geo', 'gse', 'gsm', or 'sm').
check: When True, it will query the server for updated versions.
If False, then the server will not be queried at all.
If you don't have the file on your computer, it will not be downloaded.
Set this keyword to False if you do not have internet access.
The last five keywords describe which data product you want.
All is default, but if you set any one or more of them to True, will override this.
Returns: Python dictionary containing spacepy cdf objects.
Keys are 'TOFxE', 'TOFxPH', 'HOPE', 'MagEIS', and 'EMFISIS'
changeRoot()
On the first run, you will be asked to set a root directory where your files will be stored.
This function will allow you to change this.
This will check for cdfs on your computer. If they don't exist, or there's an updated version on the server, it will download from the server. It will then load the cdfs using spacepy.pycdf, and place them into a dictionary.
##Usage:
getCDFs(getCDFs(datetime, string, string, **kw):
date: Python datetime object containing the date that you want cdfs for.
craft: character - 'A' or 'B'.
species: character - 'H', 'He', or 'O'.
RBlevel: string - RBSPICE data level; '3PAP', '3', '2', '1', or '0'
Hlevel: string - HOPE data level; '3', or '2'
Hproduct: string - If using, HOPE level 3 data, which product; 'PA' or 'MOM'
Maglevel: string - MagEIS data level; '3', or '2'
EMlevel: string - EMFISIS data level; '4', '3', or '2'
PH: string describing which Time of Flight by Pulse Height product you want:
'LEHT'(Low Energy, High Time resolution) or 'HELT'(High Energy, Low Time resolution).
EMF: string describing which EMFISIS product you want:
('1sec', '4sec', or 'hires')+'-'+('gei', 'geo', 'gse', 'gsm', or 'sm').
check: When True, it will query the server for updated versions.
If False, then the server will not be queried at all.
If you don't have the file on your computer, it will not be downloaded.
Set this keyword to False if you do not have internet access.
The last five keywords describe which data product you want.
All is default, but if you set any one or more of them to True, will override this.
Returns: Python dictionary containing spacepy cdf objects.
Keys are 'TOFxE', 'TOFxPH', 'HOPE', 'MagEIS', and 'EMFISIS'
changeRoot()
On the first run, you will be asked to set a root directory where your files will be stored.
This function will allow you to change this.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
getCDFs-1.15.tar.gz
(4.5 kB
view details)
File details
Details for the file getCDFs-1.15.tar.gz
.
File metadata
- Download URL: getCDFs-1.15.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ff52a6309378204dc347e2ff23bd7e33ff61858e1f472c4966662593cdc34b |
|
MD5 | d86c0673f22c98b259d1533f3711f2cf |
|
BLAKE2b-256 | 72e4e046c06c758cbd73d20b55ea8a4185b18976de326f1d458be0bdb7afdb87 |