Opened 2 months ago

Last modified 2 months ago

#2086 pending help

Convert outputs to netcdf

Reported by: nfreychet Owned by: ros
Priority: normal 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 (2)

comment:1 Changed 2 months ago by ros

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

comment:2 Changed 2 months 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.


Note: See TracTickets for help on using tickets.