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

unit conversion prior to hysplit usage #5

Closed
acatalano16 opened this issue Feb 14, 2020 · 1 comment
Closed

unit conversion prior to hysplit usage #5

acatalano16 opened this issue Feb 14, 2020 · 1 comment

Comments

@acatalano16
Copy link

In the get_era5_cds.py script, your comments mention that some variables (pressure, geopotential) will need conversion to more standard units:

sname['WWND'] = ["w", '135', '0.01','135.128','vertical_velocity', '2','8']   #units Pa/s. convert to hPa/s for HYSPLIT
sname['RELH'] = ["r", '157', '1.0', '157.128','relative_humidity']    #units %
sname['HGTS'] = ["z", '129', '0.102','129.128','geopotential','3','4']  #units m^2 / s^2. Divide by 9.8m/s^2 to get meters.
#sname['SPHU']= "q"     #units kg / kg category 1, number 0. multiplier is 1   #specific humidity. redundant since have RELH

I don't know precisely what the sname dict values mean, but it seems like the third value is the conversion multiplier. I'm unclear based on your comments - is this conversion automatically done through your script + era52arl? If not, at what stage from .grib to .ARL should/can the user convert?

Thanks for your help.

@amcz
Copy link
Owner

amcz commented Feb 25, 2020

Yes, the third value is the conversion multiplier. The comments simply document how that value was arrived at. Those values will go into the era52arl.cfg file which will tell the converter code how to conver to the units that HYSPLIT expects.

@amcz amcz closed this as completed Feb 25, 2020
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

2 participants