Skip to Content.

mget-help - RE: [mget-help] connectivity tool

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


From: "Jason Roberts" <>
To: "'Dana Haggarty'" <>
Cc: <>
Subject: RE: [mget-help] connectivity tool
Date: Mon, 9 May 2011 23:54:16 -0400
Hi Dana,

I'm sorry you're seeing that error. It happens because the tool was designed
for situations where the reef cover raster was not a binary value (0 or 1)
but a range between 0 and 1. It is perhaps an overly restrictive design. I
will open a bug saying that we should allow a binary raster for situations
like yours where a binary raster is sufficient for your modeling purposes.

In the mean time, you can convert it to a floating point raster using the
ArcGIS Copy Raster tool (the one that comes with ArcGIS, not the MGET one).
That tool allows you to specify the Pixel Type of the output raster. Choose
32_BIT_FLOAT. (Note that the tool is buggy in some versions of ArcGIS. It
will sometimes report an error even after successfully copying the raster.
If you do get an error, refresh the destination directory in ArcCatalog to
see if the raster was actually created.)

Your project sounds interesting. Unfortunately I'm not sure the connectivity
tool will work well for your situation unless you have a source of high
resolution ocean currents data. I'm not an expert rockfish management in
Canada, but my understanding is that the BC rockfish conservation areas are
very coastal and scattered along the shelf. At the moment, the connectivity
tool facilitates studies using ocean currents data from Aviso, which has
global coverage but only 1/3 degree resolution and not very good performance
close to shore. Aviso also does not include tides. We are planning to add
support for HYCOM global currents at about 9 km resolution. That is a bit
better than Aviso, but HYCOM also does not include tides.

For your region, you want higher resolution currents, with tides if
possible. Do you know of such data for your region? Is there a high
resolution regional ocean model produced at UBC or elsewhere that you could
leverage? If so, I could probably assist you with manually manipulating that
data into a format that the connectivity tool could use as input.

That said, you're welcome to try the Aviso currents to see what happens. I
just don't know how robust the results will be at the fine spatial scale you
probably want to use.

Best,

Jason


-----Original Message-----
From: Dana Haggarty 
[mailto:]
 
Sent: Monday, May 09, 2011 9:33 PM
To: 

Subject: [mget-help] connectivity tool

Hi there,
I am a phd student at UBC. I am trying to use your coral connectivity 
tool to look at connectivity between rockfish conservation areas in BC. 
I've been excited to see if I can get it to work!

I have used a raster of the conservation area as the "reef" and a raster 
of modeled available adult habitat as the reef  cover (with no 
habitat=0, habitat =1).

The tool has not executed because I haven't got the available habitat 
raster in the correct format (see error message below). I tried to 
convert the raster to a floating points using the "Raster to Float" 
conversion tool, and although it ran successfully, I wasn't able to add 
the new raster to my project. Can you please give me some suggestions on 
what I need to do to get it into the correct format?

thanks very much!
Dana

------------
Executing: CoralReefConnectivityCreateSimulationFromArcGISRasters 
C:\Users\hp\Documents\GIS\RCAConnect RCA_raster3 AvailAdulthab1 
WaterMask_50 false
Start Time: Mon May 09 18:18:22 2011
Running script CoralReefConnectivityCreateSimulationFromArcGISRasters...
ValueError: The raster or raster layer AvailAdulthab1, specified for the 
reefCoverRaster parameter, is a 8-bit unsigned integer raster or raster 
layer but this function requires a raster or raster layer with one of 
the following pixel types: 32-bit floating point', '64-bit floating 
point. Please provide a raster or raster layer with an allowed pixel type.
<type 'exceptions.ValueError'>: The raster or raster layer 
AvailAdulthab1, specified for the reefCoverRaster parameter, is a 8-bit 
unsigned integer raster or raster layer but this function requires a 
raster or raster layer with one of the following pixel types: 32-bit 
floating point', '64-bit floating point. Please provide a raster or 
raster layer with an allowed pixel type.
Failed to execute (CoralReefConnectivityCreateSimulationFromArcGISRasters).
End Time: Mon May 09 18:18:23 2011 (Elapsed Time: 1.00 seconds)

-- 
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~
Dana Haggarty, M.Sc.
217 Machleary St.
Nanaimo BC, V9R 2G7
250-591-3723 or 250-668-2722


Archives powered by MHonArc.
Top of Page