Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ascii]

The American Standard Code for Information Interchange (ASCII) is a character encoding scheme for text representation in computers. For questions about .asc files, use the [esri-ascii-raster] tag instead.

1
vote
1answer
33 views

Can GRASS export an ESRI ASCII?

I have a raster in GRASS GIS and want to export it as a ASCII file following the ESRI format. This is my code r.out.ascii --overwrite input=XX@PERMANENT output="...\XX.asc" null_value=-9999 The file ...
1
vote
1answer
23 views

How to get the header values for an ASCII raster if the input raster is QgsRasterLayer type?

I'm trying to develop a QGIS plugin for converting the input raster to QgsRasterLayer type and, however, I don't know how to get all the header information to write it in the output raster. This is ...
0
votes
0answers
34 views

Importing multiple ASCII text files in ArcGIS as Rasters

I have a big number of ASCII text files which have the Esri ASCII Grid format but have been stored as .txt files rather than asc. I am trying to import them simultaneously as rasters to obtain mean ...
1
vote
1answer
30 views

Feeding gdalwarp with binary data instead of ascii, how to specify header information

I have a working pipeline where I download a tar.gz file which contains multiple binary files in the german RADOLAN format (Translate PNG obtained through RADOLAN from DWD's projection to EPSG:...
1
vote
1answer
56 views

Using UK Government Data in QGIS?

I've downloaded some .asc files from the UK Government. They are 1m resolution LIDAR tiles. Apparently. When I load them into QGIS, they appear with the nice thumbnails and everything. But I get ...
2
votes
0answers
32 views

Points and bioclim layers plot correctly in R, but not in Maxent.jar

I am trying to use Maxent.jar. This program uses a CSV file of points and ascii bioclim layers (basically, a map of the Americas with climate data) and overlays them on top of one another. I find ...
0
votes
1answer
31 views

How do I create a seamless raster from multiple polygons?

I have been attempting to create a total cover map of a 4x4 kM target area. I clipped the target area to my desired size and used the create polygon feature of ArcGIS to define all of the areas as '...
1
vote
1answer
89 views

Using datatype option from writeRaster with ascii files

I have to build a 8 bits raster as ascii (.asc). I'm trying to use R writeRaster fonction, however it is not working: Reproducible example: library(raster) rr <- raster(matrix(sample(1:100, 100)...
0
votes
0answers
92 views

Shapefile conversion to ascii grid

I'm working with shapefile files, but I need to convert to ASCII grid, and I was trying to use QGIS, but the following error occurred: File "/usr/share/qgis/python/plugins/GdalTools/tools/dialogBase....
0
votes
1answer
24 views

Divide all values in ASCII table (or raster file)

I have a pile of ASCII files representing 5min radar precipitation sums. The information is given in 1/10 mm which I need to convert into mm for further processing. Is there a way of doing this, ...
1
vote
1answer
269 views

data ASCII to .TIFF batch conversion (translate) error -QGis

I have multiple ASCII file that i want to convert into .iff file. They are saved in a separate file on my pc. I have also importet the all in QGis. To convert them to .tiff format i have used: raster ...
1
vote
1answer
143 views

Any workaround to extract plain text data in ASCII from `netCDF` file in R

I am wondering about how to proportionally split or subset the gridded dataset in netCDF format where data sources were provided by European Climate Assessments and dataset (link for data source). ...
0
votes
0answers
70 views

Converting .grd to .asc using MapBasic in MapInfo 16

Can someone please provide an example to show how this would work. For example, I am trying to convert from .GRD to .ASC, would my MapBasic code look like this: public void Convert(string "C:\Users\...
0
votes
1answer
86 views

Importing EarthVision ASCII to ArcGIS Desktop?

How do I import a surface map from Petrel in EarthVision ASCII Format to ArcGIS? I have a file from surface map in Petrel that I want to export to ArcGIS Desktop. I used the tools 3D ASCII to ...
4
votes
1answer
43 views

QGIS Raster Visualization Problems from a self-produced .asc file

I have been creating .asc raster files by saving a numpy array with numpy.savetxt and the following header: header = "ncols %s\n" % ncols header += "nrows %s\n" % nrows header += "...
1
vote
0answers
58 views

Setting cell size when converting from GeoTIFF to ASCII

I would like to convert a GeoTIFF file to a .asc file using the translate option. When I use the translate tool in QGIS it converts it, but my cell size is something like 0.0002 (the pixel size of the ...
4
votes
1answer
217 views

ASCII-data source is not supported

I am using QGIS 2.18.15. I got some trouble to add an asc-file as a raster layer into QGIS. I tried to add the raster layer the normal way via the tool bar bottom. It did not work. (“The file source ...
1
vote
1answer
257 views

Error saving raster file in R

I've been on this site blogging about raster files over the week, & this community has proved to be a lot of help I currently have a map (see below), that I have converted to a raster file, ...
1
vote
0answers
50 views

Getting bathymetric slope data on ArcGIS Desktop from ASCII file? [closed]

I have a project in which I have to project XYZ ASCII file data to get a DEM. It's my first maritime map, any ideas which tools should I use? I have already tried the Spatial Analyst Tools and haven'...
3
votes
1answer
498 views

Change shapefile encoding to ASCII in QGIS?

I want to convert my shapefile encoding source to ASCII but unfortunately it is not given in the encoding source type. Maybe it is given with different name or it is not supported in QGIS? Please ...
1
vote
0answers
75 views

ASC outputs for Circuitscape don't work

I'm preparing a raster layer of combined resistances of landcover, roads and rail and a second raster layer of 'focal nodes' for a Circuitscape Analysis. I prepped the files in R and they look fine in ...
2
votes
1answer
46 views

ASCII ID,Lat,Lon,Hgt to raster min. distance in QGIS

I am new to QGIS, and I would like to know how I can create a raster colour map displaying (through colour) the minimum distance between each of the pixels of the raster and a set of geographic points ...
2
votes
2answers
97 views

Edit RGB values of 0,0,0

I am VERY new to ArcMap and GIS in general. I converted some lidar data to a GEOTIFF, using a program called CARIS (it was an .csar file) and imported this into ArcMap. There are some areas that are ...
1
vote
1answer
28 views

ASCII Grid file doesnt have data matching NCOLS

I have an ASCII Grid file that states the following in its header: ncols 2205 nrows 653 . . . nodata_value -9999 But when going through the rows, the max number of cols is 12 and the number of rows ...
1
vote
1answer
175 views

Converting ASCII data to GeoTIFF for ArcGIS Desktop?

I have a data file that gives me a porosity value and the lat/long that it applies to as a box. For example Porosity=14.58 90.0 0.0 90.0 360.0 89.0 360.0 89.0 0.0 I need this data in a ...
-1
votes
0answers
66 views

How to convert a special ASCII file (not ArcGIS type) to raster?

I tried to convert an ASCII file to raster using "ASCIIToRaster" tool in Arcgis desktop and got an error code:010022,then I found that my ASCII file is different from the file format could be ...
0
votes
0answers
219 views

Difficulty opening ASCII file as raster (University of Delaware gridded data)

I am trying to download the v4.01 terrestrial air temperature data from the University of Delaware: http://climate.geog.udel.edu/~climate/html_pages/download.html#T2014 After unzipping it twice with ...
0
votes
0answers
63 views

Z value rounded by ArcGIS while executing “Add XY coordinates”

I have a large vectorda (point) dataset in ArcGIS Desktop 10.3.1 File Geodatabase that consists of 1,2 billion points that I created, converting it from ASCII file by "ASCII 3D to Feature Class tool". ...
0
votes
0answers
207 views

Raster to ASCII producing text document with all -9999 values

I have several rasters that I am attempting to convert to text files using the "Raster to ASCII" tool in ArcGIS 10.3. One of these is an EVI raster with values from 0-.753 (format FGDBR, double ...
8
votes
1answer
164 views

Dealing with NODATA_VALUE of ascii grid in qgis2threejs plugin?

For a project I have modelled the upper and lower boundaries of geologic layers in the subsurface. The resulting rasters are stored as ASCII files with a NODATA_VALUE of -999. However, when I ...
1
vote
0answers
613 views

ASCII to RASTER failing with comma syntax error?

ASCII to RASTER fails with comma syntax error, but data appears correctly formatted with no commas I'm trying to use the ASCII to RASTER tool (ArcMap V10.4.1) on PRISM rainfall data. The file ...
3
votes
1answer
302 views

UnicodeEncodeError for searchCursor

import arcpy import csv import glob, os os.chdir("C:\\path\\folder") fieldsource = "C:\\path\\sampleshp.shp" fields = [r.name for r in arcpy.ListFields(fieldsource)] csv_out = "C:\\path\\table.csv" ...
2
votes
2answers
462 views

Polygon to raster. Empty raster

I am using ArcMap. I am trying to convert polygon to raster and specify cell size to 6, but created raster is empty. If I leave the default cell size (0.0015) everything works. Last week I was doing ...
1
vote
0answers
245 views

PyShp ASCII encoding error

I want to filter a set of Point Shapefiles using PyShp. That works fine with one of the file sets (one point shapefile) but throws an error for another set that states: UnicodeDecodeError: 'ascii' ...
1
vote
0answers
184 views

Avoiding GDAL ERROR 4 / Python - UnicodeDecodeError:?

I'm developing my QGIS-plugin. Unfortunately I faced a problem I can't solve. Plugin works pretty fine, until user hendles non-ascii characters inside input or output paths. The problem occures when ...
0
votes
1answer
436 views

Inputting ASCII data to ArcGIS Desktop?

I'm trying to download and utilize this ASCII data that I found but since I have very little experience with this type of data(very new to GIS) I really don't know how to put it into ArcMap. Can ...
2
votes
1answer
374 views

Import ESRI ASCII raster with python to GRASS

I had to get used to GRASS the last two days because I can't set up my python IDE to work with my osgeo4w python and I find it incredibly clunky. I have a simple ascii raster - I think its origin is ...
0
votes
0answers
98 views

Creating an ASCII file for georeferencing a raster

I have four columns(Longitude, Latitude, Pixel of image, scan line of image) of values that i need to convert to an ASCII file for georeferencing a raster. I need to create a GLT file from these ...
1
vote
0answers
87 views

How Can I extract region-specific Information from ascii grid file in and run spatial GLM's in R?

I have data on various climate variables in acsii grid format. I have imported data into R using Rainfall<-read.asciigrid("E:/R Learning Project/Rainfall.txt") and then used plot(Rainfall) to ...
1
vote
0answers
40 views

Maxent and GEBCO incompatibility

I downloaded GEBCO bathymetry data and trimmed all my environmental data with ArcGIS according to my GEBCO mask, but Maxent can't run when I insert the GEBCO data. When I delete it and only run it ...
2
votes
0answers
225 views

How to import and point sample asc files on QGIS

I am trying to import .asc data into QGIS. These data are produced by the Stage Project in 2000. I want to import it into QGIS to allow me to point sample various climatic variables, especially ...
1
vote
0answers
142 views

ogr2ogr ascii --> Shape

I have plenty of Digital Terrain Model (DTM) data in ASCII format as *.txt files. Now I want to convert them into separate ESRI shapefiles as a batch. Does anyone know how I can handle this issue?
5
votes
1answer
88 views

Convert part of a raster file to .asc file

I'm a bit new at this. I have a DEM map (.tif) of an area in QGIS. I know that I can transform it to a text file (.asc) with raster -> translate. However, what I need is only a certain cross-...
9
votes
2answers
2k views

Creating image with specific latitude/longitude positions using GDAL?

I have an ASCII file with latitude, longitude, and data_val in the following format. 35-13.643782N, 080-57.190157W, 118.6 ... I have a GeoTiff image file, and I can easily view it. I want to place ...
2
votes
1answer
210 views

Reclassify by ASCII ArcMap

How do I create a ASCII remap if I want to reclassify values ranges such as the following: 0 - 200 > 5 201 - 400 > 10 etc.. I have tried it but it gives me this error
2
votes
1answer
91 views

Randomly replace a set number of cells with a value from a unique list

I have an Excel/ASCII table (300x300) where I want to randomly select a certain number/percentage of cells and replace that value with a number from a list (0.131, 0.149, 0.052). Is there a way to do ...
1
vote
0answers
1k views

Display multiple ASCII (xyz) files in QGIS

I am new to QGIS and I am trying to import more than 700 xyz (it is the same as ASCII?) files into the map so I can get a digital elevation model and then get the average elevation for some small ...
2
votes
1answer
97 views

Converting WKT to ASCII art?

I often end up writing basic geometries in unit tests, looking much like the following: a = "POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))"; b = "POLYGON ((0 0, 9 0, 9 9, 0 9, 0 0))"; If I'm feeling ...
4
votes
1answer
94 views

Imported asc-file has huge off-set

I'm fairly new to QGIS but thought I kinda got the CRS issues. I'm using version 2.8.3 on Windows. However I'm currently trying to import an asc-file from the German weather service. The problem is ...
1
vote
0answers
68 views

Removing the first lines of an ascii file as a python script tool [closed]

I want to delete the header of an ASCII file with a python script in ArcGIS. The header is always six lines long. After running the script that needs this ASCII file, I need to reinsert the header. ...