[Thread Prev][Thread Next][Index]

Re: [ferret_users] Annual cycle for 30years.



Thanks for this help
when I plot the data it is plotted but I cant be labelled

this how it complains

lot /over/vs/nolabel/line=12 {`t0`,`t1`},{2.35,2.35}; label `t2`, 2.35,-1,0,0.14 @AS GME
 !-> plot /over/vs/nolabel/line=12 {262968,262608},{2.35,2.35}
 !-> PPL %LABEL 100000, 2.35,-1,0,0.14 @AS GME
plot /over/vs/nolabel/line=15{`t0`,`t1`},{2.05,2.05}; label `t2`, 2.05,-1,0,0.14 @AS CRU
 !-> plot /over/vs/nolabel/line=15{262968,262608},{2.05,2.05}
 **ERROR: invalid command: no data specified
plot /over/vs/nolabel/line=15{262968,262608},{2.05,2.05}
Command file, command group, or REPEAT execution aborted


Attached is my script

I have also attached sample data for your help


On Tue, Jun 28, 2016 at 7:49 PM, Ansley C. Manke <ansley.b.manke@xxxxxxxx> wrote:

Hi,

Computation of an annual cycle is done in Ferret with "modulo regridding" operations, and our terminology for this is "climatologies". Here is an FAQ about that,

http://ferret.pmel.noaa.gov/Ferret/faq/how-do-i-calculate-climatologies-and-climatological-anomalies

As a general suggestion, when writing a script, it's a good idea to plot things separately, and with default settings, before putting everything together for your final script.  For instance, your script has these lines:
plot/vlimits=-2.5:2.5:0.5/nolabel/line=8 pr1[d=1]*30
plot/level=(0,600,30)(inf)/vlimits=-2.5:2.5:0.5/over/nolabel/line=14 pr2[gt=pr1@asn]*30
plot/level=(0,600,30)(inf)/vlimits=-2.5:2.5:0.5/over/nolabel/line=15 pr3[gt=pr1@asn]*30
but those commands are returning a blank plot.  so, try the plot commands separately,
plot pr1[d=1]*30; pause
plot pr2[gt=pr1@asn]*30; pause
plot pr3[gt=pr1@asn]*30; pause
Now you may start to see what is happening with the definition of the variables and the plot commands.  Once you have the definitions right, then put them together with overlaying and different colors, and work with labeling etc to get the final plot.

(By the way, the /LEVEL qualifier is for setting color levels on a color fill plot.  It can be used on a 1-D "plot" command, but only when you are coloring the line according to some second quantity.  See RIBBON plots, http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/PLOT#_PLOT_RIBBON)

Ansley


On 6/28/2016 7:42 AM, afwande juliet wrote:
Dear Ferreters
I want to plot annual cycles like the ones below. These ones are examples are copied from some online sources. I am using this script attached but only getting empty space figure also attached. I have used this http://www.precisrcm.com/GRACE/KL_worksheets/worksheet_KL_2a.html to calculate annual cycel before plotting in ferret but gets empty space. Could someone show me how to go about this. The data am using is monthly data in kg/m2/s2

Inline image 1


Attachment: JJA_Annual_test.jnl
Description: Binary data

Attachment: pre_GME_MT_1980-2009_ext_monmean.nc
Description: Cdf file


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement