wiki:WikiStart

Version 9 (modified by alafoe, 7 years ago) (diff)

--

MINERVE-D3

Le projet TRAC MINERVE-D3 correspond aux développements informatiques réalisés dans le cadre de la thèse MINERVE d'Alain Foehn.

Un certain nombre d'outils, présentés ci-dessous, ont été développés.
La plupart des outils intéragissent directement avec la base de données MAYA et dans une moindre mesure avec la base de données MINERVE. Les fonctions permettant cette intéraction on été regroupées dans le dossier

MINERVE-D3\Code

Le fichier fc_API-REST.R contient les fonctions suivantes :

  • download_data_in_slots -> Download data (value of a pixel or aggregated function) over a period, using function download_slot for each slot.
  • download_slot -> Download data (value of a pixel or aggregated function) for a given slot of the entire period.
  • download_timeseries_from_raster -> Function used by download_slot for preparing the download request for data of a pixel over the slot, using function download_request.
  • download_request -> Function used to download the request text prepared by download_timeseries_from_raster.
  • acquire_MAYA_data -> Function used by download_slot for managing the download of raster data using the download_raster function.
  • download_raster -> Function used by acquire_MAYA_data for downloading a raster (aggregation function defined in the API-INI file).
  • download_altitude_of_pixel -> Function to download the elevation value of a pixel from the metadata DEM of a given product.

Le fichier fc_common contient les fonction suivantes :

  • get_token -> Manage acquisition of the token : first uses get_token_local, if it fails, uses get_token_server and the saves the token with write_token.
  • get_token_local -> Reads the token from the local file.
  • get_token_server -> Acquires a new token from the API-REST.
  • write_token -> Saves in the local file the newly acquire token.
  • define_computetime -> Date formating function
  • print_elapsed_time -> Function to print the time of a code part, with an argument for the text to be printed.
  • pause_and_print -> Function to makes a break and print that it has done a break (used in the download functions, to handle cases where API-REST does temporary not answer, for example due to a manuel restart).
  • write.RSMcsv -> Function to export data in a CSV format readable by RS MINERVE.

Combi-Valais

Outil de spatialisation

Personne(s) de contact: alafoe

Autres projets: Crealp-Admin, Crealp-API, MINERVE-bulletin, polhydro-pcr, MINERVE-rest, MINERVE-scripts, MINERVE-www, Ofev-CC, RSDataset, RSMinerve, SnowMapping, S.T.R.E.S.S, TeREsA, ToolMap 2, VIVA