### Added questions 2 and 3 instructions in README

parent 173acecf
 # Projet NF26 # NF26 - METAR project ## Exercice 1 : ## Exercise 1 : stats for a given place Executer sur `ipython` (pas sur `pyspark`) > \$ ipython > %run stats_of_station.py Launch in `ipython` (not `pyspark`) : ```console \$ cd nf26-metar \$ ipython In : %run stats_of_station.py ``` List of some indicateurs useful : List of useful indicators : ``` temperature_fahrenheit, dew_point_temperature, relative_humidity, wind_speed, one_hour_precipitation, ... ``` List of stations are in 'station_list.txt'. Some example : List of stations in `station_list.txt`. Examples : ``` EFHK, EFMA, EFKA, EFSA, ... ``` ### Some examples of function : ### Examples of available functions : ---- Stats for a station in range of years ```console \$ from stats_of_station import * \$ requete_interval("EFKI", indicateur="dew_point_temperature", from_year=2006, to_year=2012) ``` ---- Stats for a station in range of year > requete_interval("EFKI", indicateur="dew_point_temperature", from_year=2006, to_year=2012) ---- Stats for a station in a specific year ```console \$ from stats_of_station import * \$ requete_in_year("EFMA", indicateur="temperature_fahrenheit", year=2010) ``` ---- Stats for a station in a year specific > requete_in_year("EFMA", indicateur="temperature_fahrenheit", year=2010) ---- Stats for a (lon, lat) in range of years ```console \$ from stats_of_station import * \$ requete_lon_lat_interval(28.5, 61.5, "dew_point_temperature", from_year=2006, to_year=2012) ``` ---- Stats for a (lon, lat) in a specific year ```console \$ from stats_of_station import * \$ requete_lon_lat_in_year(28.5, 61.5, "temperature_fahrenheit", year=2011) ``` ---- Stats for a (lon, lat) in range of year > requete_lon_lat_interval(28.5, 61.5, "dew_point_temperature", from_year=2006, to_year=2012) **Graphs created will be all in folder `results/stats`** ---- Stats for a (lon, lat) in a year specific > requete_lon_lat_in_year(28.5, 61.5, "temperature_fahrenheit", year=2011) ## Exercise 2 : map for a given instant Launch in `ipython` : ```console \$ ipython In : %run map_by_indicator_and_time indicator yyyy-mm-dd hh ``` An instant is considered as a date and an hour. **Find the map in `results/map_by_indicator`**. See previous section for a list of interesting indicators. ## Exercise 3 : stations clustering for a given period of time Launch in `pyspark` : ```console \$ source /pyspark.env \$ pyspark In : %run cluster_by_period yyyy yyyy ``` A period is considered as a range of years. The first argument is the start year, the second one is the end year. **Find the map in `results/cluster_by_period`** **Graphics created will be all in folder results/stats**
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment