Hi
I didn’t have any previous experience in reading MODIS netCDF files, but do have a bit now. I suspect that Iris is only looking for data variables in the root netCDF group – the MODIS files put their spatial dimensions in the root group but all the data variables in their own groups “Cloud_Retrieval_Fraction_Total” etc. with each group containing variables “Mean”, “Standard_Deviation”, “Sum”, “Pixel_Counts” and “Sum_Squares”. So Iris doesn’t see any data variables to read.
Unless anyone else has a better way, I suggest that you will need to read what need from the file (variable data, coordinates, attributes etc.) using something like netcdf4 or xarray, then build your cube out of what you’ve read.
I have attached a simple definition that does this using xarray, preserving as much of the metadata as possible. I hope this is useful.
Tony
--
You received this message because you are subscribed to the Google Groups "SciTools (iris, cartopy, cf_units, etc.) -
https://github.com/scitools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
scitools-iri...@googlegroups.com.
To view this discussion on the web, visit
https://groups.google.com/d/msgid/scitools-iris/7f308b05-e693-451e-ac29-0fdc90b8e098n%40googlegroups.com.