Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
From: | "Jason Roberts" <> |
---|---|
To: | "'Haddow, Gregory'" <>, <> |
Subject: | RE: [mget-help] shapefile to binary rater for reef ID |
Date: | Mon, 2 Jul 2012 13:56:36 -0400 |
Gregory,
Sorry for my delayed response. Here are some simple instructions based on
the UNEP WCMC 2003 database (http://data.unep-wcmc.org/datasets/14).
1. Download that database. I chose that one for the purpose of this example
because it is relatively small (300 MB compressed). But it is out of date
and you probably have your own data you want to use. In case you want to use
this one: you have to provide your contact info and project description,
accept their terms and conditions, and go through an email exchange. It is
all automated so you don't have to wait long to obtain access.
2. Clip it to your region of interest. For example, clip to Hawaii: LEFT =
-180, RIGHT = -150, BOTTOM = 10, TOP = 35. An easy way to accomplish this in
ArcGIS is to use the Select tool with the default parameters (leave
Expression blank) but then configure the environment settings for the tool
to specify the Processing Extent. If you do not know how to do that, Google
for the article titled "an overview of geoprocessing environments".
3. Project the clipped polygons to the coordinate system you plan to use for
the analysis. Typically this is a Mercator coordinate system--most providers
of ocean currents data use that.
4. Use the Polygon To Raster tool to convert the polygons to a raster. Use
the default parameters, except set the cell size to whatever resolution the
data provider claims the data are good for. For example, the data I used
here are said to have 1 km resolution, so I used 1000 meters as the cell
size. There is one other important parameter. In order to have a buffer
around all of your reefs, you need to specify the Processing Extent in the
environment settings again. Otherwise the output raster will be clipped to
the minimum rectangle that encloses your reefs. *BUT* because your polygons
are now in a projected coordinate system, you need to specify the values in
that system, not in decimal degrees! You can use the Extent dropdown to pick
your projected shapefile. The extent Top/Right/Bottom/Left box will then be
populated with values from that file. These are the minimum rectangle (in
meters!). Increase them out by whatever you think is needed to allow larvae
to "loop back" to those reefs within the duration of your simulation.
5. You now have a raster that has a variety of values wherever there is
reef, and No Data where there is not reef. Now convert this to a binary
raster using the Con tool. Supply the raster from step 4 as input. Then
simply input the number 1 for the Input True Raster Or Conditional Value
parameter. Run it.
You will now have a binary raster at 1 km (or whatever) resolution that has
the value 1 where there is reef, and No Data where there is not reef.
I hope that helps. If you are finding this kind of stuff difficult, I kindly
ask you to find a local ArcGIS expert who can help you out. I do want to
ensure people can run the tool but do not have time to provide individual
support for basic GIS operations. Eventually we will have a detailed example
that will include the steps. I am again sorry that we don't have one now...
Best,
Jason
-----Original Message-----
From: Haddow, Gregory
[mailto:]
Sent: Wednesday, June 27, 2012 6:16 AM
To:
<>
Subject: [mget-help] shapefile to binary rater for reef ID
Dear Jason,
Thank you for the reply to my previous email. The instructions have helped
greatly however would you please be able to elaborate on the conversion of
the shape file to binary rater section. I am having problems converting my
observation locations to this rater.
Many thanks
Gregory
Sorry for my delayed response. Here are some simple instructions based on
the UNEP WCMC 2003 database (http://data.unep-wcmc.org/datasets/14).
1. Download that database. I chose that one for the purpose of this example
because it is relatively small (300 MB compressed). But it is out of date
and you probably have your own data you want to use. In case you want to use
this one: you have to provide your contact info and project description,
accept their terms and conditions, and go through an email exchange. It is
all automated so you don't have to wait long to obtain access.
2. Clip it to your region of interest. For example, clip to Hawaii: LEFT =
-180, RIGHT = -150, BOTTOM = 10, TOP = 35. An easy way to accomplish this in
ArcGIS is to use the Select tool with the default parameters (leave
Expression blank) but then configure the environment settings for the tool
to specify the Processing Extent. If you do not know how to do that, Google
for the article titled "an overview of geoprocessing environments".
3. Project the clipped polygons to the coordinate system you plan to use for
the analysis. Typically this is a Mercator coordinate system--most providers
of ocean currents data use that.
4. Use the Polygon To Raster tool to convert the polygons to a raster. Use
the default parameters, except set the cell size to whatever resolution the
data provider claims the data are good for. For example, the data I used
here are said to have 1 km resolution, so I used 1000 meters as the cell
size. There is one other important parameter. In order to have a buffer
around all of your reefs, you need to specify the Processing Extent in the
environment settings again. Otherwise the output raster will be clipped to
the minimum rectangle that encloses your reefs. *BUT* because your polygons
are now in a projected coordinate system, you need to specify the values in
that system, not in decimal degrees! You can use the Extent dropdown to pick
your projected shapefile. The extent Top/Right/Bottom/Left box will then be
populated with values from that file. These are the minimum rectangle (in
meters!). Increase them out by whatever you think is needed to allow larvae
to "loop back" to those reefs within the duration of your simulation.
5. You now have a raster that has a variety of values wherever there is
reef, and No Data where there is not reef. Now convert this to a binary
raster using the Con tool. Supply the raster from step 4 as input. Then
simply input the number 1 for the Input True Raster Or Conditional Value
parameter. Run it.
You will now have a binary raster at 1 km (or whatever) resolution that has
the value 1 where there is reef, and No Data where there is not reef.
I hope that helps. If you are finding this kind of stuff difficult, I kindly
ask you to find a local ArcGIS expert who can help you out. I do want to
ensure people can run the tool but do not have time to provide individual
support for basic GIS operations. Eventually we will have a detailed example
that will include the steps. I am again sorry that we don't have one now...
Best,
Jason
-----Original Message-----
From: Haddow, Gregory
[mailto:]
Sent: Wednesday, June 27, 2012 6:16 AM
To:
<>
Subject: [mget-help] shapefile to binary rater for reef ID
Dear Jason,
Thank you for the reply to my previous email. The instructions have helped
greatly however would you please be able to elaborate on the conversion of
the shape file to binary rater section. I am having problems converting my
observation locations to this rater.
Many thanks
Gregory
Archives powered by MHonArc.