EMIT to ENVI using emit_tools
The instructions below explain how to set up Python on the lab computers in the SDSU Geography department to convert EMIT data from netCDF to ENVI format.
Open an anaconda PowerShell
Create a new conda environment in a folder within your 'Users' directory:
conda create --prefix C:\Users\dan.sousa\Downloads\new
Activate that new environment
conda activate C:\Users\dan.sousa\Downloads\new
Install mamba
conda install -c conda-forge mamba
Download and unzip emit_tools
https://github.com/nasa/EMIT-Data-Resources
Upper right: code > download ZIP
In downloads folder,
Right click file > extract here
Use mamba to install emit_tools
mamba env create -f C:\Users\dan.sousa\Downloads\EMIT-Data-Resources-main\setup\emit_tutorials.yml
Activate emit_tutorials
conda activate
C:\Users\dan.sousa\Downloads\new\emit_tutorials
Go here
https://github.com/emit-sds/emit-utils
Download code
Upper right: code > download ZIP
Right click file > extract here
Install emit_tools
pip install --editable C:\Users\dan.sousa\Downloads\emit-utils-develop
Run the code to convert EMIT data from netCDF to ENVI format:
python C:\Users\dan.sousa\Downloads\emit-utils-develop\emit_utils\emit_utils\reformat.py --orthorectify example.nc OUTPUT_DIR