Closed nathancoliver closed 2 months ago
@nicolejkeeney This could be related to #358 since it is a recent issue?
I am seeing an inconsistency in units for these datasets. When you first select the data its units are "W/m2" and then when make changes in the Select
GUI they change to "W m-2". Need to look over the unit conversion code.
@nathancoliver Thanks for this bug report! Looks like it will be fixed with #367, We will merge that in a few minutes.
Fixed in #367. Merged to main @ c04b497
@elehmer @nicolejkeeney It appears to be working now. Thank you very much.
@elehmer @nicolejkeeney It appears to be working now. Thank you very much.
Thank you so much for reporting the bug! We will also look into the inconsistent formatting of the units so that there is just one way it is written out.
I recently ran into an issue defining units in the
climakitae.Select
object. Previously, I was able to use the unitsW m-2
for the irradiance variables. The irradiance variables I have been using have thedisplay_name
Instantaneous downwelling longwave flux at bottom
,Instantaneous downwelling shortwave flux at bottom
,Shortwave surface downward direct normal irradiance
, andShortwave surface downward diffuse irradiance
. I have also tried using the unitsW/m2
, but that has not worked either. The error that I am receiving is as follows:KeyError: 'W/m2'
- When I setSelect.variable
equal toShortwave surface downward direct normal irradiance
KeyError: 'W m-2'
- When I setSelect.variable
equal to the other three aforementioned variablesWhat is the canonical reference for what units are allowed in a selection? I found the varaible_descriptions.csv. The listed variables are working for me, but the listed units are not working.
I created a minimum working example below for you to try out:
I was wondering if you could help me resolve this issue.