- 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
- 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
-
-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 station2
: produit en sortie les temperature moyenne par date/heure par ordre chronologic, la moyenne se fais sur tout les station3
: produit en sortie les temperature par date/heure par station. elle seron trie par ordre chrono puis par ordre croissant de ID de station
- has to used with a mode as
-
-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
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
pas obligatoire
-d <min> <max>
- les donne de sorite sont dans l'intervalle [min max]
- les format sont de type YYYY-MM-DD
only one used. if non provided AVL will be used
--tab
-> table or linked listabr
-> ABCavl
-> AVL
must be provided
-
-f <file_name>
-
--help
print help
- dsa
- Research on the sorting methods