Coder Social home page Coder Social logo

icebergs_allie's Introduction

allie icebergs

I have saved Sid's iceberg data as geoparquet files due to their speed and storage efficiency. These can be read with geopandas and in QGIS. Though to use with QGIS, you need to have it compiled with a version of GDAL > 3.6 and the libgdal-arrow-parquet plugin. I created two yml files that will create two seperate conda environments. One for QGIS and one for geopandas. I try not to mess with my conda environments where QGIS is installed which is why we are installing two environments. To make these environemts, you first need to install anaconda if you don't already have it installed.

1) Clone the repo

Open a terminal or anaconda prompt if on Windows then follow the commands below

git clone https://github.com/shahinmg/icebergs_allie.git

and cd to the directory

cd icebergs_allie

Create QGIS environment

Note: Be patient. These may take some time

conda env create --file qgis_environment.yml

to run the new qgis install first activate the environment

conda activate qgis

then run the qgis command

qgis

Create geopandas environment

Now we need to make a seperate environment to work with the data in python. Run the command below to creat the new environment

conda env create --file icebergs.yml
conda activate icebergs

Visualize the data

Since the data are quite large, we should use the library polars. We will use the scan_parquet method to read our data, use grouby to sort the data by date and then take the sum of the area. Use the polars_plot.py to make the figure in the figs directory. Place the parquet files in the geo_parquets directory to run the script. The polars_plot.py will also save the very small (1 kb) time series csv into the time_series_csvs directory. Area units are in meters^2.

icebergs_allie's People

Contributors

shahinmg avatar

Stargazers

Jessica Mejia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.