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:02]
davidb [Installing Data Files]
diana:gettingstarted [2015-11-26 17:52:30]
davidb [Testing with bdiana]
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:+===== Configuring Diana =====
  
-<code> +Diana expects to find a ''diana.setup'' file in various locations:
-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 =====+  * The current directory. 
 +  * ''$HOME/.diana/diana.setup'' or equivalent
  
-From the same page as the packagesdownload the maps and demo data archives, +If you built and installed Diana 3.39 from sourceor installed a package from Launchpad, there should also be a setup file in the following location:
-[[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 +  * ''/etc/diana/3.39/diana.setup'' 
-specifies ''/usr/share/diana'' as the directory to contain the ''maps'' and + 
-''demodata'' directories supplied by the archives, so you may want to unpack +If you installed the maps and demo data in a location other than the default, 
-the archives in that directory.+you will need to change the ''OPDATA'' and ''MAPDIR'' lines in the ''diana.setup'' 
 +file. For example, if these resources were unpacked in the ''/data/diana'' 
 +directory, these lines need to be changed to read:
  
 <code> <code>
-cd /usr/share/diana +OPDATA    = /data/diana/demodata 
-tar zxf /path/to/diana_maps.tar.gz +MAPDIR    = /data/diana/maps
-tar zxf /path/to/diana_demodata.tar.gz+
 </code> </code>
  
-Alternatively, you can unpack the archives in another directory and modify +This means that you need to have a ''diana.setup'' file in a place where you can 
-Diana'configuration file to refer to their locations.+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'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 =====+===== 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'': 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'':
Line 50: Line 54:
 </code> </code>
  
 +Process the input file using a command like the following, using the appropriate executable and setup file for your configuration:
  
-===== Configuring Diana =====+<code> 
 +bdiana -i test.input -s diana.setup 
 +</code>
  
-Diana expects to find a ''diana.setup'' file in various locations:+A file called ''test.png'' should be created that looks like the following image:
  
-  * The current directory. +{{:test.png?|}}
-  * ''$HOME/.diana/diana.setup'' or equivalent +
-  * ''/etc/diana/diana.setup-COMMON''+
  
-Possibly the easiest way to arrange this is to run Diana without a ''diana.setup'' +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.
-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 +
-that directory for further configuration. +
- +
-If you installed the maps and demo data in a location other than the default, +
-you will need to change the ''OPDATA'' and ''MAPDIR'' lines in the ''diana.setup'' +
-file. For example, if these resources were unpacked in the ''/data/diana'' +
-directory, these lines need to be changed to read: +
- +
-<code> +
-OPDATA    = /data/diana/demodata +
-MAPDIR    = /data/diana/maps +
-</code>+
  
 +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.txt
  • Last modified: 2022-05-31 09:29:31
  • (external edit)