semvec/pypi-packages huggingface dataset:
photos-where 2.2
Analyze exif data
License: MIT
Keywords: exif sql

# Where - day by day location from your photos 

This scripts reads EXIF data from your photos and generates CSV file or Pandas dataframe with day by day location in terms of country. 

It relies on my package [exif2pandas](https://github.com/Visgean/exif2pandas/). It uses [reverse-geocoder](https://github.com/thampiman/reverse-geocoder) to convert GPS data to country codes. That module uses a csv file with 150k cities and then uses nearest neighbour algorithm to find the position of each gps data point. This sometimes does not work in border regions so if you are seeing bad data the easiest fix is to copy [cities.csv](https://github.com/Visgean/where/blob/main/src/cities.csv) and add your village etc. 

In case some of your photos contain bad gps data that show that you have been to countries where you have never been you can use ``ignore_countries`` argument. 

## world map

![image-20230727131720726](assets/image-20230727131720726.png)

Generated world map with colored regions according to how many days you have spent in the country.

## Pie graph with number of days you spent in a country

![image-20230727131816623](assets/image-20230727131816623.png)

## CSV file with your travel list:

``` 
id,from,to,days,country,country_code
4,2015-11-07,2015-11-09,1,Scotland,GB
5,2015-11-09,2015-12-12,32,Praha,CZ
6,2015-12-12,2015-12-12,0,Budapest,HU
7,2015-12-12,2015-12-12,0,Praha,CZ
8,2015-12-12,2015-12-15,2,Budapest,HU

```

note that the country column is usually wrong - this is because the cities.csv is not consisent with administrative boundaries beyond country_code. 

## Year by year histograms

![image-20230727132504796](assets/image-20230727132504796.png)

## Raw dataframes:

Finally there is a raw dataframe with exif data per image file:

![image-20230727132834377](assets/image-20230727132834377.png)



## Jupyter examples:

See ``example.ipynb`` for example graphs and data frames exported.

## Install:

See PYPI [Python package](https://pypi.org/project/photos-where/). 

```
$ pip install photos-where
```

## Use:

```
$ photos_where Dropbox/Photos/2020/
$ ls where
cities-pie.jpg      
countries-pie.jpg
intervals.csv
location-by-day.csv 
photos.feather     
years.jpg
```
anasyspythontools 0.5.2
A suite of Python tools for use with Analysis Studio AFM-IR files.
License: MIT
Requires Python: >=3.8
Keywords: .axd, .axz, AFM, AFM-IR, Anasys, Instruments, atomic, axd, axz, force, hyperspectral, infrared, microscope, microscopy, s-snom, spectra, spectroscopy, spectrum, ssnom

NOTE
-----

Please note that this package is currently beta. Things may break unexpectedly. Most functions writing to Analysis Studio format have been disabled so I don't see how this package could break your existing data anymore. 

Anasys Python Tools
===================

Anasys Python Tools is a python package for working with files generated by Anasys Instruments' (now Bruker) Analysis Studio software. Anasys Python Tools was originally developed by Cody Schindler from Anasys.


Basic Usage
-----------
.. code-block:: python

  import anasyspythontools as anasys
  # Read your Analysis Studio file
  f = anasys.read("afmdata.axz")
  # Grab all the height map data from the file
  heightmaps = f.HeightMaps
  # Show off your beautiful images
  heightmaps['Height 1'].show()
  # Unsure what the data looks like? Try:
  dir(f) # Displays user-accessible data
  dir(f.HeightMaps)
  
  
More useage information can be found in the `examples` folder.


Features
--------

- Read files with .axz, .axd, file extensions
- Extract AFM spectral and height map images as numpy arrays
- Export spectra and images to xarray type
- Quickly display and save your data
- Use your data with popular Python data libraries and applications (Pandas, Orange3, Jupyter, etc.)
- Work with your data when you're away from your instruments
- Evaluate your data in a trasparent and flexible way


Installation
------------

**From pip**

.. code-block:: bash
  
  pip install anasyspythontools


**From github**


Install the latest version:

.. code-block:: bash

  pip install git+https://github.com/GeorgRamer/anasys-python-tools.git 
  
or a specific branch:

.. code-block:: bash

  pip install git+https://github.com/GeorgRamer/anasys-python-tools.git@<branchname>

Contribute
----------

- Feel free to fork and hack away!
- If you have a feature you'd like to see, please open an Issue.

Support
-------

This section previously said: 

  If you are having issues, please let us know.
  Email Cody directly at cschindler@anasysinstruments.com
  
Since Cody appears to have stopped working on this, please raise issues in this fork or email Georg at georg.ramer@tuwien.ac.at

License
-------

The project is licensed under the MIT license.

Each .py file in this document has a header stating:

.. code-block:: python

  #  Copyright 2017 Cody Schindler <cschindler@anasysinstruments.com>
  #
  #  This program is the property of Anasys Instruments, and may not be
  #  redistributed or modified without explict permission of the author.

To my understanding the MIT license constitutes an "explicit permission" to redistribute and modify. To be on the safe side, I (GeorgRamer) have repeatedly, over a span of several years tried to get confirmation on that from Bruker. I never got a definite answer.
types-all-v2 2.0.4
A shim for the typeshed changes in mypy
License: MIT
Requires Python: >=3.7

___

[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/types-all-v2/main.svg)](https://results.pre-commit.ci/latest/github/asottile/types-all-v2/main)

types-all-v2
=========

A shim for the typeshed changes in mypy 0.900

## installation

```bash
pip install types-all-v2
```

## why

`--install-types` is annoying, this installs all the things in [typeshed]

```
error: Library stubs not installed for "toml" (or incompatible with Python 3.8)
```

(for pre-commit, use something like this)

```yaml
-   repo: https://github.com/pre-commit/mirrors-mypy
    rev: v0.902
    hooks:
    -   id: mypy
        additional_dependencies: [types-all-v2]
```

[typeshed]: https://github.com/python/typeshed