Georgy,
The binary file that you receive from an ‘Get Binary’ request from Opendap is not, strictly speaking, a netCDF file and so I would not expect you to be able to open it unaltered. You have a couple of options here – I see that you are taking the entire spatial and temporal coverage of the file, so instead you can download the entire original netCDF file. This link provides all variables in the model - http://wci.earth2observe.eu/thredds/catalog/jrc/wrr1-hbv/catalog.html - each variable offers an ‘HTTPServer’ option to download the original file (the full eartH2Observe catalogue in thredds is at http://wci.earth2observe.eu/thredds/catalog-earth2observe.html)
This method works well when dealing with relatively small single files (<4GB), but once you get beyond this it becomes less practical. As you are using xarray already you can use the Opendap endpoint to create an xarray dataset or multi file dataset; this allows you to perform spatial and temporal slicing without having to download the entire file. There’s a useful tutorial at https://climate-cms.org/2019/01/18/using-opendap.html and one on multi-file datasets at https://rabernat.github.io/research_computing_2018/xarray-tips-and-tricks.html
If there’s anything else that I can help with please shout.
Cheers,
Ben
Visit our website www.pml.ac.uk and follow us on Twitter @PlymouthMarine
This message is private and confidential. If you have received this message in error, please notify the sender and remove it from your system. You are reminded that e-mail communications are not secure and may contain viruses; PML accepts no liability for any loss or damage which may be caused by viruses. Our Privacy Notice is available at http://www.pml.ac.uk/System-pages/Privacy_Notice .
Plymouth Marine Laboratory (PML) is a company limited by guarantee registered in England & Wales, company number 4178503. Registered Charity No. 1091222. Registered Office: Prospect Place, The Hoe, Plymouth PL1 3DH, UK. PML Applications Ltd, www.pml-applications.co.uk , is the wholly owned subsidiary of PML, registered as a company in England & Wales, company number 4232750.