Enter a ZIP code to get a forecast:
Setup Location

WRN Logo

Resource: default

Resource default
Command Line -df=filename
Environment Variable wxpdefault
Default Value .wxpdef file in the current directory

This resource is used to specify the resource file which stores default resource values.   If this resource is not specified, the default is the file .wxpdef or Wxp.res (wxp.def for Windows) in the current working directory.  The easiest way to specify this resource is to just list the name of the resource file and its full path:


If the filename is left off, the program will first search for a .wxpdef file in that directory.  If that is not found, then it searches for a Wxp.res file.  

NOTE: The default resource is normally specified through the wxpdefault environment variable rather than specifying it on the command line.

Multiple Resource Files

You also specify multiple resource files, each separated by colons ":".  


The program will process each file in the order listed so that any resources specified in the second file will take precedence over the first.

Conditional Resources

WXP allows for conditional processing of resource files.  This allows you to set up a resource file

   *data_path: /home/ldm/data/ddplus   
   *data_path: /home/wxp/ddplus

In this example, you have two redundant ingestors and you want to toggle between data being saved by the LDM and data saved by the WXP ingestor.  You can do this by setting the default resource to:


This would then toggle on the first data_path specification, not the second (used if LDM not specified).

For further information about WXP, email technical-support@weather.unisys.com
Last updated by Dan Vietor on July 30, 1998