sharppy / SHARPpy

Sounding/Hodograph Analysis and Research Program in Python
https://sharppy.github.io/SHARPpy/index.html
Other
216 stars 112 forks source link

Convective Profile = NoneType #237

Closed kylejgillett closed 2 years ago

kylejgillett commented 2 years ago

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 commented 2 years ago

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

keltonhalbert commented 2 years ago

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 commented 2 years ago

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!