importing ASCII Grid file

Feel free to ask any question here
Post Reply
AndrewPerth
Posts: 19
Joined: Thu Oct 26, 2017 7:38 am

importing ASCII Grid file

Post by AndrewPerth »

hey guys,

I'm looking at some .asc files that appear to be ASCII Grid files. Is it possible to load these into cloud compare?
cloud compare ascii grid.PNG
cloud compare ascii grid.PNG (31.25 KiB) Viewed 5822 times
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: importing ASCII Grid file

Post by daniel »

You can try to load it as a raster, but I don't know if this particular format will be recognized (by GDAL, the third party library that loads rasters). Otherwise you're doomed ;)
Daniel, CloudCompare admin
AndrewPerth
Posts: 19
Joined: Thu Oct 26, 2017 7:38 am

Re: importing ASCII Grid file

Post by AndrewPerth »

Hi Daniel, how would one load it in as a raster? A google search, reviewing previous board posts and just messing around with Cloud compare yielded no results.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: importing ASCII Grid file

Post by daniel »

Oh, you have to select the 'Raster' filter in the file opening dialog. Then try to load the file (GDAL will try to autodetect the format).
Daniel, CloudCompare admin
AndrewPerth
Posts: 19
Joined: Thu Oct 26, 2017 7:38 am

Re: importing ASCII Grid file

Post by AndrewPerth »

Ahhh, ok. I had been dragging the files directly into Cloud Compare which bypasses that dialog!

Works perfectly fine now, thank you for your assistance!

Only problem now is having to hit Yes over and over again when it's asking whether to remove NaN points and agreeing to the point translation due to the large amount of individual files i'm working with.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: importing ASCII Grid file

Post by daniel »

Yes, when you drag the file over the window, CC detects the format based only on its extension. And ASC is a standard cloud format (well, it's also a raster format, but CloudCompare is primarily for clouds ;).
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: importing ASCII Grid file

Post by daniel »

For the Global Shift, you should be able to load all the files at once (with CTRL or SHIFT + select) and then click on the 'Yes to all' or something equivalent.

For the NaN points... we'll have to work on that ;)
Daniel, CloudCompare admin
Post Reply