Comments (2)
Hello,
it looks like your ASC file has "dx" and "dy" fields in the header which are not currently supported by the ASCread() function.
GDAL does allow the creation of ASC files with "dx" and "dy" attributes for Golden Surfer software (https://www.gdal.org/frmt_various.html), but the standard ESRI grid ASC format does not support non-square pixels and only uses a "cellsize" attribute in the header to define the grid resolution:
https://en.wikipedia.org/wiki/Esri_grid
An easy fix, since your pixels are practically square and your dataset covers a small extent, is to replace the following two lines in the header of your file (using a text editor):
dx 0.500043870159
dy 0.499967850811
By
cellsize 0.500043870159
I might add compatibility for Golden Surfer grids in the future.
Cheers
Matt
from digital-forestry-toolbox.
Will try that.
Thank you!
Jakub
from digital-forestry-toolbox.
Related Issues (13)
- shapewrite
- Incorrect type for Return Point Waveform Location HOT 1
- dft_tutorial_2.m: Tutorial dataset works okay, but replacing it with my own produces: Unrecognized function or variable 'marker'. HOT 1
- Lastread problem with extrabytes HOT 4
- Extended fields wrongly read HOT 2
- Error in LASread (line 76)
- saving a new las file by just using xyz or xyzRGB point data HOT 1
- treemetrics HOT 12
- Error: 'fspecial' & bwdist for CHM Exercice 2 HOT 8
- error reading LAS file HOT 1
- LASWrite requires Statistics and Machine Learning Toolbox HOT 1
- LAS 1.4 files with a PDRF > 6 do not conform to the ASPRS LAS Format HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digital-forestry-toolbox.