Conversation
| pl = sorted(set(pl)) | ||
| var_dict.setdefault(var, []).append(None) | ||
|
|
||
| return var_dict, pl |
There was a problem hiding this comment.
looks like pl is returned but no longer used? could we just not return it?
There was a problem hiding this comment.
oh yes that's true - I'm just going to double check no other parsers are using the function too
|
Exporting single or multiple pressure levels works as expected now. Unfortunately exporting IMERG is broken again for me: part of the problem is that the channel
I could fix that by saying |
I think having a check in |
|
Note to self: PR #1723 will have to be double checked for using find_pl too (I doubt it will be a big change as verif is using the surface variables so find_pl is not really actively used) |
* fixing pressure level * remove prints * fixing pressure level for 0 * linting
Description
Fixes issue with selecting channels that don't use all available pressure levels or, a single level e.g. u_500 being treated as a surface variable.
The changes in the code will create a pressure index with all available levels but fill a speicifc variable at a given pressure level with Nans if not requested in hte code
e.g. only
q_500was requested to the ds["q"].values returns:Closes two issues as refactored the find_pl to be better suited for the second issue as well
Issue Number
Closes #2037
Closes #2030
Is this PR a draft? Mark it as draft.
Checklist before asking for review
./scripts/actions.sh lint./scripts/actions.sh unit-test./scripts/actions.sh integration-testlaunch-slurm.py --time 60