Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Can't open file with NetCDF java library #1263

Closed
rfcsantos opened this issue Apr 22, 2019 · 2 comments
Closed

Can't open file with NetCDF java library #1263

rfcsantos opened this issue Apr 22, 2019 · 2 comments

Comments

@rfcsantos
Copy link

rfcsantos commented Apr 22, 2019

I'm trying to open the file
https://github.com/OpenDrift/opendrift/blob/master/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc.
with the following code:
NetcdfFile nc = new NetcdfFile(outputFilePath, true);

but it always show "java.lang.IllegalArgumentException: Not a netcdf file" but with toolsUI and other applications it opens fine.

Maybe some validations are incorrect

@rfcsantos
Copy link
Author

I already figured out what the problem is.
It's an HDF type and I need to open it with 'NetcdfFile nc = NetcdfFile.open(outputFilePath);'

@rfcsantos rfcsantos reopened this Apr 22, 2019
@rfcsantos
Copy link
Author

I already figured out what the problem is.
It's an HDF type and I need to open it with 'NetcdfFile nc = NetcdfFile.open(outputFilePath);'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant