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

grib file no vector #94

Open
PhMakowski opened this issue Aug 26, 2022 · 7 comments
Open

grib file no vector #94

PhMakowski opened this issue Aug 26, 2022 · 7 comments

Comments

@PhMakowski
Copy link

Hi,
I have a grib file :
cdo showattribute R_NOSYCA-CHAMPMTO-arp_0207_06UTC#NosicaHeader.grb z: standard_name = "geopotential" long_name = "Geopotential" units = "m**2 s**-2" missing_value = -9e+33 v: standard_name = "northward_wind" long_name = "V component of wind" units = "m s**-1" missing_value = -9e+33 t: standard_name = "air_temperature" long_name = "Temperature" units = "K" missing_value = -9e+33 u: standard_name = "eastward_wind" long_name = "U component of wind" units = "m s**-1" missing_value = -9e+33 cdo showattribute: Processed 4 variables [0.08s 43MB].

ncWMS Server as Variable ID set :
Temperature_isobaric, Geopotential_isobaric, u-component_of_wind_isobaric, v-component_of_wind_isobaric

How can I get the wind vector ?
if I use : LAYERS=u-component_of_wind_isobaric%3Av-component_of_wind_isobaric-group&STYLES=vector_wind_barbs
I get <ServiceException> The variable u-component_of_wind_isobaric:v-component_of_wind_isobaric-group is not available </ServiceException>

@guygriffiths
Copy link
Collaborator

Sorry for the delayed response on this. Do you have a copy of the file you could share?

@PhMakowski
Copy link
Author

R_NOSYCA-CHAMPMTO-arp_0207_06UTC#NosicaHeader.zip

here the file, thanks

@guygriffiths
Copy link
Collaborator

Thanks for that. There were a couple of issues. Firstly, this has brought to light a bug in the upgrade to the newest Apache Velocity version, which I've fixed. However, the main reason it wasn't working was that the standard name format wasn't recognised properly (it expects "u-wind component" rather than "u-component of wind").

I've fixed both of those issues in a snapshot version, available here: https://github.com/Reading-eScience-Centre/ncwms/releases/tag/ncwms-2.5.3-snapshot. If you could try it and give me some feedback, I should be able to do a full release soon.

@PhMakowski
Copy link
Author

thanks, unfortunately, I can't test it for now
I have a error due to java version it seems.
java.lang.UnsupportedClassVersionError: uk/ac/rdg/resc/edal/wms/WmsContextListener has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 (unable to load class uk.ac.rdg.resc.edal.wms.WmsContextListener)

@guygriffiths
Copy link
Collaborator

Ah yes, ncWMS2 has been using Java 11 since version 2.5.0. It looks like you're still on Java 8.

@PhMakowski
Copy link
Author

unfortunately I can't use Java 11 in my context.

@oiukaa
Copy link

oiukaa commented Aug 17, 2023

I've fixed both of those issues in a snapshot version, available here: https://github.com/Reading-eScience-Centre/ncwms/releases/tag/ncwms-2.5.3-snapshot. If you could try it and give me some feedback, I should be able to do a full release soon.

@guygriffiths I tested ncwms-2.5.3-snapshot and it recognizes [u|v] component of wind correctly.

For the record / from "bookkeeping" point of view: It seems that fix for this issue is this commit Reading-eScience-Centre/edal-java@6e5ac1d at edal-java repository's develop branch.

btw. Thank your for the this great project (ncws)

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