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

Create derived parameters #64

Closed
hugohartmann opened this issue Sep 26, 2018 · 10 comments
Closed

Create derived parameters #64

hugohartmann opened this issue Sep 26, 2018 · 10 comments
Assignees
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@hugohartmann
Copy link

For analysis, it would be nice to create derived parameters. Example: wind speed magnitude, created from 2D fields U10 and V10, or 3D fields U and V.

@dmey dmey added the enhancement New feature or request label Sep 26, 2018
@dmey dmey self-assigned this Sep 27, 2018
@dmey dmey added the wontfix This will not be worked on label Sep 27, 2018
@dmey
Copy link
Contributor

dmey commented Sep 27, 2018

We rely on wrf-python to compute diagnostics variables and to interpolate the data. If there are parameteres which are not currently supoorted, it may be better to suggest them to wrf-python directly here rather than implementing them from scratch in GIS4WRF. I will close this issue.

@dmey dmey closed this as completed Sep 27, 2018
@letmaik
Copy link
Contributor

letmaik commented Sep 27, 2018

Addition: List of derived variables is here: https://wrf-python.readthedocs.io/en/latest/diagnostics.html We only support single-quantity variables. wspd_wdir is a combination of speed and direction which has an additional dimension of length 2. If what you want is just the speed component of that, please ask them to make wspd and wdir available as individual variables.

@hugohartmann
Copy link
Author

@letmaik Thanks for this suggestion, will do!

@hugohartmann
Copy link
Author

Just one question and comment: The variables that have a * at the end of the parameter name (e.g. MDBZ*), are these referring to the diagnostics provided by wrf-python? It seems not always be the case as CLDFRA does not have a *.

I noticed that a lot of these * parameters have empty fields. MDBZ for instance. Perhaps I should forward this to wrf-python.

Suggestion: please add the parameter unit and dimension (2D, 3D) to the parameter description

@letmaik
Copy link
Contributor

letmaik commented Sep 28, 2018

Yes, * means it's coming from wrf-python. CLDFRA is part of the NetCDF file, it's not derived and also isn't part of the list I linked above. Did you confuse that with something else?

Regarding empty fields, what do you mean by that?

Can you create a separate issue for your suggestion with the parameter units and dimension?

@hugohartmann
Copy link
Author

hugohartmann commented Sep 28, 2018

empty means 'black'.

image

This picture is showing MDBZ*. Perhaps it has (again) to do with the colorbar selection in "Symbology". I am seeing 49 bands. What is that? Does it happen to be the number of forecast hours that had been simulated?

Edit: Band 01 gives me black. Fiddling around (selecting other bands), finally gave me a useful picture, but I do not understand how this works :)

image

@letmaik
Copy link
Contributor

letmaik commented Sep 30, 2018

The different bands are the different time steps. The time slider just switches the currently active band. I think the issue is that when the image is all black, then the min and max is the same value, and this scaling is kept for all time steps which would probably keep them black even if they have data. By manually fiddling you probably reset the min/max based on a different layer. This probably deserves a separate issue.

@hugohartmann
Copy link
Author

I will create one.

@dmey
Copy link
Contributor

dmey commented Dec 19, 2018

Wspd and wdir has now been added as separate diagnostics variables in wrf-python (see: NCAR/wrf-python#73. For clarity this will be taken care by #107.

@letmaik
Copy link
Contributor

letmaik commented Dec 19, 2018

@dmey This issue is not about wind vectors as such, but merely to be able to access what was combined in wspd_wdir at all and what is now exposed as two separate 2D fields. There's nothing else from our side to do there. For Windows, it depends a bit on when wrf-python releases binary wheels for newer versions. On macOS/Linux, with the next release of wrf-python, the two new fields wspd and wdir can be accessed from GIS4WRF without any change. Note that drawing of vectors is part of #47 which requires more external work outside our control.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants