marinetraffic / mt-ais-toolbox Goto Github PK
View Code? Open in Web Editor NEWMarinetraffic AIS density map toolbox
Home Page: https://www.marinetraffic.com/research/the-marinetraffic-ais-toolbox/
License: Other
Marinetraffic AIS density map toolbox
Home Page: https://www.marinetraffic.com/research/the-marinetraffic-ais-toolbox/
License: Other
Hi All,
I had generated the tiff file of the sample dataset attached. I have got the density map but the land/ sea area is not being highlighted. I had tried changing some attributes to the color file as well but was not successful.
Any help for the same would be highly appreciated. Thanks in advance.
Recent updates in shapely breaks the execution during cleaning process execution if land masking is enabled.
By default package installation allows the installation of the latest shapely version.
A quick fix is to prevent this behaviour is to manually install v1.8.5 of shapely.
pip install shapely==1.8.5
Regarding the toolbox requirements, does the GDAL version specifically need to be version 3.0.4? I have version 3.4.3 installed using a .whl file however I am having issues, could it be down to this?
Hi,
I am excited to use the mt-ais-toolbox package but am unfortunately falling at the first hurdle. I am using a windows 10 operating system and having issues when installing the packages.
I have Microsoft Visual C++ 14.3 installed, and opened a virtual environment into which I have downloaded GDAL. However, when I clone the mt-ais-toolbox and subsequently install the packages, the wheel for pygeos fails to build (ERROR: Could not build wheels for pygeos, which is required to install pyproject.toml-based projects). Additionally, it says: 'Could not find geos-config executable. Either append the path to geos-config to PATH or manually provide the include_dirs, library_dirs, libraries and other link args for compiling against a GEOS version >=3.5.'
I have tried researching this error and have found information that the lib and include folders need to be specified manually because there is no geos.config on windows (https://pygeos.readthedocs.io/en/stable/installation.html). However, I do not understand how I can specify the file paths before running the code to install the packages, because the path wouldn't exist yet?
I am new to python so I am quite overwhelmed. If you have any tips or pointers for me, I would hugely appreciate it.
Fiona
When running the data_cleaning.py file I am getting the error:
ERROR:root:Thread exception (209122000): name 'MMSI' is not defined
for each of the csv files and I don't know how I should try to fix this?
I have AIS data over a longer time period and I would like to create .tif files of vessel density for each day. I have the AIS .csv files organised into daily folders, with each folder containing .csv's for each mmsi that day, like this:
-samples
--01_merged
---1
----209122000.csv
----209952000.csv
---2
----215783000.csv
----235070241.csv
Do you have any recommendations for adapting the package to iteratively create .tif files for each of the daily sub-folders within the 01_merged folder?
Hi,
I am applying this package to AIS data that I have acquired for my project. I have created a GeoJSON file of the sea in my study area and put it into the geometry path, and adjusted the configuration file to suit my needs. When I run the data cleaning script I was getting the error:
File "C:...\mt-ais-toolbox\src\mt\cleaning\data_cleaning.py", line 249, in clean_data
for _polygon in polygons.geoms:
^^^^^^^^^^^^^^
AttributeError: 'Polygon' object has no attribute 'geoms'. Did you mean: '_geom'?
So I changed the code to be 'for _polygon in polygons._geom:'. However, now I am getting the error:
File "C:\Users...\mt-ais-toolbox\src\mt\cleaning\data_cleaning.py", line 249, in clean_data
for _polygon in polygons._geom:
TypeError: 'int' object is not iterable
This makes it seem like the operation assumes it is a multi-polygon object. I thought maybe this was why the polygon_split function was called at the start of the script, so maybe this isn't working as it should? Or perhaps I am completely misinterpreting what the polygon_split is for.
Any insight or help you can give me would be hugely appreciated!
Thanks,
Fiona
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.