U.S. Geological Survey Open-File Report 2010-1251
Moderate-Resolution Sea Surface Temperature Data for the Nearshore North Pacific
Here a number of scripts are provided that were developed to process the SST data. The scripts are written in the Python Language. Python is a freely-available, open-source scripting language that is object oriented and is supported by ArcGIS as a framework for creating and executing Geoprocessor tasks. Python also runs as a stand-alone programming language. The scripts were built using Python release 2.5.1, which is included with ESRI's ArcGIS 9.3.1. ArcGIS 9.3.x also supports Python version 2.5.4, but does not support later Python versions. Python is downloadable from http://www.python.org/download/releases/2.5.4/. The PythonWin development environment provides a Graphic User Interface (GUI) for the python scripting editor. PythonWin is located in the "Python for Windows extensions" bundle available at http://sourceforge.net/projects/pywin32/. To use the scripts provided, the user will need access to ArcGIS 9.x software and install the Marine Geospatial Ecology Tools (MGET). MGET is available at http://code.env.duke.edu/projects/mget. The first step involved in preparing HDF SDS files for conversion to ArcGIS GRID files (preceding use of the processing scripts) is a manual renaming of the files to conform to ArcGIS specifications; specifically, the rasters may have filenames no longer than 13 characters and must begin with a letter (they may not begin with a number or symbol). The original HDF filenames violate both of these rules. As file naming conventions are a personal preference, a name-converting script is not provided here. However, for clarity of the processing scripts provided, note that our file-naming convention is "sstallyyyymm.hdf" for SST rasters, and "qualyyyymm.hdf" for quality rasters (where y = year and m = month). These scripts can be modified to the users' needs or run in sequence (as presented below) to obtain a similar dataset to those made available in this report. The point and polygon shapefile included in the data processing steps of the scripts are available for download in zipped form from the table below. Python Scripts
Shapefiles
*Marine Ecosystems of the World (Spalding and others, 2007) |