Swapping X and Y of a plot with grid value

All geopsy forums are in their very early stage. So a restricted number of forums has been created. If your question does not fit into one of the available categories, post here.
Post Reply
admin
Site Admin
Posts: 809
Joined: Mon Aug 13, 2007 11:48 am
Location: ISTerre
Contact:

Swapping X and Y of a plot with grid value

Post by admin »

  1. Click on "Export values" (context menu on any plot with grid values), for instance to /tmp/grid
  2. Go into the properties of the layers, under the color map section, save it to /tmp/toto.pal
  3. Run the following script:

    Code: Select all

    cat grid | awk 'BEGIN{print "x y val"}!/x y/{print $2,$1,$3}' | figue -g -colormap /tmp/toto.pal
  4. Manually edit the properties of the axis to fit your needs.
  5. If you have to repeat it for several plots, you can save the make-up of a plot and add option '-m /tmp/your.mkup' in figue arguments.
Running the command line supposes that you are running Linux or Mac OS. If under Windows, you can install git for Windows. It is shipped with a bash terminal that supports almost all features.

Swapping X and Y in a more user friendly way is an option that will be probably added in the future.
Post Reply