Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
croco_tools
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
croco-ocean
croco_tools
Commits
90a6ebc1
Commit
90a6ebc1
authored
1 year ago
by
Gildas Cambon
Browse files
Options
Downloads
Patches
Plain Diff
Remove ECCO product from Forecast_tools
parent
5040ce6c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Forecast_tools/download_ECCO_frcst.m
+2
-2
2 additions, 2 deletions
Forecast_tools/download_ECCO_frcst.m
Forecast_tools/extract_ECCO_frcst.m
+0
-115
0 additions, 115 deletions
Forecast_tools/extract_ECCO_frcst.m
with
2 additions
and
117 deletions
Forecast_tools/download_ECCO_frcst.m
+
2
−
2
View file @
90a6ebc1
...
...
@@ -161,13 +161,13 @@ if ~exist(ecco_name)
%
% Extract ECCO
%
extract_ECCO_frcst
(
FRCST_dir
,
FRCST_prefix
,
prefix
,
suffix
,
tindex
,
missval
,
...
extract_ECCO_frcst
(
FRCST_dir
,
FRCST_prefix
,
prefix
,
suffix
,
tindex
,
missval
,
...
lon
,
lon_u
,
lat
,
lat_v
,
depth
,
...
krange
,
jrange
,
jrange_v
,
...
i1min
,
i1max
,
i2min
,
i2max
,
i3min
,
i3max
,
...
i1min_u
,
i1max_u
,
i2min_u
,
i2max_u
,
i3min_u
,
i3max_u
,
...
time
,
Yorig
)
else
disp
(
' ECCO file already exist
s
'
)
disp
(
' ECCO file al
l
ready exist'
)
end
return
This diff is collapsed.
Click to expand it.
Forecast_tools/extract_ECCO_frcst.m
deleted
100644 → 0
+
0
−
115
View file @
5040ce6c
function
extract_ECCO_frcst
(
FRCST_dir
,
FRCST_prefix
,
prefix
,
suffix
,
tindex
,
missval
,
...
lon
,
lon_u
,
lat
,
lat_v
,
depth
,
...
krange
,
jrange
,
jrange_v
,
...
i1min
,
i1max
,
i2min
,
i2max
,
i3min
,
i3max
,
...
i1min_u
,
i1max_u
,
i2min_u
,
i2max_u
,
i3min_u
,
i3max_u
,
...
time
,
Yorig
)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Extract a subset from ECCO using DODS
% Write it in a local file (keeping the classic
% SODA netcdf format)
%
%
% Further Information:
% http://www.croco-ocean.org
%
% This file is part of CROCOTOOLS
%
% CROCOTOOLS is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published
% by the Free Software Foundation; either version 2 of the License,
% or (at your option) any later version.
%
% CROCOTOOLS is distributed in the hope that it will be useful, but
% WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; if not, write to the Free Software
% Foundation, Inc., 59 Temple Place, Suite 330, Boston,
% MA 02111-1307 USA
%
% Copyright (c) 2006 by Pierrick Penven
% e-mail:Pierrick.Penven@ird.fr
%
% Updated 9-Sep-2006 by Pierrick Penven
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
disp
([
' Download ECCO'
])
trange
=
[
'['
,
num2str
(
tindex
-
1
),
':'
,
num2str
(
tindex
-
1
),
']'
];
%
% Get the time
%
%vname='Have';
%fname=[prefix,vname,suffix];
%time=readdap(fname,'time',trange)
%time=floor(time/24+datenum(1970,1,1));
%disp([' Date: ',datestr(time)])
%time=time-datenum(Yorig,1,1)
%
% Get SSH
%
disp
(
' ...SSH'
)
vname
=
'Have'
;
fname
=
[
vname
,
suffix
];
ssh
=
getdap
(
prefix
,
fname
,
vname
,
...
trange
,
''
,
jrange
,
...
i1min
,
i1max
,
i2min
,
i2max
,
i3min
,
i3max
);
ssh
=
shiftdim
(
ssh
,
2
);
ssh
(
ssh
<=
missval
)
=
NaN
;
%
% Get U
%
disp
(
' ...U'
)
vname
=
'Uave'
;
fname
=
[
vname
,
suffix
];
u
=
getdap
(
prefix
,
fname
,
vname
,
...
trange
,
krange
,
jrange
,
...
i1min_u
,
i1max_u
,
i2min_u
,
i2max_u
,
i3min_u
,
i3max_u
);
u
=
permute
(
u
,[
4
3
1
2
]);
u
(
u
<=
missval
)
=
NaN
;
%
% Get V
%
disp
(
' ...V'
)
vname
=
'Vave'
;
fname
=
[
vname
,
suffix
];
v
=
getdap
(
prefix
,
fname
,
vname
,
...
trange
,
krange
,
jrange_v
,
...
i1min
,
i1max
,
i2min
,
i2max
,
i3min
,
i3max
);
v
=
permute
(
v
,[
4
3
1
2
]);
v
(
v
<=
missval
)
=
NaN
;
%
% Get TEMP
%
disp
(
' ...TEMP'
)
vname
=
'Tave'
;
fname
=
[
vname
,
suffix
];
temp
=
getdap
(
prefix
,
fname
,
vname
,
...
trange
,
krange
,
jrange
,
...
i1min
,
i1max
,
i2min
,
i2max
,
i3min
,
i3max
);
temp
=
permute
(
temp
,[
4
3
1
2
]);
temp
(
temp
<=
missval
)
=
NaN
;
%
% Get SALT
%
disp
(
' ...SALT'
)
vname
=
'Save'
;
fname
=
[
vname
,
suffix
];
salt
=
getdap
(
prefix
,
fname
,
vname
,
...
trange
,
krange
,
jrange
,
...
i1min
,
i1max
,
i2min
,
i2max
,
i3min
,
i3max
);
salt
=
permute
(
salt
,[
4
3
1
2
]);
salt
(
salt
<=
missval
)
=
NaN
;
%
% Create the ECCO file
%
create_OGCM
([
FRCST_dir
,
FRCST_prefix
,
num2str
(
time
),
'.cdf'
],
...
lon
,
lat
,
lon_u
,
lat
,
lon
,
lat_v
,
depth
,
time
,
...
squeeze
(
temp
),
squeeze
(
salt
),
squeeze
(
u
),
...
squeeze
(
v
),
squeeze
(
ssh
),
Yorig
)
%
return
This diff is collapsed.
Click to expand it.
Gildas Cambon
@gcambon
mentioned in commit
26798499
·
1 year ago
mentioned in commit
26798499
mentioned in commit 26798499f6e724a1dfce58d7c2cc6ef6b81356a8
Toggle commit list
Gildas Cambon
@gcambon
mentioned in commit
bdd08a85
·
11 months ago
mentioned in commit
bdd08a85
mentioned in commit bdd08a8563e92dfe7893d3d82076a5e1d9043a84
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment