Read, load, and process Mars Climate Sounder data
Reason this release was yanked:
dev
Project description
mcstools
Tools to read and process Mars Climate Sounder data.
Setup
Download or clone the repo:
$ git clone https://github.com/cloudspotting-on-mars/mcstools
Setup a virtual environment with python3 -m venv env and install with pip install -e .
Download data
See https://pds-atmospheres.nmsu.edu/data_and_services/atmospheres_data/MARS/atmosphere_temp_prof.html
Read a single file
To read in an L1B file as a DataFrame:
from mcstools import L1BReader
reader = L1BReader()
reader.read(path_to_file)
Load Data from PDS
To load data from PDS:
from mcstools import L1BLoader
loader = L1BLoader(pds=True)
loader.load_date_range("2016-01-01", "2016-01-02")
Find and load subset of L2 profiles
from mcstools import L2Loader
loader = L2Loader(pds=True)
ddr1_df = loader.load_date_range("2018-04-18", "2018-04-19", "DDR1")
ddr1_subset = ddr1[ddr1["Profile_lat"].between(-10, 10)]
ddr2 = loader.load("DDR2", profiles=ddr1_subset["Profile_identifier"])
Plot L1B radiances
To view the radiances for a single 4-hour L1B file, run
python mcstools/plotting/l1b_panel.py
That should bring up a dashboard in a browser allowing you to choose a 4-hour file at the top
(enter the date in YYMMDDHH0000 format).
You can switch between channels using the tabs.
The slider on the right allows you to set the colorbar limits (radiance units).
There are also tools to zoom in and out, pan, etc.
Preprocess data
To preprocess L1B data and reduce to standard in-track limb views:
from mcstools.preprocess.l1b import L1BStandardInTrack
preprocesser = L1BStandardInTrack()
df = preprocesser.process(df)
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 mcstools-0.0.5.tar.gz.
File metadata
- Download URL: mcstools-0.0.5.tar.gz
- Upload date:
- Size: 289.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05723356f689b48295bd201e8027c1908d5e95bc79e25e362e6a08f7527eaa7d
|
|
| MD5 |
7e57317254fb2b237d913b0e1cf6e18d
|
|
| BLAKE2b-256 |
5c254e4922010c93245106b1ade5ed641d99301b95e9b3becef30ddd7583cf1d
|
File details
Details for the file mcstools-0.0.5-py3-none-any.whl.
File metadata
- Download URL: mcstools-0.0.5-py3-none-any.whl
- Upload date:
- Size: 202.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9598164c5000529bd83b414300e78011b8621220eccc6995b5a39c375e17d62d
|
|
| MD5 |
96150d3369ec376a261652e5734f641c
|
|
| BLAKE2b-256 |
30c18d584047e89379e6567f0c2abe01f38ffdae80c9bc77a2afcbb21aa12275
|