semvec/pypi-packages huggingface dataset:
windsaloft 0.0.2
Convert U/V raster to streamlines (geojson)
License: MIT
Keywords: map weather geojson gis gfs streamline

# windsaloft

Convert a vectorial raster field into streamlines. The output is in a convenient GeoJSON format.

![streamlines](https://user-images.githubusercontent.com/157599/117187271-6e52c900-ade4-11eb-8f1c-aae793afae5d.png)

Installation
-----

Install the latest version from the Python Package Index:

	$ pip install windsaloft


Usage
-----

To create the streamlines, a vectorial field is needed:


	import numpy as np
	import geojson
	import pygrib
	import windsaloft

	grib = pygrib.open('data.grib2')

U/V Components

	u = grib.select(shortName='u')[0].values
	v = grib.select(shortName='v')[0].values

Convert GRIBs data to "standard" -180 to 180 extent global grids

	u = np.roll(u, u.shape[1] // 2, axis=1)
	v = np.roll(v, v.shape[1] // 2, axis=1)

Calculate streams

	feature_collection = windsaloft.jet_streams(u, v, pixel_dist=5, min_value=10, smooth=2, zigzag_degrees=45)

Write output to a file

	with open('streams.geojson', 'w') as fileout:
	    geojson.dump(feature_collection, fileout, sort_keys=True, separators=(',', ':'))
simplepipreqs 0.0.3
Python module to generate requirements.txt for a given project.
License: MIT
Requires Python: >=3.6.0
Keywords: Requirments Requirments.txt Requirment.txt python Ipython ipynb py

# simplepipreqs

Python module to generate requirement.txt for a given python / Ipython project

## Usage
<br />

>To make requirments.txt for current directory

```
simplepipreqs
```
<br />

>To make requirments.txt for a target directory

```
simplepipreqs -p <path_of_dir>
```
<br />

>To use a different pip version

```
simplepipreqs -v <pip_version<example:pip3>>
```
<br />

## Installing

A step by step series of examples that tell you how to get a development env running

Install the Requirements:

```
 pip install simplepipreqs
```

## Contributing

We are egarly looking for contributors and maintainers to move this project forward.


## Authors

* **Atharva Gundawar** - *Initial work* - [Github handle](https://github.com/Atharva-Gundawar)

See also the list of [contributors](https://github.com/Atharva-Gundawar/simplepipreqs/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

* Inspired by [Pipreqs](https://github.com/bndr/pipreqs)