diff --git a/Forecast_tools/download_mercator_frcst_python.m b/Forecast_tools/download_mercator_frcst_python.m index f00145df4bc8bfe432979cfe581efeb3144f16fc..19fd9b41c6acda27daf2c63feadd873cabb2b11d 100644 --- a/Forecast_tools/download_mercator_frcst_python.m +++ b/Forecast_tools/download_mercator_frcst_python.m @@ -70,7 +70,7 @@ for i=1:lh+1 end time2=datenum(rundate_str); for j=1:lf+1 - time3(j)=datenum(rundate_str)+j; + time3(j)=datenum(rundate_str)+j-1; end time=cat(2,time1,time2,time3); tiempo_inicial = time1(1); diff --git a/Oforc_OGCM/Copernicus_Marine_Toolbox_installation.md b/Oforc_OGCM/Copernicus_Marine_Toolbox_installation.md index 18dc3c8b361a85b0052018079b691418902735eb..3e99a2e225edb81e196dca467dcd4c49904e8316 100644 --- a/Oforc_OGCM/Copernicus_Marine_Toolbox_installation.md +++ b/Oforc_OGCM/Copernicus_Marine_Toolbox_installation.md @@ -15,47 +15,60 @@ Prerequisites: --- ## 2 ways to download it: - 1) typing : - - > python -m pip install copernicusmarine - + 1) typing : + ```console + python -m pip install copernicusmarine + ``` 2) Use of conda/mamba package (replace conda by mamba command below) * Install a dedicated environment, by default named cmt_1.0 . First, you need to copy the file copernicusmarine_env.yml from the directory Forecast_tools/CopernicusMarineToolbox/ - > conda env create -f copernicusmarine_env.yml - - **Note** that you can use micromamba instead of mamba to install the python environment - -Firstly, you need to activate the environment cmt_1.0 : + ```console + conda env create -f copernicusmarine_env.yml + ``` + + Note that you can use micromamba instead of mamba to install the python environment + - > conda activate cmt_1.0 + Firstly, you need to activate the environment cmt_1.0 : -The location of the executable (here after pathCMC) will be found typing : + ```console + conda activate cmt_1.0 + ``` - > ls $CONDA_PREFIX/bin/copernicusmarine + The location of the executable (here after pathCMC) will be found typing : - **Note** that the value returned by your terminal here, will be your pathCMC to fill in your + ```console + ls $CONDA_PREFIX/bin/copernicusmarine + ``` + Note that the value returned by your terminal here, will be your pathCMC to fill in your crocotools_param.m and download_glorys_data.sh script --- ## When it's installed : - You will have access to the copernicusmarine executable with various sub-command, very useful to get, extract and download data from the Copernicus Marine Data Store : +You will have access to the copernicusmarine executable with various sub-command, very useful to get, extract and download data from the Copernicus Marine Data Store : + +```console +copernicusmarine -h +``` + +Or alternatively: + +```console +$CONDA_PREFIX/bin/copernicusmarine -h +``` - > copernicusmarine -h +To be used in the Matlab croco_tools, in the crocotools_param.m, you need to : - Or alternatively: +- define the path to the copernicusmarine executable (`pathCMC`) in crocotools_param.m at *section 7, Option for make_OGCM_frcst or make_OGCM_mercator* +- define your copernicus marine `login` and `password` in crocotools_param.m at *section 7, Options for for make_OGCM_frcst or make_OGCM_mercator* - > $CONDA_PREFIX/bin/copernicusmarine -h - To be used in the Matlab croco_tools, in the crocotools_param.m, you need to : - - define the path to the copernicusmarine executable (`pathCMC`) in crocotools_param.m at *section 7, Option for make_OGCM_frcst or make_OGCM_mercator* - - define your copernicus marine `login` and `password` in crocotools_param.m at *section 7, Options for for make_OGCM_frcst or make_OGCM_mercator*