Upload
kyle-black
View
214
Download
0
Embed Size (px)
Citation preview
7/28/2019 L11_Python2
1/41
Auto/Semi-Automated processing
of ENVISAT ASAR imagery
of the Arctic Ocean
- Explore ArcGIS manual procedure
- Implement as a Python script
7/28/2019 L11_Python2
2/41
XUELONG cruise during CHINARE-2010
from July 1 Xianmen to Sept 20 Shanghai
http://www.utsa.edu/LRSG/Arctic/index.htm
7/28/2019 L11_Python2
3/41
XUELONG, crew, and staff
at Long-term Ice Station, Aug 17, 2010
http://www.utsa.edu/LRSG/Arctic/index.htm
7/28/2019 L11_Python2
4/41
"Summer sea ice motion..." by Ron Kwok, JPL
Geophysical Research Letters, Vol 35, 2008
Jul Aug
2003
2004
Note: Longitude lines
added for 0, 90, 150,
180, and 270 degrees
Purple lines mark the
main region covered
during by the XUELONG
during CHINARE-2010
7/28/2019 L11_Python2
5/41
"Summer sea ice motion..." by Ron Kwok, JPL
Geophysical Research Letters, Vol 35, 2008
Jul Aug
2005
2006
Note: Longitude lines
added for 0, 90, 150,
180, and 270 degrees
Purple lines mark the
main region covered
during by the XUELONG
during CHINARE-2010
7/28/2019 L11_Python2
6/41
Background for CHINARE-2010
While the XUELONG icebreaker went by sea,
ENVISAT took SAR imagery from space
XUELONG saw sea ice from Jul 21 to Aug 28
160 ENVISAT ASAR images covering Jul 23 to
Sep 28, plus 6 missing or damaged images
Data for one image takes up 100 to 500 MB
7/28/2019 L11_Python2
7/41
ENVISAT drawing
https://reader009.{domain}/reader009/html5/0408/
7/28/2019 L11_Python2
8/41
Desired results
Automated process to create image rasters and
boundary polylines and put them into a geodatabase
Reasonable to handle ENVISAT ASAR datasets as fastas they are produced by the satellite
Average for Beaufort Sea (Arctic Ocean) only
16 daily datasets ~ 0.8 GB compressed data
Average for entire Arctic and Antarctic Oceans
80 daily datasets ~ 4 GB compressed data
7/28/2019 L11_Python2
9/41
Step 1
Use web browser
Get ENVISAT ASAR data
In class: one dataset
Homework: multiple datasets
7/28/2019 L11_Python2
10/41
>>> www.polarview.aq
7/28/2019 L11_Python2
11/41
PolarView holds data only 1 month
Can filter by region
7/28/2019 L11_Python2
12/41
Click an image to preview
7/28/2019 L11_Python2
13/41
Can display list of images
Avg 16 daily datasets for Beaufort Sea
7/28/2019 L11_Python2
14/41
Arctic Ocean - sample 24 hours
35 datasets
7/28/2019 L11_Python2
15/41
Antarctic Ocean - sample 24 hours
28 datasets
7/28/2019 L11_Python2
16/41
Select and download datasets
7/28/2019 L11_Python2
17/41
Step 2
Uncompress and display original files
7/28/2019 L11_Python2
18/41
ESA compressed the datafiles twice
Uncompress twice
Open the nested folders
7/28/2019 L11_Python2
19/41
Original ASAR images are very dark
7/28/2019 L11_Python2
20/41
Fix brightness/contrast
7/28/2019 L11_Python2
21/41
All original files opened in ArcGIS
7/28/2019 L11_Python2
22/41
Step 3
Convert ASAR image area to raster of a polygon
7/28/2019 L11_Python2
23/41
Raster image pixel value: 16 bit range
Background/radar shadow data value = 0
7/28/2019 L11_Python2
24/41
Reclassify Tool (Spatial Analyst)
R l d l 0
7/28/2019 L11_Python2
25/41
Raster polygon data value = 0
Background/shadow data value = NoData
7/28/2019 L11_Python2
26/41
Step 4
Convert raster polygon to a shapefile polygon
R t t P l T l (C i )
7/28/2019 L11_Python2
27/41
Raster to Polygon Tool (Conversion)
(Note: Simply polygons off)
Sh fil l d t l 0
7/28/2019 L11_Python2
28/41
Shapefile polygon data value = 0
Background/shadow data value = NoData
7/28/2019 L11_Python2
29/41
Step 5
Convert shapefile polygon to shapefile polyline
7/28/2019 L11_Python2
30/41
Feature to Line (Data Management)
7/28/2019 L11_Python2
31/41
Shapefile polyline created
7/28/2019 L11_Python2
32/41
Files after creating image outline
7/28/2019 L11_Python2
33/41
Step 6
Clip background, keep only ASAR image data
7/28/2019 L11_Python2
34/41
Clip Tool (Data Management)
Background/shadow data value = NoData
7/28/2019 L11_Python2
35/41
Background/shadow data value = NoData
All other pixels = original ASAR image
ArcMap clipped image and polyline
7/28/2019 L11_Python2
36/41
ArcMap - clipped image and polyline
(Note: No spatial reference)
7/28/2019 L11_Python2
37/41
Define Projection Tool (Data Management)
What happens if you select a different polar projection?
ArcMap clipped image and polyline
7/28/2019 L11_Python2
38/41
ArcMap - clipped image and polyline
(With correct spatial reference)
Sample running of the script
7/28/2019 L11_Python2
39/41
Sample running of the scriptImport required modules
Tar-zip inbox folder - F:/Chinare_2010_ASAR/TarZipInbox
Tar-zip done folder - F:/Chinare_2010_ASAR/TarZipDone
Working data folder - F:/Chinare_2010_ASAR/WorkingGeodatabase outputs - F:/Chinare_2010_ASAR/Arctic_ArcGIS_10.gdb
Coordinate system - WGS 1984 NSIDC Sea Ice Polar Stereographic North.prj
Start processing loop
Working on dataset 1 of 1 named WSM_SS_20110420_220800_4276_4
Extract from tarzip file to dataset folder
Move ASAR data up to the dataset folder
Original spatial reference - UnknownRedefine as - WGS 1984 NSIDC Sea Ice Polar Stereographic North.prj
Calculate statistics
Build pyramids
Reclassify 0 to NoData and positive to 0
Convert reclassified raster to polygon
Convert polygon to polyline
Use polygon to clip original raster
Build pyramids for clipped raster
Copy polyline to output geodatabaseF:/Chinare_2010_ASAR/Working/WSM_SS_20110420_220800_4276_4\WSM_SS_20110420_22080
0_4276_4_polyline.shp Successfully converted: F:/Chinare_2010_ASAR/Arctic_ArcGI
S_10.gdb\WSM_SS_20110420_220800_4276_4_polyline
Copy clipped raster to output geodatabase
Successfully converted: F:/Chinare_2010_ASAR/Working/WSM_SS_20110420_220800_427
6_4\WSM_SS_20110420_220800_4276_4_clip.tif To F:/Chinare_2010_ASAR/Arctic_ArcGIS
_10.gdb\WSM_SS_20110420_220800_4276_4_clip
Finish processing loop
Estimates for Beaufort Sea (Arctic Ocean)
7/28/2019 L11_Python2
40/41
Estimates for Beaufort Sea (Arctic Ocean)
Average 16 daily datasets on PolarView
Downloading time not included
Processing time 80 minutes
Mac laptop with 1.8 GHz processor, running Windows 7
All data stored on external SSD via USB 2.0 connection
Approximate data sizes MB
Compressed dataset from PolarView 800 Uncompressed ASAR datafile (GeoTIFF) 2320
All ArcGIS working files after processing 3360
Image boundary and clipped raster 960
7/28/2019 L11_Python2
41/41
Questions?