Changes between Version 24 and Version 25 of doc/app/ncl
- Timestamp:
- Sep 16, 2010 2:46:53 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
doc/app/ncl
v24 v25 1 = = Usage of PALM NCL scripts ==1 = Usage of PALM NCL scripts = 2 2 [[TracNav(doc/app/ncltoc|nocollapse)]] 3 == == General ====3 == General == 4 4 The standard output format of data in PALM is [[../netcdf|netCDF]]. PALM produces output of 3D volume data, 2D cross sections, profiles, timeseries and spectra. All these kinds of output can be plotted with the ''NCAR Command Language'' [[http://www.ncl.ucar.edu/|NCL]] which is an interpreted language designed specifically for scientific data analysis and visualization.\\\\ 5 5 For PALM users four NCL scripts and one configuration file exist in the repository [[source:palm/trunk/SCRIPTS/NCL|/trunk/SCRIPTS/NCL]] to receive a quick overview of the output data: … … 22 22 ||yz ||timeseries data ||{{{timeseries.ncl}}} || 23 23 Several [[../nclparlist|parameters]] can be steered to change the output of the plots. They can be either written in the prompt, modified within the configuration file {{{.ncl.config.default}}} or both. 24 == == Using {{{.ncl.config}}} ====24 == Using {{{.ncl.config}}} == 25 25 It is recommended to create a personal configuration file by copying the default configuration file {{{.ncl.config.default}}} to the PALM working directory {{{~/palm/current_version}}} and naming it {{{.ncl.config.}}} It is used by NCL directly. So, the [[../nclparlist|parameters]] have to be written in {{{.ncl.config}}} according to the rules of the scripting language NCL (see [[http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclDataTypes.shtml|NCL data types]]). The configuration file contains all steering [[../nclparlist|parameters]] with a short description and can be modified to personal needs. 26 == == Using {{{palmplot}}} ====26 == Using {{{palmplot}}} == 27 27 For controlling the parameters within the prompt, they need to be written as 28 28 {{{ … … 36 36 palmplot -? 37 37 }}} 38 == == Examples ====38 == Examples == 39 39 In the following some examples are given for plotting data of the PALM example run [[../examples|example_cbl]].\\ 40 40 Change to the directory where the data is stored: … … 55 55 palmplot ts file_1=example_cbl_ts.nc format_out=pdf file_out=ts_data no_rows=6 56 56 }}} 57 == == Script crash ====57 == Script crash == 58 58 If one of the scripts aborts and there is no comment, check your personal configuration file {{{.ncl.config}}} - the scripts should not abort with the default values. Be sure to use the right NCL data type (e.g.: integer = 2; float = 2.0; double = 2.0d; string = “name” ).