Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2086 closed help (answered)

Convert outputs to netcdf

Reported by: nfreychet Owned by: ros
Component: MONSooN Keywords: cf-python
Cc: Platform: MONSooN
UM Version:


I'd like an easy way to convert all the model outputs to netcdf files. So I was thinking to use python cf, but it seems that the module doesn't exist on MONSooN:

module load anaconda cf
ModuleCmd_Load.c(226):ERROR:105: Unable to locate a modulefile for 'anaconda'
ModuleCmd_Load.c(226):ERROR:105: Unable to locate a modulefile for 'cf'

It there another way to load these modules?
Or another easy way to convert files to netcdf.


Change History (4)

comment:1 Changed 4 years ago by ros

  • Owner changed from um_support to ros
  • Status changed from new to accepted
  • UM Version <select version> deleted

comment:2 Changed 4 years ago by ros

  • Keywords cf-python added
  • Status changed from accepted to pending

Hi Nicolas,

cf-python was not installed on MONSooN, however, I have just installed it on xcm and have tested cfa to convert a couple of pp files to netCDF. I've tested it on the shared nodes as well - all appears ok. The other alternative would be to use the Met Office's IRIS package.

cf-python is not installed centrally, it is currently located in my directory so to use it you will need to set up a few paths first:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/projects/umadmin/rshatc/udunits/lib
export PYTHONPATH=$PYTHONPATH:/projects/umadmin/rshatc/cfpython/lib/python
export PATH=$PATH:/projects/umadmin/rshatc/cfpython/bin

Hope this helps.


comment:3 Changed 4 years ago by ros

  • Resolution set to answered
  • Status changed from pending to closed

comment:4 Changed 4 years ago by ros

For reference on the XCS the paths should now be set to:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/projects/umadmin/rhatcher/software/lib
export PYTHONPATH=$PYTHONPATH:/projects/umadmin/rhatcher/software/lib/python2.7/site-packages
export PATH=$PATH:/projects/umadmin/rhatcher/software/bin
Note: See TracTickets for help on using tickets.