-
Notifications
You must be signed in to change notification settings - Fork 283
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
Spherical Harmonic GRIB #560
Comments
Can you point us towards any sample data in the public domain? |
Note: This template does not define a grid. We could consider:
|
|
CF might already be able to store spherical harmonic data but I suspect it would just be data arrays with no special "meaning". I think we'd need a prescribed way of defining spherical harmonic data if we were to pursue this. |
Spherical harmonic data naturally don't have a grid since they represent wavenumber components. Typically there might be an associated transform grid (which in the case of your example file I think is an N320 gaussian grid) which would be defined by the spectral truncation (which is T639 in your example). Transforms to other girds are of course possible, and even desirable depending upon the specific scenario. Using pyspharm to automatically transform to a grid is an option but not without its issues:
I personally think it would be best to represent spectral data in CF, but I'm not sure exactly what would need to be done to achieve this. I guess the data would be represented as a 1D complex array, with two 1D auxiliary coordinates which give you the zonal wavenumber and degree of the spherical harmonic component that is represented by each coefficient. The user could then transform this after reading it to whatever grid they want, using pyspharm or otherwise. |
Actually it seems OK at this resolution (latitude: 640, longitude:1280) I managed to transform and plot it. I had to use |
That's my gut reaction too. And from what I've seen, the CF community are not opposed to such a thing given a demonstrable need for it. We (or perhaps preferably the user with the data) would need to put the specifics forward on the CF mailing list. A starting candidate for the encoding would probably help ignite the discussion. It mostly goes without saying, but in doing this we'd have to keep a close eye on the impact on Iris. |
Many thanks for the input. I must close this issue because:
|
Iris can't read spherical harmonic GRIB files.
Requested by a user with a high urgency for use in a collaborative paper on a recent atmospheric event.
The text was updated successfully, but these errors were encountered: