python sst MODIS

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
giannismac
Posts: 4
Joined: Thu Jun 06, 2019 1:22 pm America/New_York
Answers: 0

python sst MODIS

by giannismac » Mon Jun 10, 2019 11:29 am America/New_York

Hallo
I would like to write code in python which takes as input (.nc) files from Level 2 MODIS parameter sst and converts them into geotiff. Do you know where i can find something like that?

Thank you in advance.

Tags:

OB SeaDAS - dshea
Subject Matter Expert
Subject Matter Expert
Posts: 259
Joined: Thu Mar 05, 2009 10:25 am America/New_York
Answers: 0
Been thanked: 2 times

python sst MODIS

by OB SeaDAS - dshea » Mon Jun 10, 2019 1:59 pm America/New_York

Actually we supply a python script that takes an L2 file and outputs an image in any projection the proj4 can create.  It can also output in many file formats including geottiff.

Check out $OCSSWROOT/scripts/l2mapgen.py

don

giannismac
Posts: 4
Joined: Thu Jun 06, 2019 1:22 pm America/New_York
Answers: 0

python sst MODIS

by giannismac » Tue Jun 11, 2019 4:49 am America/New_York

How can i see that ? from where? I want to run the script  directly in python and not from any external programm.

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

python sst MODIS

by gnwiii » Tue Jun 11, 2019 5:05 am America/New_York

Don mentioned the OCSSW script "l2mapgen.py"  If you have access to linux or MacOS you can install the OCSSW software from the SeaDAS GUI.  If not you may want to consider beampy (look in <SeaDAS_install_dir>\modules\beam-python-5.0.5-SNAPSHOT) or the newer "snappy" from ESA SNAP.

Post Reply