Hello StackOverflow Community,
I am a beginner Python programmer who is transitioning over from MATLAB. One of my biggest struggles so far has been trying to understand how to find out more information about new Python packages that I install. Let me attempt to give a concrete example below:
Say I download and want use the pygrib package to open and grab some atmospheric data from a .grib file I downloaded. I find some code online (here) that shows me how to grab data using pygrib. The author of that code uses syntax for the pygrib package that I just can't to find documented on the pygrib website (e.g. pygrib.open.select.values(); pygrib.open.select()["latitudeOfFirstGridPointInDegrees]
).
When searching for more information on pygrib.open.select.values()
on the pygrib website (here) I see that pygrib.open.select()
takes **kwargs
as its argument, and nothing further is explained.
My question here is, are kwargs
and .values
the same thing in Python? As in, is the .values
a key word argument for pygrib.open.select()
? My thoughts lead to the answer no, which then brings up another question:
Where can one find more information about the kwargs
that pygrib.open.select()
accepts, and in general how can one find this information for other Python packages? Would it be a matter of looking at the source code for each class?
Any help or guidance is sincerely appreciated. Thank you for your time and efforts.