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

Convective Profile = NoneType #237

Closed
kylejgillett opened this issue May 6, 2022 · 3 comments
Closed

Convective Profile = NoneType #237

kylejgillett opened this issue May 6, 2022 · 3 comments

Comments

@kylejgillett
Copy link

Hello SHARPpy peeps,

I am working on some custom scripting using SHARPpy and I am trying to create a convective profile, however, I am getting a strange error. First of all, the command to create the profile fails due to NoneType error when trying to execute self.get_PWV_loc(). As a test, when I run print(Convect_prof), I get an output of 'None'. Any ideas as to what is causing this?

this is my code: Convect_prof = profile.create_profile(profile='convective', pres=p.m, hght=z_clean.m, tmpc=T.m, \ dwpc=Td.m, wspd=ws_clean, wdir=wd_clean, missing=-9999, strictQC=True)

this is my error:
Screenshot 2022-05-06 at 11-42-55 SkewTplotter - Jupyter Notebook

Thank you!

@kylejgillett
Copy link
Author

I should add, this code is for an observed sounding from FWD yesterday.

@keltonhalbert
Copy link
Contributor

The Convective Profile expects some specific keywords to be specified. In this case, it looks like the profile date isn't set. Add date=datetime(YYYY, MM, DD, HH) to your function call and it shouldn't complain anymore.

@kylejgillett
Copy link
Author

The Convective Profile expects some specific keywords to be specified. In this case, it looks like the profile date isn't set. Add date=datetime(YYYY, MM, DD, HH) to your function call and it shouldn't complain anymore.

Ah, I see! Thanks for the help, that fixed it!

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