my current approach to making ancillaries is to convert the ancillary to netcdf then manipulate it using xarray, write out the modified data as netcdf and then convert to an ancillary file using xancil. This is a bit of a faff as I need to run xancil.
iris looks like it can read ancillary files, and then they can be modified. Is there a way of writing out ancillary files from iris? The documentation suggests iris can write out pp or netcdf data. I don’t think ancillary files are pp but some related format…
So is there a way of writing ancillary files using iris?
Can version 13.8 of the UM read ancillary files that are netcdf?
ants does not live in the default jaspy environment on jasmin so I think I will avoid using it. Instead, I will use iris to read the ancillary file, write it out as netcdf and use xancil to convert it. xancil is also not in the default env on jasmin. Does it exist on jasmin?
For now, I’ve transferred the netcdf file from jasmin to archer2 and used xancil there…
is there an easy way for mule to work with iris or xarray? It looks like I would need to get the data parts of those objects and stuff them into a mule object…
I have mostly used this for header manipulation rather than data, but depending on what operation you want to perform on a field from an existing ancillary, you should be able to add an operation on the numpy data array using Xarray or Iris in the ‘transform’ method of a DataOperator class and write out to a different ancil e.g. as shown here: