Opened 10 months ago

Closed 7 months ago

Last modified 6 months ago

#2086 closed help (answered)

Convert outputs to netcdf

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

Description

Hello,
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.

Cheers,
Nicolas

Change History (4)

comment:1 Changed 10 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 10 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.

Cheers,
Ros.

comment:3 Changed 7 months ago by ros

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

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