Sample file for UGRID Reader

Hi, I was wondering if there are any sample files available that are confirmed to work with the UGRID reader in version 3.6? As a test case, I tried using a sample file provided in a tutorial from another visualization software that can read UGRID, but although I could load the file into Vapor, all of the renderer options were grayed out. For reference, that tutorial can be found at this link, and the sample file I tried using is ugrid_demo.nc.

Ultimately, my goal would be to use Vapor to visualize output files from the ADCIRC model, but since these files currently have issues with CF and UGRID compliance to begin with, I’m trying to get an idea of what a Vapor-compatible UGRID file looks like. I would really appreciate any sample files that can be shared, or any advice about what metadata might be missing from the sample file that I tried so that Vapor can create renderers from it. Thanks!

1 Like

Hi, here is a set of files that describe a UGRID grid, along with some scalar variables. Thanks for asking about this, I’ll need to get these files up on our documentation. Let us know if you have further questions.

https://drive.google.com/drive/folders/1UuTfa8jmljNf6ET4WgVf9JvLVq6LCVo0?usp=sharing

Hi @pearse, thank you for sharing these files and my apologies that I wasn’t able to follow up sooner. I’m having trouble loading the files; as a starting point, I tried to load smallGrid.nc and v1.000000.nc together and I got this error:

Failure to open data set of type "ugrid"
Failed to initialize data importer
Failed to initialize netCDF data collection for reading
NetCDFSimple::Initialize(---/smallGrid.nc)
nc_get_att_long(327680, 1, _FillValue) : NetCDF: Numeric conversion not representable
------------------
Vapor 3.6.0.<debug>
OS: Windows 6.2 (9200)

(I replaced the path to my file with --- just for posting here, in my error message that shows the real path)

Is there a specific order or procedure to load these files correctly? Thanks!

That link seems to have died, so I’m not 100% sure what was in it. If there were more files, try loading them all simultaneously. If that doesn’t work, can you try the UGRID files on our sample data page and let me know if those present the same error? I can load them and yield the following on my system:

When I try to load all of the UGRID files from the sample data simultaneously, I get a similar error:

Failure to open data set of type "ugrid"
Failed to initialize data importer
Failed to initialize netCDF data collection for reading
nc_get_att_long(65536, 1, _FillValue) : NetCDF: Numeric conversion not representable
------------------
Vapor 3.6.0.<debug>
OS: Windows 6.2 (9200)

@mbotto - Thank you for reporting this. On my Windows machine, Vapor actually crashes on this dataset. I’ve made a bug report here, which I’m sure we will address before our upcoming 3.7 release.

1 Like