Saravanan666/pypi-org huggingface dataset:
Package: raster-footprint
raster-footprintCreate GeoJSON geometries that bound valid raster data. Depends onrasterioandshapely.Usagepipinstallraster-footprintCreate or manipulate GeoJSON with the CLI:raster-footprint--help
usage:raster-footprint[-h]{create,densify,reproject,simplify}...

options:-h,--helpshowthishelpmessageandexitcommands:{create,densify,reproject,simplify}createCreatearasterfootprintdensifyDensifyaPolygonorMultiPolygonreprojectReprojectaPolygonorMultiPolygonsimplifySimplifyaPolygonorMultiPolygonImportraster_footprintfunctions into your Python script:fromraster_footprintimportfootprint_from_hreffootprint=footprint_from_href("my_raster.tif",densify_distance=100,simplify_tolerance=0.001,holes=False)See theAPI documentationfor available functions and options.DevelopingClone and install in editable mode with the development optional dependencies:gitclonehttps://github.com/pjhartzell/raster-footprintcdraster-footprint
pipinstall-e".[dev,docs]"We usepytestfor tests:pytestWe useSphinxfor docs:make-CdocshtmlContributingGithubissuesandpull requests.LicenseApache-2.0
Package: raster-forge
Raster Forge is a Python library with an intuitive graphical user interface (GUI), designed for raster data manipulation.GitHub:https://github.com/afe-oliveira/raster-forgePyPI:https://pypi.org/project/raster-forge/Documentation:[PLACEHOLDER]InstalationTo install the package, use the followingpipcommand:pipinstallraster-forgeLibraryGraphical User Interface (GUI)To launch the GUI, execute the following command:rforge
Package: rasterfoundry
A Python client forRaster Foundry, a web platform for combining, analyzing, and publishing raster data.Usagefromrasterfoundry.apiimportAPIrefresh_token='<>'api=API(refresh_token=refresh_token)# List all projectsmy_projects=api.projectsone_project=my_projects[0]# Get TMS URl without tokenone_project.tms()VersionsThe latest version ofrasterfoundryalways points to the most recently released swagger spec in
the raster-foundry/raster-foundy-api-spec repository. If you need to point to a different spec
version, either install a version of the python client that refers to the appropriate spec, or
set theRF_API_SPEC_PATHenvironment variable to a url or local file path pointing to the
version of the spec that you want to use.Generally this shouldn’t matter, because the Raster Foundry API shouldn’t have breaking changes.InstallationWithout notebook support$pipinstallrasterfoundryWith notebook supportNotebook support requires [npm](https://www.npmjs.com/get-npm).$pipinstallrasterfoundry[notebook]Then, enable widgets and leaflet in in jupyter notebooks:$jupyternbextensioninstall--py--symlink--sys-prefixwidgetsnbextension$jupyternbextensionenable--py--sys-prefixwidgetsnbextension$jupyternbextensioninstall--py--symlink--sys-prefixipyleaflet$jupyternbextensionenable--py--sys-prefixipyleafletTestingThe test suite execution process is managed bytox:$tox
Package: raster-geometry
Raster Geometry- Create/manipulate N-dim raster geometric shapes.OverviewThis software provides a library for generating or otherwise manipulating
N-dimensional raster geometric shapes.Most of the code is used is used in a number of projects where it is tested
against real-life scenarios.As a result of the code maturity, some of the library components may
undergo (eventually heavy) refactoring.
While this is not expected, this will be documented.
Please file a bug report if you detect an undocumented refactoring.Releases information are available throughNEWS.rst.For a more comprehensive list of changes seeCHANGELOG.rst(automatically
generated from the version control system).FeaturesThe 2D geometrical shapes currently available are:squarerectanglerhombuscircleellipseThe 3D geometrical shapes currently available are:cubecuboidrhomboidsphereellipsoidcylinderThe N-dim geometrical shapes currently available are:cuboid: sum[abs(x_n/a_n)^inf] < 1superellipsoid: sum[abs(x_n/a_n)^k] < 1prism: stack (N-1)-D rendered objects on given axisetc.Additional may be added in the future.InstallationThe recommended way of installing the software is throughPyPI:$pipinstallraster_geometryAlternatively, you can clone the source repository fromGitHub:$gitclonegit@github.com:norok2/raster_geometry.git$cdraster_geometry$pipinstall-e.For more details see alsoINSTALL.rst.LicenseThis work is licensed through the terms and conditions of theGPLv3+See the
accompanyingLICENSE.rstfor more details.AcknowledgementsFor a complete list of authors please seeAUTHORS.rst.People who have influenced this work are acknowledged inTHANKS.rst.
Package: rasteric
The Python Geospatial Library, Geotran, is a comprehensive toolkit for geospatial data preprocessing, analysis, and modeling. It provides a variety of functions for transforming and manipulating geospatial data, including data normalization, resampling, filtering, and feature selection. It also offers a range of analytical techniques, such as spatial clustering, classification, and regression, as well as machine learning algorithms for predictive modeling.Geotran is designed to work with a variety of geospatial data formats, including shapefiles, GeoJSON, and raster data. It also supports integration with popular geospatial tools and platforms, such as QGIS, GDAL, and ArcGIS.Geotran is widely used in the geospatial industry, research, and open-source communities for developing geospatial applications, performing spatial analysis, and modeling complex geospatial phenomena.Example:from geotran import raster
from matplotlib import pyplot


fig, (axr, axg, axb) = pyplot.subplots(1,3, figsize=(21,7))

raster.plot('T60GVV.tif',bands=[3],ax=axr, title="Red", cmap='Reds')
raster.plot('T60GVV.tif',bands=[2],ax=axg, title="Green", cmap="Greens")
raster.plot('T60GVV.tif',bands=[1],ax=axb, title="Blue", cmap="Blues")
![Alt text](image.png)

input_raster_files = ['blue.tif', 'green.tif',
                      'red.tif', 'red-edge.tif', 'nir.tif']
output_raster_file = datetime.now().strftime("%d%m%Y%H%M%S") + "_stacked.tif"

stacked_file = stack_rasters(input_raster_files, output_raster_file, band_names=[
                             'blue', 'green', 'red', 'rededge', 'nir'])

clip_raster_by_shp(raster_file, shapefile, output_file, epsg_code=2193)

(more)
Package: rasterio-code-analyzer
Rasterio 1.0 will not permit reading from datasets opened in “w” mode. The
rasterio_code_analyzer module can be used to find such deprecated usage.This module requires Python 3.6.Running it on Rasterio’s tests (as of 2018-04-11) yields the following output.` $ parallel 'python-mrasterio_code_analyzer {}' :::tests/*.pyIn file tests/test_complex_dtypes.py dataset.read() is called on line 37 and column 18 where dataset is opened in 'w' mode In file tests/test_dataset_rw.py dst.read() is called on line 37 and column 20 where dst is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 35 and column 18 where dataset is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 47 and column 18 where dataset is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 59 and column 18 where dataset is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 73 and column 17 where dataset is opened in 'w' mode In file tests/test_gdal_raster_io.py dataset.read() is called on line 89 and column 17 where dataset is opened in 'w' mode In file tests/test_rio_mask.py out.read() is called on line 200 and column 12 where out is opened in 'w' mode `
Package: rasterra
rasterraDocumentation:https://collijk.github.io/rasterraSource Code:https://github.com/collijk/rasterraPyPI:https://pypi.org/project/rasterra/A sleek, object-oriented interface designed for intuitive raster data manipulation in Python.InstallationpipinstallrasterraDevelopmentClone this repositoryRequirements:PoetryPython 3.9+Create a virtual environment and install the dependenciespoetryinstallActivate the virtual environmentpoetryshellTestingpytestDocumentationThe documentation is automatically generated from the content of thedocsdirectory and from the docstrings
of the public signatures of the source code. The documentation is updated and published as aGithub project pageautomatically as part each release.ReleasingTrigger theDraft release workflow(pressRun workflow). This will update the changelog & version and create a GitHub release which is inDraftstate.Find the draft release from theGitHub releasesand publish it. When
a release is published, it'll triggerreleaseworkflow which creates PyPI
release and deploys updated documentation.Pre-commitPre-commit hooks run all the auto-formatters (e.g.black,isort), linters (e.g.mypy,flake8), and other quality
checks to make sure the changeset is in good shape before a commit/push happens.You can install the hooks with (runs for each commit):pre-commitinstallOr if you want them to run only for each push:pre-commitinstall-tpre-pushOr if you want e.g. want to run all checks manually for all files:pre-commitrun--all-files
Package: rasterstats
rasterstatsis a Python module for summarizing geospatial raster datasets based on vector geometries.
It includes functions forzonal statisticsand interpolatedpoint queries. The command-line interface allows for
easy interoperability with other GeoJSON tools.DocumentationFor details on installation and usage, visit the documentation athttp://pythonhosted.org/rasterstats.What does it do?Given a vector layer and a raster band, calculate the summary statistics of each vector geometry.
For example, with a polygon vector layer and a digital elevation model (DEM) raster, compute the
mean elevation of each polygon.Command Line Quick StartThe command line interfaces to zonalstats and point_query
areriosubcommands which read and write geojson features$fiocatpolygon.shp|riozonalstats-relevation.tif$fiocatpoints.shp|riopointquery-relevation.tifSee theCLI Docs. for more detail.Python Quick StartFor zonal statistics>>>fromrasterstatsimportzonal_stats>>>stats=zonal_stats("tests/data/polygons.shp","tests/data/slope.tif")>>>stats[0].keys()dict_keys(['min','max','mean','count'])>>>[f['mean']forfinstats][14.660084635416666,56.60576171875]and for point queries>>>fromrasterstatsimportpoint_query>>>point={'type':'Point','coordinates':(245309.0,1000064.0)}>>>point_query(point,"tests/data/slope.tif")[74.09817594635244]IssuesFind a bug? Report it via github issues by providinga link to download the smallest possible raster and vector dataset necessary to reproduce the errorpython code or command to reproduce the errorinformation on your environment: versions of python, gdal and numpy and system memory
Package: raster-tester
_______________        _______________
|_|_|_|_|_|_|_|_|      |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| HIRU |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| DIFF |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| FROM |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_| ===> |_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|      |_|_|_|_|_|_|_|_|raster-tester [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  compare
  crossesdateline
  isaligned
  isempty
  istiledcompareUsage: raster-tester compare [OPTIONS] INPUT_1 INPUT_2

Options:
  -p, --pixel-threshold INTEGER  Threshold for pixel diffs [default=0]
  -d, --downsample INTEGER       Downsample via decimated read for faster
                                 comparison, and to handle variation in
                                 compression artifacts [default=1]
  -u, --upsample INTEGER         Upsample to handle variation in compression
                                 artifacts [default=1]
  --compare-masked               Only compare masks + unmasked areas of RGBA
                                 rasters
  --no-error                     Compare in non stderr mode: echos "(ok|not
                                 ok) - <input_1> is (within|not within)
                                 <pixel-threshold> pixels of <input 2>"
  --debug                        Print ascii preview of errors
  --flex-mode                    Allow comparison of masked RGB + RGBA
  --help                         Show this message and exit.crossesdatelineUsage: raster-tester crossesdateline [OPTIONS] INPUT

Options:
  --help  Show this message and exit.isalignedUsage: raster-tester isaligned [OPTIONS] SOURCES...

Options:
  --help  Show this message and exit.isemptyUsage: raster-tester isempty [OPTIONS] INPUT_1

Options:
  -b, --bidx INTEGER            Check one band
  --randomize                   Iterate through windows in a psuedorandom fashion
  --help                        Show this message and exit.istiledUsage: raster-tester istiled [OPTIONS] SOURCES...

Options:
  --blocksize / --no-blocksize  assert that sources are internally tiled
  --help                        Show this message and exit.
Package: rastertodataframe
Raster To DataFrameA simple python module that converts a raster to a Pandas DataFrame.fromrastertodataframeimportraster_to_dataframeraster_path='/some/gdal/compatible/file.tif'vector_path='/some/ogr/compatible/file.geojson'# Extract all image pixels (no vector).df=raster_to_dataframe(raster_path)# Extract only pixels the vector touches and include the vector metadata.df=raster_to_dataframe(raster_path,vector_path=vector_path)Free software: MIT licenseDocumentation:https://rastertodataframe.readthedocs.io.FeaturesConvert any GDAL compatible raster to a Pandas DataFrame.Optionally, if any OGR compatible vector file is given, only pixels touched by the vector are extracted from the raster. The output DataFrame includes these pixels as well as any attributes from the vector file.InstallationpipinstallrastertodataframeA working GDAL/OGR installation is required. This is best accomplished withconda.condainstall-cconda-forgenumpygdalgeopandaspandaspyprojCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.1 (2019-02-13)Add support for single band rasters.0.2.0 (2018-07-12)Implement tiling to reduce memory use for large rasters.0.1.3 (2018-07-09)Remove dependencies to fix non-building installs.0.1.2 (2018-07-09)Fix creation of temporary files on windows.0.1.1 (2018-07-08)All logic implement with unit tests. Prepare for PyPI release.0.1.0 (2018-07-07)Project started.
Package: raster-tools
Raster ToolsRaster Tools is a python package that facilitates a wide range of spatial,
statistical, machine learning analyses using delayed and automated parallel
processing. Our library focuses on significantly reducing processing time and
storage space associated with analyzing large spatial datasets while also
introducing new spatial, statistical, machine learning concepts into an
easy-to-use python based API.Helpful LinksHow to ContributeDocumentationNotebooks & TutorialsPyPi linkInstallationPackage Dependenciesdaskdask_imagedask-geopandasgeopandasnumbarasteriorioxarrayshapely 2xarray
Package: rastreio-correios-async
🐍 Rastreador de EncomendasEsse programa tem como seu intuito fazer o rastreio de encomendas dos correiosRastreio de encomendasComo utilizar?$pipinstallrastreio-correios-asyncfromasyncioimportrunfromrastreio_correiosimportRastreioasyncdefmain():rastreio=Rastreio()codigo='LB526033530HK'resultado=awaitrastreio.rastrear(codigo)print(resultado)run(main())O que usamos na infraestrutura?Utilizamos a linguagem Python
Package: rat
Reservoir Assessment Tool (RAT) 3.0A scalable and easy-to-apply python based software architecture to empower the global water communityThe Reservoir Assessment Tool (RAT) uses satellite remote sensing data to monitor water surface area and water level changes in artificial reservoirs. It uses this information, along with topographical information (either derived from satellite data, or in-situ topo maps) to estimate theStorage Change (∆S)in the reservoirs. Additionally, RAT models theInflow (I)and theEvaporation (E)of each reservoir. Finally, RAT uses the modeled I, and E, and estimated ∆S, to estimate theOutflow (O)from reservoirs.Current release infoNameDownloadsVersionPlatformsDocumentationInstalling RATInstallingratfrom theconda-forgechannel can be achieved by addingconda-forgeto your channels with:conda config --add channels conda-forge
conda config --set channel_priority strictOnce theconda-forgechannel has been enabled,ratcan be installed withconda:conda install rator withmamba:mamba install ratIt is possible to list all of the versions ofratavailable on your platform withconda:conda search rat --channel conda-forgeor withmamba:mamba search rat --channel conda-forgeAlternatively,mamba repoquerymay provide more information:# Search all versions available on your platform:
mamba repoquery search rat --channel conda-forge

# List packages depending on `rat`:
mamba repoquery whoneeds rat --channel conda-forge

# List dependencies of `rat`:
mamba repoquery depends rat --channel conda-forgeAbout RATRAT 3.0 makes numerous improvements to the code structure, performance optimizations, added configurations, ability to run RAT for multiple basins, among some introduced features. It also introduces packaging of RAT as a conda package, allowing for quick and easy installation.It was originally developed byBiswas et al. (2021)atSASWE,University of Washington. The RAT framework developed byBiswas et al. (2021)was a first-of-its-kind open-source reservoir monitoring tool, it is reffered to as the version 1 of RAT, orRAT 1.0. It currently runs for 3 regions - (1) South and South East Asia, (2) Africa, and (3) South America, and can be accessedhere.TheReservoir Assessment Tool (RAT) 2.0was introduced with numerous improvements over the RAT 1.0. Such as weekly satellite observations (every 1-5 days) using a combination of multiple satellites (Sentinel-2, landsat-8, landsat-9 and Sentinel-1), usage ofVIC hydrological model(VIC 5,Hamman et al. (2018)) andMetSimin parallel computation mode, data storage using NetCDF format and explicit representation of Evaporation using the Penman Combination method.LICENSERAT 3.0 is distributed under the GPL v3 license. You may copy, distribute and modify the software as long as you track changes/dates in sourcefiles. Any modifications to or software including GPL-licensed code must also be made available under the GPL along with build & install instructions.
For more information, please seeLICENSE.
Package: rata
rata: raw time trackerPainless interactive terminal time tracker with git versioning running on python 3 and urwid.What I disliked in other terminal time trackers was that I had to use complicated key strokes or type commands to
start/stop and switch between tasks. I wanted single-key actions, fast switching and typing only for naming tasks.Demo screencastSee a demo screencast here:https://asciinema.org/a/uyiaMiwlXnZjSj12N8fTudIrtScreenshotIt suits people who only want to track the name, duration, start and end time of tasks they worked on, e.g. for billing
a project per hour. A simple to use replacement for emacs org-mode respectively vim-dotoo.It's my first urwid project and there is no test coverage. Use at own risk, though it commits all changes directly to
git. So you should always be able to recover your entries.Featuresruns in the terminal and adjusts to terminal sizetrack time per task in a single text-based filequickly change between, add and rename tasksshows when you started tracking, since when you are tracking and total duration tracked per taskedit previous records with check for overlapskeep track of all changes through automatic git commitssort by duration/name/most recently worked onoutput file loosely based on org-mode, fully text-based. Though please do not try to add something other than time
records to the file. Rata won't be able to read it.Installationpip install rataUsagerata requires a file name in a git-versioned folder. It will create a new commit for any change.git init ~/timerecords
rata ~/timerecords/projectFoo.txt

or if you want to see how much you will have to bill:

RATE=<hourly rate> rata ~/timerecords/projectFoo.txtI would strongly recommend to not keep other files than what rata creates in the repository as it runsgit resetbefore committing and may mess with your git stage.Key-bindingsMain viewEnter: Start/Stop tracking task under cursorup/down: Move cursor over task listright: Show and edit list of time records of task under cursorn: Add new task and start tracking itr: Rename task under cursors: Start/Stop current/last track (independant of cursor position)o: Toggle sorting: by name, total task duration, most recently trackedq: Quit programEdit modeEnter: Edit record under cursor (modify the timestamps and confirm with Enter again)h: Quick-edit: Move start time under cursor 1 minute aheadj: Quick-edit: Move start time under cursor 1 minute backk: Quick-edit: Move end time under cursor 1 minute aheadl: Quick-edit: Move end time under cursor 1 minute backEsc: Go back to main viewNew task modeEnter a name for your new taskEnter: ConfirmEsc: Go back to main viewSample output file* Client support
:LOGBOOK:
CLOCK: [2020-12-27 10:22:10] -- [2020-12-27 11:30:11]
CLOCK: [2020-12-24 09:30:03] -- [2020-12-24 10:40:06]
:END:
* On-site meetings
:LOGBOOK:
CLOCK: [2020-12-20 13:44:11] -- [2020-12-20 16:50:14]
CLOCK: [2020-12-25 15:00:07] -- [2020-12-25 17:38:10]
Package: rata-pkg-belugame
rata: raw time trackerTerminal based time tracker with git versioning running on python 3 and urwid.It suits people who only want to track the name, duration, start and end time of tasks they worked on, e.g. for billing
a project per hour. A simple to use replacement for emacs org-mode respectively vim-dotoo.It's my first urwid project and there is no test coverage. Use at own risk, though it commits all changes directly to
git. So you should always be able to recover your entries.Featuresruns in the terminal and adjusts to terminal sizetrack time per task in a single text-based filequickly change between, add and rename tasksshows when you started tracking, since when you are tracking and total duration tracked per taskedit previous records with check for overlapskeep track of all changes through automatic git commitssort by duration/name/most recently worked onoutput file loosely based on org-mode, fully text-based. Though please do not try to add something other than time
records to the file. Rata won't be able to read it.Installationpip install rataUsagerata requires a file name in a git-versioned folder. It will create a new commit for any change.git init ~/timerecords
rata ~/timerecords/projectFoo.txtKey-bindingsMain viewEnter: Start/Stop tracking task under cursorup/down: Move cursor over task listright: Show and edit list of time records of task under cursorn: Add new task and start tracking itr: Rename task under cursors: Start/Stop current/last track (independant of cursor position)o: Toggle sorting: by name, total task duration, most recently trackedq: Quit programEdit modeEnter: Edit record under cursor (modify the timestamps and confirm with Enter again)h: Quick-edit: Move start time under cursor 1 minute aheadj: Quick-edit: Move start time under cursor 1 minute backk: Quick-edit: Move end time under cursor 1 minute aheadl: Quick-edit: Move end time under cursor 1 minute backEsc: Go back to main viewNew task modeEnter a name for your new taskEnter: ConfirmEsc: Go back to main viewSample output file* Client support
:LOGBOOK:
CLOCK: [2020-12-27 10:22:10] -- [2020-12-27 11:30:11]
CLOCK: [2020-12-24 09:30:03] -- [2020-12-24 10:40:06]
:END:
* On-site meetings
:LOGBOOK:
CLOCK: [2020-12-20 13:44:11] -- [2020-12-20 16:50:14]
CLOCK: [2020-12-25 15:00:07] -- [2020-12-25 17:38:10]