Saravanan666/pypi-org huggingface dataset:
Package: georss-generic-client
python-georss-generic-clientThis library provides convenient generic access toGeoRSSfeeds.Installationpip install georss-generic-clientUsageSee below for examples of how this library can be used for particular GeoRSS
feeds. After instantiating a particular class and supply the required
parameters, you can callupdateto retrieve the feed data. The return value
will be a tuple of a status code and the actual data in the form of a list of
feed entries specific to the selected feed.Status CodesUPDATE_OK: Update went fine and data was retrieved. The library may still return empty data, for example because no entries fulfilled the filter criteria.UPDATE_OK_NO_DATA: Update went fine but no data was retrieved, for example because the server indicated that there was not update since the last request.UPDATE_ERROR: Something went wrong during the updateSupported FiltersFilterDescriptionRadiusfilter_radiusRadius in kilometers around the home coordinates in which events from the feed are included.Categoriesfilter_categoriesArray of category names. Only events with a category matching any of these are included.Examplefromgeorss_generic_clientimportGenericFeed# Home Coordinates: Latitude: -27.5, Longitude: 153.0# Filter radius: 200 kmfeed=GenericFeed((-27.5,153.0),filter_radius=200,url="https://www.qfes.qld.gov.au/data/alerts/bushfireAlert.xml")status,entries=feed.update()Feed ManagerThe Feed Manager helps managing feed updates over time, by notifying the
consumer of the feed about new feed entries, updates and removed entries
compared to the last feed update.If the current feed update is the first one, then all feed entries will be
reported as new. The feed manager will keep track of all feed entries'
external IDs that it has successfully processed.If the current feed update is not the first one, then the feed manager will
produce three sets:Feed entries that were not in the previous feed update but are in the
current feed update will be reported as new.Feed entries that were in the previous feed update and are still in the
current feed update will be reported as to be updated.Feed entries that were in the previous feed update but are not in the
current feed update will be reported to be removed.If the current update fails, then all feed entries processed in the previous
feed update will be reported to be removed.After a successful update from the feed, the feed manager will provide two
different dates:last_updatewill be the timestamp of the last successful update from the
feed. This date may be useful if the consumer of this library wants to
treat intermittent errors from feed updates differently.last_timestampwill be the latest timestamp extracted from the feed data.
This requires that the underlying feed data actually contains a suitable
date. This date may be useful if the consumer of this library wants to
process feed entries differently if they haven't actually been updated.
Package: georss-ingv-centro-nazionale-terremoti-client
python-georss-ingv-centro-nazionale-terremoti-clientThis library provides convenient access to theINGV Centro Nazionale Terremoti (Earthquakes) Feed.Installationpip install georss-ingv-centro-nazionale-terremoti-clientUsageSee below for an example of how this library can be used. After instantiating
the feed class and supplying the required parameters, you can callupdateto
retrieve the feed data. The return value will be a tuple of a status code and
the actual data in the form of a list of specific feed entries.Status CodesUPDATE_OK: Update went fine and data was retrieved. The library may still return empty data, for example because no entries fulfilled the filter criteria.UPDATE_OK_NO_DATA: Update went fine but no data was retrieved, for example because the server indicated that there was not update since the last request.UPDATE_ERROR: Something went wrong during the updateSupported FiltersFilterDescriptionRadiusfilter_radiusRadius in kilometers around the home coordinates in which events from feed are included.Minimum Magnitudefilter_minimum_magnitudeMinimum magnitude as float value. Only events with a magnitude equal or above this value are included.Examplefromgeorss_ingv_centro_nazionale_terremoti_clientimport\IngvCentroNazionaleTerremotiFeed# Home Coordinates: Latitude: 40.84, Longitude: 14.25# Filter radius: 200 km# Filter minimum magnitude: 4.0feed=IngvCentroNazionaleTerremotiFeed((40.84,14.25),filter_radius=200,filter_minimum_magnitude=4.0)status,entries=feed.update()Feed ManagerThe Feed Manager helps managing feed updates over time, by notifying the
consumer of the feed about new feed entries, updates and removed entries
compared to the last feed update.If the current feed update is the first one, then all feed entries will be
reported as new. The feed manager will keep track of all feed entries'
external IDs that it has successfully processed.If the current feed update is not the first one, then the feed manager will
produce three sets:Feed entries that were not in the previous feed update but are in the
current feed update will be reported as new.Feed entries that were in the previous feed update and are still in the
current feed update will be reported as to be updated.Feed entries that were in the previous feed update but are not in the
current feed update will be reported to be removed.If the current update fails, then all feed entries processed in the previous
feed update will be reported to be removed.After a successful update from the feed, the feed manager will provide two
different dates:last_updatewill be the timestamp of the last successful update from the
feed. This date may be useful if the consumer of this library wants to
treat intermittent errors from feed updates differently.last_timestampwill be the latest timestamp extracted from the feed data.
This requires that the underlying feed data actually contains a suitable
date. This date may be useful if the consumer of this library wants to
process feed entries differently if they haven't actually been updated.
Package: georss-nrcan-earthquakes-client
python-georss-nrcan-earthquakes-clientThis library provides convenient access to theNatural Resources Canada Earthquakes Feed.Installationpip install georss-nrcan-earthquakes-clientUsageSee below for an example of how this library can be used. After instantiating
the feed class and supplying the required parameters, you can callupdateto
retrieve the feed data. The return value will be a tuple of a status code and
the actual data in the form of a list of specific feed entries.Status CodesUPDATE_OK: Update went fine and data was retrieved. The library may still return empty data, for example because no entries fulfilled the filter criteria.UPDATE_OK_NO_DATA: Update went fine but no data was retrieved, for example because the server indicated that there was not update since the last request.UPDATE_ERROR: Something went wrong during the updateSupported LanguagesLanguageFeedEnglishenFrançaisfrSupported FiltersFilterDescriptionRadiusfilter_radiusRadius in kilometers around the home coordinates in which events from the feed are included.Minimum Magnitudefilter_minimum_magnitudeMinimum magnitude as float value. Only events with a magnitude equal or above this value are included.Examplefromgeorss_nrcan_earthquakes_clientimportNaturalResourcesCanadaEarthquakesFeed# Home Coordinates: Latitude: 49.25, Longitude: -123.1# Language: English# Filter radius: 200 km# Filter minimum magnitude: 4.0feed=NaturalResourcesCanadaEarthquakesFeed((49.25,-123.1),'en',filter_radius=200,filter_minimum_magnitude=4.0)status,entries=feed.update()Feed ManagerThe Feed Manager helps managing feed updates over time, by notifying the
consumer of the feed about new feed entries, updates and removed entries
compared to the last feed update.If the current feed update is the first one, then all feed entries will be
reported as new. The feed manager will keep track of all feed entries'
external IDs that it has successfully processed.If the current feed update is not the first one, then the feed manager will
produce three sets:Feed entries that were not in the previous feed update but are in the
current feed update will be reported as new.Feed entries that were in the previous feed update and are still in the
current feed update will be reported as to be updated.Feed entries that were in the previous feed update but are not in the
current feed update will be reported to be removed.If the current update fails, then all feed entries processed in the previous
feed update will be reported to be removed.After a successful update from the feed, the feed manager will provide two
different dates:last_updatewill be the timestamp of the last successful update from the
feed. This date may be useful if the consumer of this library wants to
treat intermittent errors from feed updates differently.last_timestampwill be the latest timestamp extracted from the feed data.
This requires that the underlying feed data actually contains a suitable
date. This date may be useful if the consumer of this library wants to
process feed entries differently if they haven't actually been updated.
Package: georss-tfs-incidents-client
python-georss-tfs-incidents-clientThis library provides convenient access to theTasmania Fire Service Incidents Feed.Installationpip install georss-tfs-incidents-clientUsageSee below for an example of how this library can be used. After instantiating
the feed class and supplying the required parameters, you can callupdateto
retrieve the feed data. The return value will be a tuple of a status code and
the actual data in the form of a list of specific feed entries.Status CodesUPDATE_OK: Update went fine and data was retrieved. The library may still return empty data, for example because no entries fulfilled the filter criteria.UPDATE_OK_NO_DATA: Update went fine but no data was retrieved, for example because the server indicated that there was not update since the last request.UPDATE_ERROR: Something went wrong during the updateSupported FiltersFilterDescriptionRadiusfilter_radiusRadius in kilometers around the home coordinates in which events from the feed are included.Categoriesfilter_categoriesArray of category names. Only events with a category matching any of these are included.Examplefromgeorss_tfs_incidents_clientimportTfsIncidentsFeed# Home Coordinates: Latitude: -41.5, Longitude: 148.0# Filter radius: 50 kmfeed=TfsIncidentsFeed((-41.5,148.0),filter_radius=50)status,entries=feed.update()Feed ManagerThe Feed Manager helps managing feed updates over time, by notifying the
consumer of the feed about new feed entries, updates and removed entries
compared to the last feed update.If the current feed update is the first one, then all feed entries will be
reported as new. The feed manager will keep track of all feed entries'
external IDs that it has successfully processed.If the current feed update is not the first one, then the feed manager will
produce three sets:Feed entries that were not in the previous feed update but are in the
current feed update will be reported as new.Feed entries that were in the previous feed update and are still in the
current feed update will be reported as to be updated.Feed entries that were in the previous feed update but are not in the
current feed update will be reported to be removed.If the current update fails, then all feed entries processed in the previous
feed update will be reported to be removed.After a successful update from the feed, the feed manager will provide two
different dates:last_updatewill be the timestamp of the last successful update from the
feed. This date may be useful if the consumer of this library wants to
treat intermittent errors from feed updates differently.last_timestampwill be the latest timestamp extracted from the feed data.
This requires that the underlying feed data actually contains a suitable
date. This date may be useful if the consumer of this library wants to
process feed entries differently if they haven't actually been updated.
Package: georss-wa-dfes-client
python-georss-wa-dfes-clientThis library provides convenient access to theWestern Australia Department of Fire and Emergency Services Feed.Installationpip install georss-wa-dfes-clientUsageSee below for an example of how this library can be used. After instantiating
the feed class and supplying the required parameters, you can callupdateto
retrieve the feed data. The return value will be a tuple of a status code and
the actual data in the form of a list of specific feed entries.Status CodesUPDATE_OK: Update went fine and data was retrieved. The library may still return empty data, for example because no entries fulfilled the filter criteria.UPDATE_OK_NO_DATA: Update went fine but no data was retrieved, for example because the server indicated that there was not update since the last request.UPDATE_ERROR: Something went wrong during the updateSupported FeedsCategoryFeedWarningswarningsIncidentsall_incidentsSupported FiltersFilterDescriptionRadiusfilter_radiusRadius in kilometers around the home coordinates in which events from feed are included.Categoriesfilter_categoriesArray of category names. Only events with a category matching any of these is included.Examplefromgeorss_wa_dfes_clientimportWaDfesFeed# Home Coordinates: Latitude: -31.0, Longitude: 121.0# Feed: Warnings# Filter radius: 50 kmfeed=WaDfesFeed((-31.0,121.0),'warnings',filter_radius=50)status,entries=feed.update()Feed ManagerThe Feed Manager helps managing feed updates over time, by notifying the
consumer of the feed about new feed entries, updates and removed entries
compared to the last feed update.If the current feed update is the first one, then all feed entries will be
reported as new. The feed manager will keep track of all feed entries'
external IDs that it has successfully processed.If the current feed update is not the first one, then the feed manager will
produce three sets:Feed entries that were not in the previous feed update but are in the
current feed update will be reported as new.Feed entries that were in the previous feed update and are still in the
current feed update will be reported as to be updated.Feed entries that were in the previous feed update but are not in the
current feed update will be reported to be removed.If the current update fails, then all feed entries processed in the previous
feed update will be reported to be removed.After a successful update from the feed, the feed manager will provide two
different dates:last_updatewill be the timestamp of the last successful update from the
feed. This date may be useful if the consumer of this library wants to
treat intermittent errors from feed updates differently.last_timestampwill be the latest timestamp extracted from the feed data.
This requires that the underlying feed data actually contains a suitable
date. This date may be useful if the consumer of this library wants to
process feed entries differently if they haven't actually been updated.
Package: georssy
# GeoRSSy
[![PyPI](https://img.shields.io/pypi/v/georssy.svg)](https://pypi.python.org/pypi/georssy)
[![PyPI](https://img.shields.io/pypi/status/georssy.svg)](https://pypi.python.org/pypi/georssy)
[![PyPI](https://img.shields.io/pypi/l/georssy.svg)](https://pypi.python.org/pypi/georssy)
[![PyPI](https://img.shields.io/pypi/pyversions/georssy.svg)](https://pypi.python.org/pypi/georssy)
[![PyPI](https://img.shields.io/pypi/format/georssy.svg)](https://pypi.python.org/pypi/georssy)
[![PyPI](https://img.shields.io/pypi/wheel/georssy.svg)](https://pypi.python.org/pypi/georssy)A rough Python GeoRSS (Geographically Encoded Objects for RSS feeds) decoder.GeoRSSy is a very rough (but powerfull!) decoder for the GeoRSS (Geographically Encoded Objects for RSS feeds) standard.For information about GeoRSS:http://www.georss.org/## How to install
To install GeoRSSy, simply:`bash $ pip install georssy `## How to use
To use georss, simply:`python from georssy import GeoRssDecoder ... georss_entry = GeoRssDecoder( parent_node = r, polygons_over_boxes = True ) tmp = georss_entry.polygon_list `## How to Contribute
1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
2. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).
3. Write a test which shows that the bug was fixed or that the feature works as expected.
4. Send a pull request and ask the maintainer to merge and publish it.## TODO
GeoRSSy is a very young project, so there’s a lot of things to do! This is a short TO-DO list:
- accept URL to a remote/local XML as input files
- GML: add “Coordinate Reference System” attributes implementation (and add new tests)
- check Python 3 compatibility—
# WARNING!!! GeoRSSy is currently under development! So it’s not so stable as you can expect! :)
—
Package: georunes
GeoRunesGeoRunes is a bunch of tools and classes written to generate geochemical diagrams using matplotlib.georunes.plotassits the representation of geochemical data in binary diagrams, ternary diagrams and normalized spider diagrams. It uses plotting parameters (category, color, marker, label ...) defined in the data source file along with geochemical data to construct the required figures.georunes.modminestimates the modal mineralogy of some whole rock compositions, provided a list of minerals with their composition.FeaturesData source supported formats: .csv, .xls or .xlsx,Data loaded as pandas DataFrames,Plotting parameters (color, marker, label, drawing order ...) configurable automatically (see examples/preprocess_files.py),Support scaling of axes, layout padding, adjusting figure ratio, transparency and size of markers, configuring legends,Chemical conversion from wt.% oxide to element (in millications or ppm),Ternary diagram (based on the packagepython-ternary),Inner geochemical normalization and multiple plotting style in spider diagrams,Handling of translations (using gettext, pass the lang_cfg parameter as a dict{'lang', 'domain' if different, 'locales' if different}),CIPW norm calculation and estimation (optimization) of modal mineralogy from whole rock and mineral compositions,Available methods for estimation of modal mineralogy : bounded-variable least squares, non-negative least squares, gradient descent, or a random research,Components of a solid solution can be fixed for estimation a mineralogy,Dependenciesmatplotlibpandasnumpyscipypython-ternaryInstallationInstall stable version with pip command:pip install georunesInstall updated version from github:git clone https://github.com/dugucrypter/georunes.git
  cd georunes
  python setup.py install --userThis code was tested withPython 3.11,matplotlib 3.7.2,pandas 2.1.0,numpy 1.24.3, andscipy 1.10.0.Working with GeoRunesShort exampleimportmatplotlib.pyplotaspltfromgeorunes.plot.binary.versusimportDiagramVs# Initialize diagram classdiag_nb_ta=DiagramVs(datasource="path/to/data.xls",sheet="sheet1",group_name='Category',# Attribute used for categorizationxvar="Nb",yvar="Ta",# Variables to plotxlabel="Nb (ppm)",ylabel="Ta (ppm)",# Labels to write in axesxscale='log',yscale='log',# Custom scaling)# Plot datadiag_nb_ta.plot()# Show the figureplt.show()More examples with an arbitrary geochemical dataset are proposed in the \examples directory.RoadmapSupplementary whole-rocks and mineral-based geochemical diagrams will be added in the following versions. Long-term updates might provide utilities for geochemical modelling and normative mineralogy.AuthorW.M.-E. Bonzi, 2021-2023.LicenseThis work is under MIT License.
Package: geosample
geosampleSample locations from geospatial inputsFree software: Apache Software License 2.0Documentation:https://geosample.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.3.0 (2017-02-25)Add random seed selection.0.2.1 (2017-02-22)Use comment style type annotations for compatibility with python2.0.2.0 (2017-02-02)Add CLI.0.1.1 (2017-02-02)Distribution fix0.1.0 (2017-02-02)First release on PyPI
Package: geo-sampling
Geo samplingSay you want to learn about the average number of potholes per kilometer of street in a city. Or estimate a similar such quantity. To estimate the quantity, you need to sample locations on the streets. This package helps you sample those locations. In particular, the package implements the following sampling strategy:Sampling Frame: Get all the streets in the region of interest fromOpenStreetMap. To accomplish that, the package first downloads administrative boundary data for the country in which the region is located in ESRI format fromhttp://www.gadm.org/countryThe administrative data is in multiple levels, for instance, cities are nested in states, which are nested in countries. The user can choose a city or state, but not a portion of a city. And then the package uses thepyshp packageto build a URL for the sitehttp://extract.bbbike.orgfrom which we can download the OSM data.Sampling Design:For each street (or road), starting from one end of the street, we split the street into .5 km segments till we reach the end of the street. (The last segment, or if the street is shorter than .5km, the only segment, can be shorter than .5 km.)Get the lat/long of starting and ending points of each of the segments. And assume that the street is a straight line between the .5 km segment.Next, create a database of all the segmentsSample rows from the database and produce a CSV of the sampled segmentsPlot the lat/long — filling all the area within the segment. These shaded regions are regions for which data needs to be collected.Data Collection: Collect data on the highlighted segments.PrerequisitesThere are a couple dependencies that need to be built from source on Windows so you may need to installMicrosoft Visual C++ Compiler for Python 2.7.InstallationPrepare the working directory. We recommend that you install in the Python virtual environment.mkdir geo_sampling
cd geo_sampling
virtualenv -p python2.7 venv
. venv/bin/activateUpgrade Python packagespipandsetuptoolsto the latest version.pip install --upgrade pip setuptoolsInstall geo-sampling package from PyPI.pip install geo-samplingDocumentationMore information on installationUsageSample workflowFor more information please visit theproject documentation page.DownloadsAs of February 4th, 2018, the package had been downloaded over 3,000 times (see thesaved BigQuery).AuthorsSuriyan Laohaprapanon and Gaurav SoodLicenseScripts are released under theMIT License.