Giter VIP home page Giter VIP logo

Comments (2)

mparkan avatar mparkan commented on June 12, 2024

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.

jakubchr avatar jakubchr commented on June 12, 2024

Will try that.
Thank you!

Jakub

from digital-forestry-toolbox.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.