Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NetCDF does not yet support complex data #8

Closed
alex-s-gardner opened this issue Feb 22, 2024 · 3 comments
Closed

NetCDF does not yet support complex data #8

alex-s-gardner opened this issue Feb 22, 2024 · 3 comments

Comments

@alex-s-gardner
Copy link

looking into the issues more it seems that NetCDF does not yet support complex datatypes:
cf-convention/discuss#369

This limits the utility of the grid_mapping attribute which is a NetCDF convention that associates the porjection variable with corresponding raster.

The fact that the NISAR products are ahead of the NC4 spec:
https://docs.unidata.ucar.edu/netcdf-c/current/file_format_specifications.html

Will likely cause issues across multiple tools and will slow adoption.

@aivazis
Copy link
Member

aivazis commented Feb 22, 2024

The HDF folks claim that the upcoming release of HDF5 will have native support for complex numbers, which will probably cascade to NetCDF pretty quickly. So this may sort itself out in short order. Fingers crossed...

@alex-s-gardner
Copy link
Author

Fingers crossed indeed... seems like this has been a lingering issue for at least 30 years:
https://www.unidata.ucar.edu/software/netcdf/coords/0023.html

And NetCDF is not known for moving quickly.

@vbrancat
Copy link

vbrancat commented Aug 2, 2024

Hi @alex-s-gardner, this is not an issue with our NISAR products but rather with the netCDF4 driver. At the moment, the netCDF4 driver does not have support for complex data.

However, it is still possible to use the netCDF4 driver and visualize the amplitude and phase of complex Datasets in our NISAR products using qGIS tool. If you are interested in how to manipulate complex datasets in qGIS, I recommend this visualization guide that our team member Seongsu Jeong has written for OPERA CSLC-S1 products. It should guide you through the necessary steps to display the amplitude and phase of complex HDF5 Datasets (e.g., the wrappedInterferogram Dataset in our RIFG and GUNW products).

@vbrancat vbrancat closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants