Reading and Mapping Aerosol Data From a MODIS HDF4 File

Slides:



Advertisements
Similar presentations
COMPUTER PROGRAMMING Task 1 LEVEL 6 PROGRAMMING: Be able to use a text based language like Python and JavaScript & correctly use procedures and functions.
Advertisements

Why python? Automate processes Batch programming Faster Open source Easy recognition of errors Good for data management What is python? Scripting programming.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
LAADS Web Tutorial
FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
Query Manager. QM is a collection of tools you can use to obtain information from the AS/400 database Used to –select, arrange, and analyze information.
Welcome to E-Prime E-Prime refers to the Experimenter’s Prime (best) development studio for the creation of computerized behavioral research. E-Prime is.
RegRipper Harlan Carvey.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Linux Tools. Tar tar – (Tape Archive). This is a tool for archiving files and directory hierarchies. tar output can be sent to stdout using the – file.
MATLAB File Management. MATLAB User File Management Matlab provides a group of commands to manage user files. For more information, type help iofun. pwd.
Python CGI programming
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
Internet and Distributed Representation of Agent Based Model by- Manish Sharma.
CSI 1390: Introduction to Computers TA: Tapu Kumar Ghose Office: STE 5014
1 AOD to PM2.5 to AQC – An excel sheet exercise ARSET Applied Remote Sensing Education and Training A project of NASA Applied Sciences Pawan Gupta Salt.
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
CPSC 217 T03 Week I Part #1: Unix and HELLO WORLD Hubert (Sathaporn) Hu.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
Creating a backup file Downloading a backup file Uploading a backup file Resetting or restoring your course from a backup file.
Intro Python: Variables, Indexing, Numbers, Strings.
Compiling a C Program. Before we can begin we must open a telnet session to phobos. There are a number of ways to do this, but the easiest is to click.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
WDO-It! 102 Workshop: Using an abstraction of a process to capture provenance UTEP’s Trust Laboratory NDR HP MP.
Part 4 Processing and saving data with CGI/Perl Psychological Science on the Internet: Designing Web-Based Experiments From the Ground Up R. Chris Fraley.
1 AOD to PM2.5 to AQC – An excel sheet exercise ARSET Applied Remote Sensing Education and Training A project of NASA Applied Sciences Pawan Gupta NASA.
How to Install Eclipse Click hereClick here to download Eclipse.
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Introduction to IMSL and VNI Welcome to OIT’s seminar on IMSL Numerical Libraries Sam Gordji, Weir 107.
Basic Unix Commands & GCC Saurav Karmakar Spring 2007.
Chapter 15. Modules Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.
Install CB 1.8 on Ubuntu. Steps Followed Install Ubuntu (Ubuntu LTS) on Virtual machine – (VMware Workstation) (
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
Web Scraping with Python and Selenium. What is Web Scraping?  Software technique for extracting info from websites Get information programmatically that.
Package Administration 3/14/ Software package administration adds software to systems and removes software from systems Sun and its third-party.
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
16-1 PC-HYSPLIT WORKSHOP Workshop Agenda Introduction to HYSPLIT Introduction.ppt Model Overview Model_Overview.ppt Meteorological Data Meteorological_Data.ppt.
Converting Matrix Market matrices to Matlab format The Matrix Market is an interesting collection of matrices from a variety of applications.
Intelligent Data Systems Lab. Department of Computer Science & Engineering Python Installation guide 컴퓨터의 개념 및 실습.
 CSC 215 : Procedural Programming with C C Compilers.
Ideal Ref How to use it.
Python’s Modules Noah Black.
Python Lesson 12 Mr. Kalmes.
Python 14 Mr. Husch.
Managing results files
Python Lesson 12 Mr. Kalmes.
Extracting NDVI from MODIS 12-band Satellite Imagery
Python I/O.
Welcome to E-Prime E-Prime refers to the Experimenter’s Prime (best) development studio for the creation of computerized behavioral research. E-Prime is.
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
File Handling.
Python Lessons 13 & 14 Mr. Kalmes.
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
RegRipper Harlan Carvey.
This is where R scripts will load
Task 1 Computer Programming LEVEL 6 PROGRAMMING:
Python 9 Mr. Husch.
Fink Screen Captures.
Scripts In Matlab.
This is where R scripts will load
Python 16 Mr. Husch.
Lab 2: Terminal Basics.
Lab 3: File Permissions.
Input and Output Python3 Beginner #3.
Python Lessons 13 & 14 Mr. Husch.
Java Lessons Mr. Kalmes.
Python 16 Mr. Husch.
A brief introduction to the nutrient tool-kit, getting R Studio to work and checking the data Martyn Kelly
ME 123 Computer Applications I Lecture 7: Basic Functions 3/20/03
Presentation transcript:

Reading and Mapping Aerosol Data From a MODIS HDF4 File NASA ARSET http://arset.gsfc.nasa.gov/ For Python help, contact: Justin Roberts-Pierel justin.roberts-pierel@nasa.gov

Mapping AOD Derived PM 2.5 Data Objective: Extract AOD data from a MODIS HDF4 file (or series of files), calculate PM 2.5 from the data, and create a map of the results This python script will do the following: Read a text file containing the names of the HDF4 files you are analyzing Read in each MODIS Aerosol Product L2 HDF4 file Display information (average, standard deviation, etc.) about AOD in each file. By default it will display the following SDS depending on resolution: MOD04_L2 (10km) : AOD_550_Dark_Target_Deep_Blue_Combined MOD04_3K (3km) : Optical_Depth_Land_And_Ocean Asks user if they would like to provide a slope and intercept for PM 2.5 calculation. If the user declines, then default values are used: Slope: 40 Intercept: 3 Asks user if they would like to see a map of the PM 2.5 data, opens if desired. Once map is closed, asks user if they would like to save the map If desired, saves the map as a .png file with the same name as the HDF4 file Moves on to the next file in your file list, if applicable

What you can expect… This is the python code from the pm25_modis.py file This is the associated README File, and the information required to run the script These are the required packages to run this script

Folder Contents Here is the correct format for the “fileList.txt” file. This is the what the inside of your target folder (where you save the downloaded files) should look like. There should be “fileList.txt” containing the list of filenames you would like to analyze, any hdf4 files you are analyzing, and the pm25_modis.py file

Accessing your target folder and viewing the contents Follow these steps to access your target folder and view its contents The command “cd” changes your current directory The command “dir” displays the contents of the current directory

Python file outputs Execute the file using the “python” command. After executing the file, you will be asked if you would like to analyze each file in your file list

Python file outputs Information about the file will be printed, and you will be asked if you would like to provide a slope and intercept for PM 2.5 calculation

Python file outputs Default values are chosen if you select “No”, and then you are asked if you would like to see a map of the resulting data

Python file outputs

Python file outputs You will be asked if you would like to save the map, and then (if your list has more than one file) the program will ask you if you would like to analyze the next file in your list

Python file outputs

Python file outputs Here is the map saved in your target folder as a .png file