PRECIS support forum

It is currently Tue Mar 19, 2024 6:26 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Mar 31, 2016 1:12 pm 
Offline

Joined: Mon Mar 28, 2016 5:29 pm
Posts: 17
Hi all,

Someone could please indicate tools for visualization the Precis output data and/or how to convert this format data (pp) to grib data to visualization with GrADS?

Cheers

Claudia


Top
 Profile  
 
PostPosted: Thu Apr 07, 2016 6:17 pm 
Offline

Joined: Thu Feb 06, 2014 12:29 pm
Posts: 118
PRECIS output data appears in raw PP format in $ARCHIVEDIR/[runid]/[stash codes]/

You can view any PP files with xconv

xconv -i file.pp

For GrADs, I would do two things first

1) remove the outer 8 point rim

Code:
pprr -r 8 file.pp

That produces a file called file.rr8.pp

2) Regrid output from 1) to regular lat lon

Code:
ppregrid -d 0.22,0.22 file.rr8.pp


That will produce a file file.rr8.reg.pp

(If your RCM is using 50km resolution, use -d 0.44,0.44)

3) To convert to Grads-ready GRIB, use

Code:
pp2ctl  file.rr8.reg.pp

that will produce a grib file *grb and a ctl file that GrADs needs

Thanks
David


Top
 Profile  
 
PostPosted: Thu Apr 07, 2016 8:18 pm 
Offline

Joined: Mon Mar 28, 2016 5:29 pm
Posts: 17
Hi David,

After doing the steps, the grads plot the data on the map of Africa. However, the model was run to Europe.
In this case, how can I view the data correctly on the map using the grads?

I appreciate any help.

Claudia


Top
 Profile  
 
PostPosted: Fri Apr 08, 2016 12:44 pm 
Offline

Joined: Thu Feb 06, 2014 12:29 pm
Posts: 118
Claudia,
Can you email a sample raw PRECIS file? I'd like to try to replicate what you did.

There's another way to proceed.

At the last step, instead of converting to grib and ctl, convert the PP file to NetCDF format:

This software can convert from PP to CF compliant NetCDF (which GrADs can then read in ).
http://cfpython.bitXbucket.org/

[Remove the X from bitXbucket -- for some reason the forum doesn't want me to put the URL.]

Can do that.

In your case it would be called like this:
Code:
cfa file.rr8.reg.pp


once CF-Python is installed.

David


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group