Select to view content in your preferred language

Converting ASCII UK wind speed file to a raster image

6514
18
08-24-2011 07:49 AM
DanielBourne
Emerging Contributor
Hi

Could any body help me convert the UK wind speed file provided by DECC found below to raster from ASCI. I have searched the forums and cant find any solution apart from phython which i dont know how to use, and evrytime i use the Tool in ARCmap it gives an error. Does any body have a solution or the UK wind speed data in raster format

http://www.decc.gov.uk/en/content/cms/meeting_energy/wind/windsp_databas/windsp_databas.aspx

hope someone can help
0 Kudos
18 Replies
AshleyDurston
Emerging Contributor
I can import the file as a raster now but its just a grey rectangle?

When it says delete first column I select column A in excel, hit delete but it just deletes the entire dataset?
0 Kudos
JeffreySwain
Esri Regular Contributor
If it imported correctly and is a simple color, then you can apply a standard deviation stretch.  You will have to generate statistics on the ascii file in order for the stretch to be applied.  That is if the data made it in successfully after following the steps that Eric suggested.
0 Kudos
AshleyDurston
Emerging Contributor
Tried creating statistics and applying the stretch but I just get a black rectangle with lots of white dots across it.

This is what my .asc file looks like:

ncols 700
nrows 1300
xllcorner 0
yllcorner 0
cellsize 1000
"(  0  1299) 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0;"
"(100  1299) 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0;"
"(200  1299) 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0;"

is this correct? I've deleted the return carriage at the end also.

Ashley.
0 Kudos
SteveLynch
Esri Regular Contributor
It is not the correct format, please see the help for the correct format.

You can't have strings and semicolons.

I.e
    NCOLS 3
    NROWS 2
    XLLCORNER 378922
    YLLCORNER 4072345
    CELLSIZE 30
    43 2 45
    35 45 65

Steve
0 Kudos
AshleyDurston
Emerging Contributor
As I mentioned before I'm quite a novice with ArcGIS. This is for an important University project relating to wind farms in the UK. Am I able to send you the .ASC file for you to look at it and manipulate for use in ArcGIS? I've been trying for days to get this to work but have yet to be successful. Sorry to be a nuisance.

Ashley.
0 Kudos
AshleyDurston
Emerging Contributor
In fact it's probably easier if I just give you the download link:

http://www.decc.gov.uk/en/content/cms/meeting_energy/wind/windsp_databas/windsp_databas.aspx

It's under 'Methods of Accessing the Windspeed Database' I'm using the file 'Speed25'

Again, Thank you.
0 Kudos
AshleyDurston
Emerging Contributor
my asc file:

NCOLS 700
NROWS 1300
XLLCORNER 0
YLLCORNER 0
CELLSIZE 1000     
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0

this is what i get:
0 Kudos
SteveLynch
Esri Regular Contributor
The text file must contain 700 * 1300 legit values from the 6th row onwards. It'll then use the first 700 for the northern most part of the raster and so on with the very southern most part coming from the very last 700 values.


It appears that you have non numeric values somewhere after the 6th row or you don't have 700*1300 values.

Steve
0 Kudos
alexdoney
New Contributor
hi im currently trying to convert this file into a raster file but i am stuck. I tried the process on here but i can seem to get it to work when i put it into Arc scene it freezes and crashes and i dont know what im doing wrong. Isit possible for anyone to send me the files they used that work because i really need the data to use on my geography dissertation. thanks alex
0 Kudos