DMSP converter
Project description
This is a simple converter for the source files of the DMSP detector SSJ/4.
This package provides 3 modules for use:
- from_gz
- make_dataset
- transform_dataset
The features of these modules are described below.
- The
unzip(filepath, mode='to_file')function of the from_gz module unpacks the gz-archive. The first parameter of the function takes the path to the file. The second parameter must specify the unpacking mode.
Two unpacking modes are available: "to_file" (default) and "to_ram".
When the "to_file" mode is selected, the function creates a new binary file in the archive directory with the archive name, removing its extension.
When the "to_ram" mode is selected, the function returns the contents of the archive - a set of bytes.
- The
make_xr_dataset(filepath)function of the make_dataset module parses binary data, forming a set of source data from a binary DMSP file.
The input parameter for the function is the path to the archive file with the "gz" extension.
The function returns a set of source data that requires conversion to physical quantities. The type of the returned value is xarray.core.dataset.Dataset (i.e. the xarray library is used).
- The
make_transform_dataset(filepath)function of the transform_dataset module parses binary data, forming a set of transformed data from a binary DMSP file.
The input parameter for the function is the path to the archive file with the "gz" extension.
The function returns a set of data converted to physical quantities. The type of the returned value is xarray.core.dataset.Dataset (i.e. the xarray library is used).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydmsp-0.1.8.tar.gz.
File metadata
- Download URL: pydmsp-0.1.8.tar.gz
- Upload date:
- Size: 97.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27d43fc191c514a3f8032e6d695463c8380289d5026b9e3fe8c3f4518d7cb992
|
|
| MD5 |
5b20cf9dac9747089f2a41266017fba7
|
|
| BLAKE2b-256 |
1b8e66ea073698cf6f0b27e9b68d1690d06a3e0a0093582c175c437efea698b2
|
File details
Details for the file pydmsp-0.1.8-py3-none-any.whl.
File metadata
- Download URL: pydmsp-0.1.8-py3-none-any.whl
- Upload date:
- Size: 97.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16b9833d730ec2a6c1b3820f99cc02340e6443a5405fbf1094d26cc49c4676a8
|
|
| MD5 |
17317d41a3873a0e80f35bb72b324c94
|
|
| BLAKE2b-256 |
49d6193a74460e0724c06540167da5bee389a006c0f94d99642743c6836184bd
|