Skip to content

Produce emit level 1a products (reconstructed, depacketized, uncompressed data, time referenced, annotated with ancillary information reassembled into scenes)

License

Notifications You must be signed in to change notification settings

emit-sds/emit-sds-l1a

Repository files navigation

emit-sds-l1a

Description

NOTE - See the develop branch - set as default - for the latest updates.

Welcome to the EMIT Level Level 1A science data system repository. To understand how this repository is linked to the rest of the emit-sds repositories, please see the repository guide.

This repository contains scripts for executing the various EMIT L1A PGEs. These PGEs include the following functions:

  • Depacketizing science frames from CCSDS stream files
  • Depacketizing engineering data from CCSDS
  • Decompressing and reassembling raw image files in ENVI format
  • Reformatting BAD STO files into NetCDF files

Dependency Requirements

This repository is based on Python 3.x. See emit-sds-l1a/setup.py for specific dependencies.

Installation Instructions

Clone the repository:

git clone https://github.jpl.nasa.gov/emit-sds/emit-sds-l1a.git

Run pip install:

cd emit-sds-l1a
pip install -e .

Clone the emit-ios repository

git clone https://github.jpl.nasa.gov/emit/emit-ios.git

Install the emit-ios repository

cd emit-ios
pip install -e .

Example Execution Commands

Depacketizing Science Frames

python depacketize_science_frames.py <ccsds_path>

Depacketizing Engineering Data

./run_l1a_eng.sh <ccsds_path> <work_dir> <edp_exe>

Where the "edp_exe" is the path to the engineering data processor executable.

Decompressing and Reassembling Raw Images

python reasssemble_raw_cube.py <frames_dir> --flexcodec_exe <flexcodec_exe> --constants_path <constants_path> --init_data_path <init_data_path>

Where the "flexcodec_exe" is the path to the decompression executable and the constants_path and init_data_path are decompression files.

Reformatting BAD STO Files

python reformat_bad.py <bad_sto_dir>

About

Produce emit level 1a products (reconstructed, depacketized, uncompressed data, time referenced, annotated with ancillary information reassembled into scenes)

Resources

License

Stars

Watchers

Forks

Packages

No packages published