Helpertools RST
Helpertools RST
================
*************************
.. code-block:: python
**************************************************
Returning a dictionary of profile parameters
--------------------------------------------
.. py:function:: .calc()
.. note::
These calculated parameters are the same used on SounderPy plots. This function
simply returns the master dictionary of all of these values.
****************************************************************
:param station_type: the station 'type' that corresponds with the given station
ID
:type station_type: str, required
:param station_id: the station ID for the given station type
:type station_id: str, required
:return: lat/lon float pair
:rtype: list
Example:
.. code-block:: python
spy.get_latlon('metar', 'kmop')
spy.get_latlon('bufkit', 'apx')
spy.get_latlon('raob', 'oun')
spy.get_latlon('buoy', '45210')
* note: you can use this lat/lon pair list when calling the
function :ref:`get_model_data<modeldata>`
***************************************************************
:param file_type: a `str` representing the file type you'd like to export data
to.
:type file_type: str, required
:param clean_data: 'cleaned' SounderPy data `dict`
:type clean_data: dict, required
:param filename: the name you'd like to give the file
:type filename: str, required
:return: a file of SounderPy data.
Example:
* File options include `csv`, `cm1`, & `sharppy`
.. code-block:: python
spy.to_file('csv', clean_data)
spy.to_file('cm1', clean_data)
spy.to_file('sharppy', clean_data)
***************************************************************
Example:
.. code-block:: python
***************************************************************
Finding a 'nearest' value
--------------------------
Example:
.. code-block:: python