I am trying to make a CALIPSO CALIOP 532 nm Extinction Coefficient Plot from an hdf4 file that looks like this: https://hdfeos.org/zoo/MORE/LaRC/CALIPSO/CAL_LID_L2_05kmAPro-Standard-V4-21.2021-01-10T21-34-11ZN.hdf.py.png
I am attempting to use this sample python script: https://hdfeos.org/zoo/MORE/LaRC/CALIPSO/CAL_LID_L2_05kmAPro-Standard-V4-21.2021-01-10T21-34-11ZN.hdf.py
I used miniconda to create an environment where I loaded in matplotlib, numpy, and pyhdf libraries. I then ran this script in VSCode Python version 3.12.3 and ran into some issues with the libraries (I've included a screenshot of the errors I received). I was wondering if anybody has seen this issue before and knows how to troubleshoot.
Otherwise, what is another way to create an extinction coefficient plot?
CALIPSO Extinction Coefficient Plot Python Code
-
- Posts: 1
- Joined: Tue Jul 09, 2024 10:43 am America/New_York
CALIPSO Extinction Coefficient Plot Python Code
- Attachments
-
- Capture.PNG (96.47 KiB) Not viewed yet
Filters:
-
- User Services
- Posts: 98
- Joined: Wed Sep 25, 2019 10:53 am America/New_York
- Has thanked: 1 time
Re: CALIPSO Extinction Coefficient Plot Python Code
Dear Sidneyhipp,
Thank you for contacting us.
A Subject Matter Expert has been notified of your question and will reply back to you shortly.
Warm Regards.
Thank you for contacting us.
A Subject Matter Expert has been notified of your question and will reply back to you shortly.
Warm Regards.
-
- Subject Matter Expert
- Posts: 165
- Joined: Mon Mar 22, 2021 3:55 pm America/New_York
- Has thanked: 1 time
- Been thanked: 11 times
Re: CALIPSO Extinction Coefficient Plot Python Code
Hello @sidneyhipp
Thank you for your interest in CALIPSO data.
I used Anaconda instead of Miniconda and successfully plotted the graph with the code you provided.
If you are interested in using Anaconda you can download it here.
Once you have it, there are a few options to create your conda envrionment:
1. Create a YAML file.
What the YAML file will consists of:
name: CALIPSO_env
channels:
- conda-forge
dependencies:
- numpy=2.0.0
- matplotlib=3.8.4
- pyhdf=0.11.4
Then run the following command: conda env create -f environment.yml
2. Create environment with commands
To create environment run the command: conda create -n CALIPSO_env
Then install the following libraries:
conda install conda-forge::numpy
conda install conda-forge::matplotlib
conda install conda-forge::pyhdf
I do not have Miniconda installed on my computer and if you wish to continue using it, you can contact the HDF-EOS Tools and Information Center, they're the ones that created the code:
eoshelp@hdfgroup.org
Please let us know if you have any questions.
Regards,
ASDC
Thank you for your interest in CALIPSO data.
I used Anaconda instead of Miniconda and successfully plotted the graph with the code you provided.
If you are interested in using Anaconda you can download it here.
Once you have it, there are a few options to create your conda envrionment:
1. Create a YAML file.
What the YAML file will consists of:
name: CALIPSO_env
channels:
- conda-forge
dependencies:
- numpy=2.0.0
- matplotlib=3.8.4
- pyhdf=0.11.4
Then run the following command: conda env create -f environment.yml
2. Create environment with commands
To create environment run the command: conda create -n CALIPSO_env
Then install the following libraries:
conda install conda-forge::numpy
conda install conda-forge::matplotlib
conda install conda-forge::pyhdf
I do not have Miniconda installed on my computer and if you wish to continue using it, you can contact the HDF-EOS Tools and Information Center, they're the ones that created the code:
eoshelp@hdfgroup.org
Please let us know if you have any questions.
Regards,
ASDC