Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
- From: Jason Roberts <>
- To: Rachael Orben <>, "" <>
- Subject: RE: [mget-help] Finding fronts in SST images
- Date: Fri, 1 Apr 2022 00:04:01 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=duke.edu; dmarc=pass action=none header.from=duke.edu; dkim=pass header.d=duke.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SRDP/ej1avxcgOJPfBhU+paEzjVUiBejrD5U2ZvdI5M=; b=jl1cVntB99ZHKKo8cZhqLlIhhXEGxn+vvtFjh63zRYlr9tl0vTzKxtsSvzyi2KL78btNGI9X1qmNHdbL8ZOebVuIc5n3LaC6VBsfmWOkV+EKsLha92Ot6zmxv4goVB9pGnmZokqJSt/6JprS/+zor+tbWKOIAM5x7c+FGs3+FWjvyT26PU2gQ6ld0Aex4GKFBmI+aumUUYvNwaIgfiv0go/pHG/QdxAKdV16EB6TSY0vWCnmA6LZU7hel9+Men8VFbEhrH6jqFZ+JcmYQFvMDiP7sTf72mlQUxCE0ZYwHBsX9hA/kcCvukAbnOBfo/m8R/ZLTwrI3OqMUmtMeQu4hA==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hgA4gdjSMp6I0Ir5YxILa1j9lAWXdhVnJEnZHzN+O2nNKx7+e48/4mIn/7R9bvQYPKeeLNlnPPu5Kz2/yzbfsfbs3yY2B84XqalHqbG+xlfDReQ3D/oFV5N5WHxg/SzHNtucH3yRyxpnE7gBzhCIWZ/I0bCdIV6uOaJijglWvW6pREH0qB0y2/j6ukLXn3KBzqGYtsPJmrvvo8us3wxm30Cv1jYxmS5Nc/G5lQWMOYgcqvwRbBHn8V+6jw6VF1NGF7+FcOq/UqUthP2QtqjuyZcUdtmx3/IcXGB7UtY723NfkNHDqlyE0dZjRqrQRWSHgNcHvCVuzw8qMsOmuctb1g==
Hi Rachael,
Thanks for your interest in MGET. It is definitely possible to run the C-C tool programmatically. Assuming you have ArcGIS, the simplest way to do so is to create a geoprocessing model and then export it to a Python script. I forget exactly how to do this export in ArcGIS. In any case, it will show how to invoke the tool from ArcGIS’s Python extension module (arcpy or arcgisscripting).
A more advanced method is to call into MGET’s Python modules directly. We have some partial documentation on this, but our funding for developing it ran out quite some time ago and we were never able to take MGET to the point of having a Python API we could fully support. So the documentation is fairly spotty. You can see what is available for the C-C tool:
If you are pretty skilled in Python you can probably take it from here. From a Python command line, the most simple example would be:
>>> from GeoEco.Logging import Logger >>> Logger.Initialize() >>> >>> from GeoEco.OceanographicAnalysis.Fronts import CayulaCornillonEdgeDetection >>> CayulaCornillonEdgeDetection.DetectEdgesInArcGISRaster(r'C:\Temp\SomeSSTRaster.img', 3.0, r'C:\Temp\Fronts.img')
In my experience, the C-C tool is pretty complicated and often requires some tweaking of the parameters to get good results. I suggest you prototype everything from ArcGIS and make sure you’re getting the results there that you like, and THEN undertake the job of automating it from code. There’s no point in doing the latter only to find out that the tool won’t give good results.
Anyway, once you have it working in Python, you can probably use one of the Python interoperability packages from R if you want to call Python from R. I’m not sure about Matlab. A long time ago, I was communicating with Alistair Hobday, who shared an experimental Matlab implementation of C-C that he wrote. I could probably dig that up for you, if you preferred to work purely in Matlab. But I don’t recall anything about that code and could not help you get it working.
Best, Jason
From: <>
On Behalf Of Rachael Orben
Hi,
I am interested in using the Cayula-Cornillon Fronts tool from MGET programmatically via R or Matlab (or even python). Do you know if anyone has been able to do so?
Thanks for your help, Rachael
-- ~~~~~~~~~~~~~~~~ Rachael A. Orben PhD (she/her) Assistant Professor (Sr. Research) | Department of Fisheries, Wildlife, & Conservation Sciences | Oregon State University | Hatfield Marine Science Center | Newport, Oregon 97365 |
- [mget-help] Finding fronts in SST images, Rachael Orben, 03/31/2022
- RE: [mget-help] Finding fronts in SST images, Jason Roberts, 03/31/2022
Archive powered by MHonArc 2.6.19.