I am quite new in working on server and have one problem with importing file.

I have .TIFF files in my computer and would like to send them to server which I work with using PuTTy and GRASS. I tried to use WinSCP to copy files to my folder in server, but I am not sure if it is enough to display it in GRASS via PuTTy (anyways, does not work when I try).

I tried to use: r.in.gdal and r.import. As well just to display file using d.mon and then d.rast filename.

It's basic problem, but please, tell me step by step how to do that to be able to display raster.

  • related the gis part gis.stackexchange.com/questions/115250/… can you ftp your files to your server? – Mapperz Nov 15 '17 at 1:06
  • Warning 1: Could not find one of the X, Y or Z column names in header line. Defaulting to the first 3 columns ERROR 1: Couldn't determine X spacing (This is my problem when I try to import .TIFF file via GRASS) – AngelaG Nov 15 '17 at 10:54
  • I think you need a .tfw file for the your tiff to calculate pixel dimensions to real world scale nautilus.baruch.sc.edu/resources/doc/grass5/html/r.in.tiff.html – Mapperz Nov 15 '17 at 14:52
  • Unfortunately I work on "bigger" files, hyperspectral photos. I created an NDVI in R and then exported it to tiff. Now I would like to do other things in GRASS. Command r.in.tiff does not work with my file. – AngelaG Nov 16 '17 at 16:12

Your question is not really GIS related, rather you seem to be having problems working remotely on a server. Does the server have X windows running? When you give the command d.mon start=wx0 does a windows open on your local machine? If not, then you might not have the "ForwardX11" option enabled in Putty. What's more, if you're using Putty, then you must be on a windows computer. What OS is on the server?

After doing r.in.gdal, you can run g.list rast to check if the tiff was indeed imported. Then, as always, don't forget to set the computational region: g.region -p rast=<imported raster>.

  • I already solved my problem. File was just copied to catalog and I saw it using mc, but not in g.list rast. At the end I created new folder and loaded new mapset, copied file there, then chosed option: "Read projection and datum from a georefferenced data file." Now everything works. Thank you for help. – AngelaG Nov 18 '17 at 9:46

The best way to remote connection using different protocols (particular ssh) is using MobaXTerm. It has built in X server which will up when necessary and another cool thing you can have multiple tabs with sessions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.