Skip to Content.

mget-help - Re: [mget-help] Create lines from vector components raster

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


From: "Jason Roberts" <>
To: "" <>, "Stjernholm Michael" <>
Subject: Re: [mget-help] Create lines from vector components raster
Date: Sat, 21 Aug 2010 02:24:22 -0400

Dear Michael,

I am sorry for the slow response; I am on holiday until 29 August.

I believe this problem is a bug in the tool that I introduced sometime in the last few months. I made some changes to underlying code that the tool relies on but did not go back and test the tool. I believe those changes must have broken it. I'm sorry for this mistake.

I can fix this problem in the next release of MGET but that will have to wait until I return. If you need a fix faster, you can manually edit the file C:\Python25\Lib\site-packages\GeoEco\SpatialAnalysis\Lines.py and fix the problem yourself. To do that, remove (or comment out) the following two lines of code:

        if xGeoArray.CellWidth != xGeoArray.CellHeight:
            Logger.RaiseException(ValueError(_(u'The X components raster and Y components raster have different cell heights ...

Those shoudl be lines 58 and 59 of the file you have. After deleting them, try the tool again.

Best regards,

Jason



On Mon 08/16/10 3:54 PM , "Stjernholm, Michael" sent:
Hi Jason
 
I'm trying to create vector shape files from u, v data set of  "Ocean Surface Current Analysis (OSCAR) Third Degree Resolution data " in ArcGIS 9.3.1 based on the GeoEco-0.8a9.win32-py2.5
 
I have extracted the u and v components from a smaller part of the "world" from a single date using clip_management function to Erdas .img format.
The 2 components have exact same extent, spatial reference system (a dummy projected system) and same cell size (0.3333333) in X and Y.
 
Blocked image
 
 
When I run the "Create vectors from vector components raster" I get the following message output:
 
Executing: ArcGISLinesFromVectorComponentRasters C:\GeoPhysical\OceanSurfaceCurrentAnalysis\oscar_vel2009\u_Layer_sept15Clip.img C:\GeoPhysical\OceanSurfaceCurrentAnalysis\oscar_vel2009\v_layer_sep15Clip.img C:\GeoPhysical\OceanSurfaceCurrentAnalysis\oscar_vel2009\SurfaceCurrents.gdb\Currents_sept15_09 1
Start Time: Mon Aug 16 21:48:46 2010
Running script ArcGISLinesFromVectorComponentRasters...
Creating lines in C:\GeoPhysical\OceanSurfaceCurrentAnalysis\oscar_vel2009\SurfaceCurrents.gdb\Currents_sept15_09 from vector component rasters C:\GeoPhysical\OceanSurfaceCurrentAnalysis\oscar_vel2009\u_Layer_sept15Clip.img and C:\GeoPhysical\OceanSurfaceCurrentAnalysis\oscar_vel2009\v_layer_sep15Clip.img.
ValueError: The components rasters do not have square cells (the cell width differs from the cell height). Please provide component rasters with square cells.
: The components rasters do not have square cells (the cell width differs from the cell height). Please provide component rasters with square cells.
Failed to execute (ArcGISLinesFromVectorComponentRasters).
End Time: Mon Aug 16 21:48:50 2010 (Elapsed Time: 4.00 seconds)
 
Do you have clues of what goes wrong ?
 
Best regards
 
Michael
 
Aarhus University
National Environmental research Institute
4000 Roskilde
Denmark
 
 
Archives powered by MHonArc.
Top of Page