Skip to main content

This is a simple converter for the source files of the DMSP detector SSJ/4.

This package provides 3 modules for use:

  1. from_gz
  2. make_dataset
  3. transform_dataset

The features of these modules are described below.

  1. 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.

  1. 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).

  1. 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).

Release files for pydmsp 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydmsp 0.1.8
File Size Uploaded
pydmsp-0.1.8.tar.gz 97.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydmsp 0.1.8
File Interpreter ABI Platform
pydmsp-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size:195.2 MB

Release files / pydmsp-0.1.8.tar.gz

Download URL pydmsp-0.1.8.tar.gz
Size 97.5 MB
Tags Source
SHA-256 checksum
How to use checksums
27d43fc191c514a3f8032e6d695463c8380289d5026b9e3fe8c3f4518d7cb992
BLAKE2b-256 checksum
How to use checksums
1b8e66ea073698cf6f0b27e9b68d1690d06a3e0a0093582c175c437efea698b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Release files / pydmsp-0.1.8-py3-none-any.whl

Download URL pydmsp-0.1.8-py3-none-any.whl
Size 97.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
16b9833d730ec2a6c1b3820f99cc02340e6443a5405fbf1094d26cc49c4676a8
BLAKE2b-256 checksum
How to use checksums
49d6193a74460e0724c06540167da5bee389a006c0f94d99642743c6836184bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page