Tag Info

New answers tagged

1

I would hit it with a python script. import numpy as np asc = open('yourfilename', 'r') grid = [] for line in asc: line = line.strip() if line == 'X Y Messwert': continue grid.append(map(float, line.split(' '))) asc.close() grid = np.array(grid) #naively get number of rows rows = np.sum(grid[:,0] == grid[0,0]) #naively get number of colums ...


2

According to http://www.gdal.org/frmt_xyz.html: Cells with same Y coordinates must be placed on consecutive lines which is not fulfilled by your dataset. So you can resort the tabular data with an external programmwe exchange X and Y in the header (you have to mirror your raster later) load the data as point data using Delimited text, then rasterize ...


2

You can easily open ASCII xyz triplicate data in QGIS under "Add Raster Data" with a "ASCII Gridded XYZ (.xyz)" file type. You can also covert it to a different format under the "Raster > Conversion > Translate (Convert format)" menu. Alternately, you can do this under the "Raster > Conversion > Rasterize" menu with a "Comma Separated Value (.csv)" file ...


0

Finally I've found a solution by bringing all of the following changes to my code: use arcpy.ArcSDESQLExecute() instead of arcpy.da Insert/Update cursors to update/populate the table (I had to do both operations and both types of cursors didn't really work in all situations). use # -*- coding:utf8 -*- in the beginning of the script, which is supposed to be ...


1

If the L3_tropo_ozone_columns_dec04.txt is the file your are trying to display then it needs to be reformatted. To display an ascii/txt file in ArcMap you need to have a 6 row header with the number of rows, number of columns, X left coordinate, Y bottom coordinate, cell resolution, and no data value. For example. ncols 270 nrows 730 ...



Top 50 recent answers are included