[Thread Prev][Thread Next][Index]

Re: [ferret_users] help



You can use viewport to plot several sub-plot on the same figure.

For example, you can use your 4 datasets:

use GPCC-DJF.nc
use GPCC-MAM.nc
use GPCC-JJA.nc
use GPCC-SON.nc

Then you successively set different viewports and plot each time serie :

set view ul      ! It will set the "Upper-Left viewport"
! You need to average the precipitation over a X-Y region (you can add boundaries, like "X=10E:20E@ave"). You also need to specify which of the 4 datasets you want to use, for example the 1st one (d=1), corresponding to DJF
plot precip[X=@ave, y=@ave, d=1]
 

And now you repeat the same with 3 other viewport ( ur / ll / lr ) and the 3 other datasets.



You can also plot all the timeseries on the same plot using the command "/over"

plot precip[X=@ave, y=@ave, d=1]
plot/over precip[X=@ave, y=@ave, d=2]
plot/over precip[X=@ave, y=@ave, d=3]
plot/over precip[X=@ave, y=@ave, d=4]



Best,
Nicolas



2015-09-10 13:20 GMT+08:00 George Otieno <gotieno@xxxxxxxxx>:
nicholas thanks
I have managed to get 4 seasons using CDO and able to make plots uisng ferret.
I want to make now timeseries of these 4 seasons anomalies in one plot for all the years(1980-2010).

Any Help I will appreciate



Best Regards
George Otieno

Intergrated Climate System Modelling Lab.
Department of Environmental Atmospheric Sciences
608-737, Room 4302, Chungmu-Building
Pukyong National University,
45,Yongso-ro,Nam-gu, Busan, South Korea

On Thu, Sep 10, 2015 at 6:46 AM, George Otieno <gotieno@xxxxxxxxx> wrote:
thanks nicholas CDO WORKS



Best Regards
George Otieno

Intergrated Climate System Modelling Lab.
Department of Environmental Atmospheric Sciences
608-737, Room 4302, Chungmu-Building
Pukyong National University,
45,Yongso-ro,Nam-gu, Busan, South Korea

On Thu, Sep 10, 2015 at 12:19 PM, Nicolas Freychet <nicolas.freychet@xxxxxxxxx> wrote:
I am not sure how to separate directly the seasons in ferret, if you have many years of data.
You may use a loop and mask each year all months except the ones of a specific season, but I would suggest to first use CDO to create seasonal files :  

cdo splitseas GPCC.nc GPCC-

It will create 4 files (GPCC-JJA.nc, GPCC-SON.nc .......) each one containing the months of a given season, during all years.
Then you can use each season file with ferret, and if you want to average all months just use "L=@ave".

use GPCC-JJA.nc
Fill precip[L=@ave]

Best,
Nicolas


2015-09-10 11:04 GMT+08:00 George Otieno <gotieno@xxxxxxxxx>:
Hi nicholas
I want to average data for 30 years season by season



Best Regards
George Otieno

Intergrated Climate System Modelling Lab.
Department of Environmental Atmospheric Sciences
608-737, Room 4302, Chungmu-Building
Pukyong National University,
45,Yongso-ro,Nam-gu, Busan, South Korea

On Thu, Sep 10, 2015 at 12:02 PM, George Otieno <gotieno@xxxxxxxxx> wrote:
Thanks Nicholas
atleast first step the plot appears month by month



Best Regards
George Otieno

Intergrated Climate System Modelling Lab.
Department of Environmental Atmospheric Sciences
608-737, Room 4302, Chungmu-Building
Pukyong National University,
45,Yongso-ro,Nam-gu, Busan, South Korea

On Thu, Sep 10, 2015 at 11:33 AM, Nicolas Freychet <nicolas.freychet@xxxxxxxxx> wrote:
Hi George,

The error you get comes from the fact you try to plot a 3D variable into a 2D plot (and it tells you it doesnt have enough memory to read all at once). You need to fix or specify one of the direction at least.
For instance, if you want to plot the first day of your precipitation field, you should add "L=1" in the fill command:

fill/L=1 PRECIP

You can also average all the days if you prefer to fill the mean precipitation (L=@ave) fix I or J direction of course.

Best;
Nicolas




2015-09-10 10:08 GMT+08:00 George Otieno <gotieno@xxxxxxxxx>:

Dear All,
Ferret version v6.93 is installed in my machine. When I try to plot data, a white empty space appears and  I get the error below...
This could memory issue. I have tried fixing but I cant.
My machine is 64bit OS,and ubuntu version 14.04. I have installed SPM and using both vim and gedit text editors.
yes? use GPCC.nc
 *** NOTE: Axis coordinates are decreasing-ordered. Reversing ordering for axis lat
yes? use GPCC.nc
yes? show data
     currently SET data sets:
    1> ./GPCC.nc  (default)
 name     title                             I         J         K         L         M         N
 PRECIP   GPCC Monthly total of precipita  1:720     1:360     ...       1:1320    ...       ...
 
yes? fill PRECIP
 **ERROR: request exceeds memory setting: 342 Mwords were requested.
 *** NOTE: You can use SET MEMORY/SIZE=xxx to increayes? set data GPCC.nc

 *** NOTE: The "Memory use" section of the FERRET Users Guide has further tips.

In some other cases when set to feret i get the following errors
 **TMAP ERR: non-existent or not on line
             /opt/Ferret/V693/data:/opt/Ferret/V693/go:/opt/Ferret/V693/examples:/opt/Ferret/V693:contrib/GPCC.nc
se memory.



thank you

Best Regards
George Otieno

Intergrated Climate System Modelling Lab.
Department of Environmental Atmospheric Sciences
608-737, Room 4302, Chungmu-Building
Pukyong National University,
45,Yongso-ro,Nam-gu, Busan, South Korea



--
----------------------------------------------------
Nicolas Freychet
Postdoc Reseach Fellow at RCEC
Academia Sinica
----------------------------------------------------





--
----------------------------------------------------
Nicolas Freychet
Postdoc Reseach Fellow at RCEC
Academia Sinica
----------------------------------------------------





--
----------------------------------------------------
Nicolas Freychet
Postdoc Reseach Fellow at RCEC
Academia Sinica
----------------------------------------------------

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

Privacy Policy | Disclaimer | Accessibility Statement