# TSG-QC - Installation - English version ## Prerequisite TSG-QC need a version of Matlab >= R2006b. The most recent version tested is R2018b (Windows or Linux) ## Cloning TSG-QC repository Clone the repository: > git clone <https://git.outils-is.ird.fr/grelet/TSG-QC> or getting the last zip archive: <https://git.outils-is.ird.fr/grelet/TSG-QC/repository/archive.zip?ref=master> * Install the free toolbox m_map (>= 1.4) under Matlab see: <http://www2.ocgy.ubc.ca/~rich/map.html> see BUGS file for Matlab version > R2009 with Matlab version >= R2015, install the latest m_map version 1.4h, BITMAX starts not to be used, changed to FLINTMAX... Install GSHHS high-resolution coastline database files under m_map\private from <http://www.ngdc.noaa.gov/mgg/shorelines/data/gshhs/> * Install Matlab toolbox seawater from web site : <http://www.cmar.csiro.au/datacentre/ext_docs/seawater.htm> * For Matlab versions prior to R2008a * Install mexnc toolbox from : <http://mexcdf.sourceforge.net/downloads/> see also link below <http://www.ird.fr/us191/spip.php?article18> * Install the toolbox NetCDF from : <http://mexcdf.sourceforge.net/downloads/> * For Matlab versions >= R2008b, the program uses the native NetCDF implementation available. You must delete any link to the old mexnc toolbox in your Matlab path. * Installation of climatology files The software works with WOA05, WOA13 or ISAS13 climatology (to choose from the main menu options/preferences). The files are automatically downloaded by the program in the first use but you can copy manually the files in one of your Matlab directories These files are available from: <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/woa13_annual_surf.nc> <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/woa13_monthly_surf.nc> <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/woa13_seasonal_surf.nc> <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/woa05_annual_surf.nc> <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/woa05_monthly_surf.nc> <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/woa05_seasonal_surf.nc> <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/isas13_annual_surf.nc> <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/isas13_seasonal_surf.nc> <ftp://ftp.ifremer.fr/ifremer/ird/us191/oceano/lib/matlab/isas13_monthly_surf.nc> See documentation under <http://wwz.ifremer.fr/lpo/SO-Argo/Products/ISAS-T-S-fields> Do not forget to change or update your Matlab path (Windows) or environment variable MATLABPATH (Linux).