Re: help with resource files

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 25 Jan 2006 08:56:09 -0700 (MST)

Hi Marjolaine,

You pose a good question. For starters, when you use a resource file,
you want to name it such that the ".res" is at the end of the file,
like "sst.res".

Unfortunately, after looking at the code for gsn_open_wks, it looks
like the names of the PS file and the resource file have to have
the same prefix. I will try to fix this, but meanwhile, if you
are okay with giving them both the same prefix, try this:

   type = "ps"
   name = ouputPath + ouputPlot
   wks = gsn_open_wks(type,name)

You will need to call the resource file ouputPlot.res, where
"ouputPlot" is whatever you've set this variable to. It will need to
be in the ouputPath directory.


On Wed, 25 Jan 2006, Marjolaine Rouault wrote:

> Dear all,
> I am trying to use resources but I am struggling with a few things. Let us say
> that I want to use a resource file called res.sst, for all my sst plots. My
> ncl script is called for example, plotSST.ncl and my output ps file which is
> called must be located in a directory called ouputPath.
> Using the lines in plotSST.ncl:
> type= "ps"
> type_at_wkPSFileName = ouputPlot
> wks = gsn_open_wks(type,"sst")
> I am able to ouput the plot to the correct name but I am not sure how to place
> it in directory outputPath. If I call outputPlot = outputPath+outputPlot,
> then I get an error message that ncl can not write to the ps file.
> How can I direct my ps output to my outputPath ?
> Also, the following in my resource file sst.res do not work:
> *wkColorMap: BlAqGrYeOrRe
> *gsnLeftString: !(for no string output)
> *gsnRightString: Deg.C
> Eventually, I am not managing to give the right statements in my sst.res file
> to get a labelbar just for the colour contours of my SST plot.
> Can anyone help?
> Thanks, Marjolaine.
> _______________________________________________
> ncl-talk mailing list
ncl-talk mailing list
Received on Wed Jan 25 2006 - 08:56:09 MST

This archive was generated by hypermail 2.2.0 : Fri Jan 27 2006 - 10:26:54 MST