I am trying to convert some pp files to netCDF in JASMIN-sci using CFA. I am using Python 3.8 environment. CFA is not being able to read any of my UM pp files. I am getting the following error:
cfa ERROR reading /gws/nopw/j04/incompass/shared/model/MD17/field.pp/20160704T0000Z_INCOMPASS_km17_ga6_pa000.pp: Can’t determine format of file /gws/nopw/j04/incompass/shared/model/MD17/field.pp/20160704T0000Z_INCOMPASS_km17_ga6_pa000.pp
You’re using module load jaspy and it looks like there is an issue with jaspy / cf-python meaning that cfa reading pp files gives an error. As a work around you can type: export PATH=/home/users/ajh/miniconda3_cfview/bin:$PATH
I will have a further look at this tomorrow and update the ticket when I know more.
I get no error using export PATH=/home/users/ajh/miniconda3_cfview/bin:$PATH
and cfa /home/users/amenon/test_cfa/*
I suspect a file system has become full leading to the error that you saw. Try running the cfa command on the files in your home directory and see if you still get the same error.
I have the above path exported and I am not getting any error when I do cfa /home/users/amenon/test_cfa/* in my home directory. But the error is appearing when I am specifying the output file name as in:
cfa -o test.nc /home/users/amenon/test_cfa/*
Its creating the output file test.nc even after giving the error message, but the output file has only a few number of variables compared to the pp files. So the output is incomplete.
The cfa was working fine for me since the above ticket, after the cfdm upgrade. But now I am having a new issue with cfa. Its is returning the following error while aggregating some of the pp streams into nc:
cfa ERROR writing /gws/nopw/j04/incompass/shared/model/WG17/nc/WG_19Juneto01July2016_km17_PC.nc: None
I noticed that the cfa command is working fine when the individual input pp file sizes are smaller. The above error occurs mostly for large-sized files. Even after showing the error message, cfa is combining the pp files and generating an nc file . But the nc file contains only part of the data from the pp files.
I have copied the pp files of one of these streams (PC stream) with this issue to the jasmin folder
/home/users/amenon/PC_forAndy
and have changed the permissions, so that you can have a look. Hopefully, you can access them. Please let me know if you find a solution to this.
Oops… my mistake! Sorry Andy. I was thinking that I already had this path in my bashrc. Apparently I had /anaconda3/bin:$PATH. Its all working fine now.
Thanks,
Arathy