-
Notifications
You must be signed in to change notification settings - Fork 77
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
No valid time found #2400
Comments
Hi Daniel, do you have the full log of the MSS server startup (what it dumps upon parsing all the files etc) and the configuration of the layer? |
Hi Jörn, find attached a log of the startup and a (shortened) mswms_settings (I removed everything not related to the layer which makes problems). |
Mmh. this log looks different from ours. there are no DEBUG and INFO messages of MSS. When I manually start mswms in the config directory via
listing the identified times and variables. This is not in the log file, but should help. The layer contains a list of desired standard_names and using this, one should be able to identify, which standard_name is missing in the data, e.g. if ertel_potential_vorticity is required by the plot, but not given, the error you have will result. AFAIK, the vertical Generic plots add almost all, by default, PV and THETA, which may be missing in your data.
Not tested, but changing the list in the for loop should do the trick. I am not sure how a more helpful error message would look like given the data available at the point in the code where it appears. If this is indeed your issue, I will try to improve on this. |
Thanks Jörn! The hint with the PV and THETA might be a good one, with your code I can at least register the layers and can access them in msui. They do not show what I want but maybe that is another thing. I'll check on that in the next days and get back with the result. About the startup of the server, I only get WARNING s dumped. I need to check how to write INFO and DEBUG... |
General question: For such a case, would you recommend to not use the GenericStyle plot routines but rather write an own style ? |
I have to admit that the generic style routines are, historically, our generic style and thus they include sensibly PV and Theta lines, which are often quite useful. However, this causes issues for quick testing and other models that do not include them. I also write my own custom styles, but 98% of our layers are created using the make_generic function. |
I think this is more a documentation thingy. When you want you could add @dhgkunkel another example to the samples dir, when you solved it and refer to that in the mswms.docs, e.g. https://mss.readthedocs.io/en/stable/mswms.html#adopt-the-mswms-settings-py-for-your-needs |
Yes, but Jens-Uwe had similar problems in the past. A helpful error message like "these are the variables needed by this layer and this one has no time at all" would have sped up things tremendously along. |
I think one could make an error message for that upon collecting the valid times. |
Hi,
I have data for an MSS Server where I get an error message saying that the file has no valid times.
The error message looks like:
mss_error.log:[Thu Jun 06 11:02:21.113523 2024] [wsgi:error] [pid
249713:tid 140591208253184] [remote 134.93.180.60:40034]
ERROR:root:layer <mswms_settings.my_class object at
0x7fdd9d172140>/icon_wcb has no valid times!
It is issued by mswms/wms.py and appears when no time steps are found or when the time variable is not correctly labelled ( to my understanding).
I attached a file showing output from ncdump -v time of the respective file.
Any suggestions are welcome!
Thanks, Daniel
file_description_with_time_var.log
The text was updated successfully, but these errors were encountered: