Skip to content

mmassymassy/weatherProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Project

Main points

  • The data to treat is based on a user choice.
  • Use a script shell to start the dist file and provide the necessary args
  • We have to sort the data. the data base is big so the choice of the sort method is crusial
  • we have diffrence sort methods :
    • AVL
    • ABR
    • Table / Linked List
  • The c code only sorts the data end export a file/files
  • The c programme has to return a possitive number in the case of success and a negative number in the case of failure (this may be used by the shell script to check if to continue)
  • The shell script has to filter the data based on the arguments provided by the user
  • The finale display is a map generated by the shell script

Shell script

  • The script has to allow to treat one or more data type based on the args provided by the user
  • One of the options from the args must be presente or the script has to stop with an error

Shell script args[Data type]

  • -t -> temerature

  • -p -> pression

    • has to used with a mode as -t <mode>
    • mode
      • 1 : produit en sortie les temperatures ( ou pression ) minimal,maximal et moyenne par station dans l'ordre croissant du numero de station
      • 2: produit en sortie les temperature moyenne par date/heure par ordre chronologic, la moyenne se fais sur tout les station
      • 3: produit en sortie les temperature par date/heure par station. elle seron trie par ordre chrono puis par ordre croissant de ID de station
  • -w -> vent

    • produit en sortie l'orientation moyenne et la vitesse moyenne des vents pour chaque station, Quand on parle de moyenne il s'agit de faire la moyenne une fois touts les vecteur traites. donc une moyenne X et une moyenne Y: les deux resultat fournis le module et l'orientation moyenne demande. les donne seron traite par ID croissant de station.
  • -m -> humidity

    • produit en sortie l'humidite maximale pour chaque station, trie par ordre decroissant
  • h ->

    • produit en sortie les altitude de chaque station trie par ordre decroissant

Shell script args[Place]

exlusive: one or zero args from this section

  • -F -> France metropeliean + Corse
  • -G -> Guyane Francais
  • -S -> Saint-Pierre et Miquellon
  • -A -> Antilles
  • -O -> Ocean indien
  • -Q -> Antarctique

Shell script args[Dates]

pas obligatoire

  • -d <min> <max>
    • les donne de sorite sont dans l'intervalle [min max]
    • les format sont de type YYYY-MM-DD

Shell script args[Sort]

only one used. if non provided AVL will be used

  • --tab -> table or linked list
  • abr -> ABC
  • avl -> AVL

Shell script args[File]

must be provided

  • -f <file_name>

  • --help print help

steps

  • dsa

TODO

  • Research on the sorting methods

Prposition optimisation C

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published