Giter Club home page Giter Club logo

tbd's Introduction

README

Prepare

Create a correct environment e.g. using conda. We need quite specific versions, e.g. python 3.7 and some other specific versions of some packages. So save yourself some pain and do it the quick way ;)

conda create --name myenv --file package-list.txt

Make shell script executable variance

chmod +x update_data.sh

Run analysis

./update_data.sh

Download Historical Data

python download_covid_hist_data.py python download_pm25_hist_data.py python concatenate_all_files_in_dir.py

tbd's People

Contributors

ludo915 avatar nicrie avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

tbd's Issues

This doesn't work Niclas, Camille (in maintrain.py) why? It sets all the pm25 and no2 values to 0 (although row["pm25"] has the right value), is there somekind of inplace = True thingy I am not understanding with covid.iterrows()? covid["pm25"]=0

covid["NO2"]=0
print("This takes at least 5 hours... Take a break!")
for index, row in covid.iterrows():
print(row["date"])
filename = "pm25-"+row["date"]+".nc"
filename2 = "NO2-"+row["date"]+".nc"
pm25 = xr.open_dataset("data/pm25/" + filename)
NO2 = xr.open_dataset("data/NO2/" + filename2)
pm25 = pm25.drop('level').squeeze()
NO2 = NO2.drop('level').squeeze()
pm25.sortby('longitude')
NO2.sortby('longitude')
pm25.coords['longitude'] = (pm25.coords['longitude'] + 180) % 360 - 180
NO2.coords['longitude'] = (NO2.coords['longitude'] + 180) % 360 - 180
pm25df = pm25.to_dataframe()
pm25df = pm25df.reset_index()
NO2df = NO2.to_dataframe()
NO2df = NO2df.reset_index()
for index2,row2 in pm25df.

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.