diana:gettingstarted

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
diana:gettingstarted [2014-04-04 10:46:22]
davidb [Testing]
diana:gettingstarted [2022-05-31 09:29:31] (current)
Line 3: Line 3:
 This document aims to describe what is needed to get a released version of Diana up and running on Ubuntu 12.04 (Precise) from a set of Debian packages. It is assumed that you will be using the version of Ubuntu that the packages were developed for. This document aims to describe what is needed to get a released version of Diana up and running on Ubuntu 12.04 (Precise) from a set of Debian packages. It is assumed that you will be using the version of Ubuntu that the packages were developed for.
  
-To build Diana for other distributions, see the [[autotools|Building Metlibs and Diana with Autotools]] page for an installation guide then continue reading the [[#installing_data_files|Installing Data Files]] section.+To build Diana for other distributions, see the [[autotools|Building Metlibs and Diana with Autotools]] page for an installation guide then continue reading the [[Installing Data Files]] page. 
 + 
 +To build a batch version of Diana for headless systems, install ''bdiana'' according to the instructions on the [[batch_diana_on_headless_systems|Batch Diana on Headless Systems]] page then continue reading the [[Installing Data Files]] page.
  
-To build a batch version of Diana for headless systems, install ''bdiana'' according to the instructions on the [[batch_diana_on_headless_systems|Batch Diana on Headless Systems]] page then continue reading the [[#installing_data_files|Installing Data Files]] section. 
 ===== Installing Packages ===== ===== Installing Packages =====
  
-Obtain a set of release packages for the current release of Diana. These are available via a link in the News section on the [[start|main page]]+Obtain a set of release packages for the current release of Diana. Follow the instructions on the [[Installing Diana from Launchpad]] page to install and test the packages.
- +
-You need to install Fimex and the ''.deb'' package files for Diana as described on that page. Download the package files to a suitable location on your system. In a terminal, type the following to install them, using the appropriate versions of the files for the current version: +
- +
-<code> +
-sudo dpkg -i diana-3.33_3.33.0-1_amd64.deb diana-3.33-common_3.33.0-1_all.deb +
-</code> +
- +
-===== Installing Data Files ===== +
- +
-From the same page as the packages, download the maps and demo data archives, +
-[[ftp://ftp.met.no/projects/diana/diana_maps.tar.gz|diana_maps.tar.gz]] and [[ftp://ftp.met.no/projects/diana/diana_demodata.tar.gz|diana_demodata.tar.gz]] respectively. +
- +
-Choose a suitable location for installation. The default configuration file +
-specifies ''/usr/share/diana'' as the directory to contain the ''maps'' and +
-''demodata'' directories supplied by the archives, so you may want to unpack +
-the archives in that directory. +
- +
-<code> +
-cd /usr/share/diana +
-tar zxf /path/to/diana_maps.tar.gz +
-tar zxf /path/to/diana_demodata.tar.gz +
-</code> +
- +
-Alternatively, you can unpack the archives in another directory and modify +
-Diana's configuration file to refer to their locations. +
  
 ===== Configuring Diana ===== ===== Configuring Diana =====
Line 42: Line 17:
   * The current directory.   * The current directory.
   * ''$HOME/.diana/diana.setup'' or equivalent   * ''$HOME/.diana/diana.setup'' or equivalent
-  * ''/etc/diana/diana.setup-COMMON'' 
  
-Possibly the easiest way to arrange this is to run Diana without ''diana.setup'' +If you built and installed Diana 3.39 from source, or installed a package from Launchpad, there should also be a setup file in the following location: 
-file then immediately quit. This will cause the ''.diana'' directory to be created + 
-in the user's home directory. Then copy the ''/etc/diana/diana.setup'' file into +  * ''/etc/diana/3.39/diana.setup''
-that directory for further configuration.+
  
 If you installed the maps and demo data in a location other than the default, If you installed the maps and demo data in a location other than the default,
Line 59: Line 32:
 </code> </code>
  
 +This means that you need to have a ''diana.setup'' file in a place where you can
 +edit it. Possibly the easiest way to arrange this is to run Diana without a ''diana.setup''
 +file then immediately quit. This will cause the ''.diana'' directory to be created
 +in the user's home directory. Then copy the ''/etc/diana/3.39/diana.setup'' file
 +(or the correct one for the version you are using) into that directory for further
 +configuration.
 +
 +===== Testing with bdiana =====
 +
 +It is useful to test that the basic installation works correctly, particularly on headless systems that only allow ''bdiana'' to run. Copy the following text into a file called ''test.input'':
 +
 +<code>
 +buffersize=800x800
 +output=PNG
 +filename=test.png
 +
 +PLOT
 +MAP backcolour=117:199:242 map=Gshhs-Auto contour=on cont.colour=black cont.linewidth=1 cont.linetype=solid cont.zorder=1 land=on land.colour=240:158:92
 +AREA proj4string="+proj=ortho +lat_0=60" rectangle=-1500000.000000:1500000.000000:-1250000.000000:1750000.000000
 +ENDPLOT
 +</code>
 +
 +Process the input file using a command like the following, using the appropriate executable and setup file for your configuration:
 +
 +<code>
 +bdiana -i test.input -s diana.setup
 +</code>
 +
 +A file called ''test.png'' should be created that looks like the following image:
 +
 +{{diana:test.png?|}}
 +
 +If the file is not created or the image is blank, check the output from ''bdiana'' to determine whether the ''diana.setup'' file and map files were found correctly.
 +
 +You can also find more input files to test in the [[https://github.com/metno/diana-extras|diana-extras]] repository on GitHub. The files can be found in the [[https://github.com/metno/diana-extras/tree/master/testfiles/input|testfiles/input]] directory.
 ===== Running Diana ===== ===== Running Diana =====
  
  • diana/gettingstarted.1396608382.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)