Skip to main content

A package for reading NASA PACE data files.

Project description

NASA-PACE-Data-Reader

This repository hosts a Python package designed to read L1C files from NASA PACE instruments, including HARP2, SPEXone, and OCI. Future development plans include the addition of readers for L2 aerosol and surface products.

Building and Uploading the Package:

To build and upload the package, you can either run the sh Install.sh script (ensure to specify the correct version), or follow the steps outlined below:


Example Usage:

Here is a simple example of how to use the package:

from nasa_pace_data_reader import L1

# Location of the file
fileName = '/Users/aputhukkudy/Downloads/PACE_HARP2.20220321T101844.L1C.5.2KM.V03.SIM2.1_.nc'

# Read the file
l1c = L1.L1C()
l1c_dict = l1c.read(fileName)

# Print the keys and the shape of the data
[print('{:>24}: {}'.format(key, l1c_dict[key].shape)) for key in l1c_dict.keys()][0]

pixel = [250,300]

# Load the plot class
plt_ = plot.Plot(l1c_dict)

# Set the dpi
plt_.setDPI(256)

# set which band to plot
band = 'NIR'
plt_.setBand(band)

# Plot the pixel
plt_.plotPixel(pixel[0], pixel[1])

# define the wavelengths and variables to plot
plt_.setInstrument()

# plot all vars and bands
plt_.plotPixelVars(pixel[0], pixel[1])

# plot only specific bands and vars
plt_.vars2plot = ['i', 'q', 'u']    # Order in the list is the order of plotting
plt_.bands2plot = ['NIR', 'blue']   # Order in the list is the order of plotting

# plot 
plt_.plotPixelVars(pixel[0], pixel[1], bands= plt_.bands2plot, alpha=0.5, linewidth=0.5) # you can pass any other arguments to the plot function

Change Log:


Key Improvements:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nasa_pace_data_reader-0.0.3.12.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nasa_pace_data_reader-0.0.3.12-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file nasa_pace_data_reader-0.0.3.12.tar.gz.

File metadata

  • Download URL: nasa_pace_data_reader-0.0.3.12.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for nasa_pace_data_reader-0.0.3.12.tar.gz
Algorithm Hash digest
SHA256 978d7a24099822f7f7fe23042d260f0f82d6b57676816afc3b3362d4d82e7ad3
MD5 451c38c54abae4fcfd2160c118ac794b
BLAKE2b-256 3f0e5ec9e4587ed6de505ebae35d4376891f307063c7ebd821a2cba1d849837c

See more details on using hashes here.

File details

Details for the file nasa_pace_data_reader-0.0.3.12-py3-none-any.whl.

File metadata

File hashes

Hashes for nasa_pace_data_reader-0.0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 a658bf7e81bf99deaea7a15e52015cea41d45fa609f3421c4ea1ccf91f0bfeb9
MD5 fbf38858c61c294e9e519201c9dc9c3d
BLAKE2b-256 65257502dfdcd5d32c0bac3276f4a5d31b4e647191bbaaf9e26332ceb4c1a30f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page