PRECIS support forum
http://forum.precisrcm.com/

Tools for visualization PRECIS's data
http://forum.precisrcm.com/viewtopic.php?f=3&t=80
Page 1 of 1

Author:  claudia.wanzeler [ Thu Mar 31, 2016 1:12 pm ]
Post subject:  Tools for visualization PRECIS's data

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

Author:  dmhg [ Thu Apr 07, 2016 6:17 pm ]
Post subject:  Re: Tools for visualization PRECIS's data

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

Author:  claudia.wanzeler [ Thu Apr 07, 2016 8:18 pm ]
Post subject:  Re: Tools for visualization PRECIS's data

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

Author:  dmhg [ Fri Apr 08, 2016 12:44 pm ]
Post subject:  Re: Tools for visualization PRECIS's data

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/