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
6e1d40ea
Commit
6e1d40ea
authored
3 months ago
by
Gildas Cambon
Browse files
Options
Downloads
Plain Diff
Merge branch 'cherry-pick-
b0a8a875
' into 'release'
Merge branch... See merge request
!15
parents
c9d57090
aae5b9bc
Branches
release
No related tags found
1 merge request
!15
Merge branch...
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Preprocessing_tools/Bio/make_dust.m
+10
-10
10 additions, 10 deletions
Preprocessing_tools/Bio/make_dust.m
Preprocessing_tools/Bio/make_ndepo.m
+25
-25
25 additions, 25 deletions
Preprocessing_tools/Bio/make_ndepo.m
with
35 additions
and
35 deletions
Preprocessing_tools/Bio/make_dust.m
+
10
−
10
View file @
6e1d40ea
...
@@ -152,16 +152,16 @@ nc=netcdf(bioname,'write');
...
@@ -152,16 +152,16 @@ nc=netcdf(bioname,'write');
%
%
for
tindex
=
1
:
length
(
time
)
for
tindex
=
1
:
length
(
time
)
time
=
nc
{
'dust_time'
}(
tindex
);
time
=
nc
{
'dust_time'
}(
tindex
);
nc
{
'dust'
}(
tindex
,:,:)
=
ext_data
(
dust_file
,
'dust'
,
tindex
,
...
nc
{
'dust'
}(
tindex
,:,:)
=
max
(
0.
,
ext_data
(
dust_file
,
'dust'
,
tindex
,
...
lon
,
lat
,
time
,
Roa
,
1
);
lon
,
lat
,
time
,
Roa
,
1
)
)
;
nc
{
'dustfer'
}(
tindex
,:,:)
=
ext_data
(
dust_file
,
'dustfer'
,
tindex
,
...
nc
{
'dustfer'
}(
tindex
,:,:)
=
max
(
0.
,
ext_data
(
dust_file
,
'dustfer'
,
tindex
,
...
lon
,
lat
,
time
,
Roa
,
1
);
lon
,
lat
,
time
,
Roa
,
1
)
)
;
nc
{
'dustpo4'
}(
tindex
,:,:)
=
ext_data
(
dust_file
,
'dustpo4'
,
tindex
,
...
nc
{
'dustpo4'
}(
tindex
,:,:)
=
max
(
0.
,
ext_data
(
dust_file
,
'dustpo4'
,
tindex
,
...
lon
,
lat
,
time
,
Roa
,
1
);
lon
,
lat
,
time
,
Roa
,
1
)
)
;
nc
{
'dustsi'
}(
tindex
,:,:)
=
ext_data
(
dust_file
,
'dustsi'
,
tindex
,
...
nc
{
'dustsi'
}(
tindex
,:,:)
=
max
(
0.
,
ext_data
(
dust_file
,
'dustsi'
,
tindex
,
...
lon
,
lat
,
time
,
Roa
,
1
);
lon
,
lat
,
time
,
Roa
,
1
)
)
;
nc
{
'solubility2'
}(
tindex
,:,:)
=
ext_data
(
dust_file
,
'solubility2'
,
tindex
,
...
nc
{
'solubility2'
}(
tindex
,:,:)
=
max
(
0.
,
ext_data
(
dust_file
,
'solubility2'
,
tindex
,
...
lon
,
lat
,
time
,
Roa
,
1
);
lon
,
lat
,
time
,
Roa
,
1
)
)
;
end
end
close
(
nc
)
close
(
nc
)
if
(
makeplot
)
if
(
makeplot
)
...
...
This diff is collapsed.
Click to expand it.
Preprocessing_tools/Bio/make_ndepo.m
+
25
−
25
View file @
6e1d40ea
...
@@ -76,26 +76,26 @@ nc('eta_u') = Mp;
...
@@ -76,26 +76,26 @@ nc('eta_u') = Mp;
nc
(
'eta_v'
)
=
M
;
nc
(
'eta_v'
)
=
M
;
nc
(
'eta_rho'
)
=
Mp
;
nc
(
'eta_rho'
)
=
Mp
;
%
%
nc
(
'ndep_time'
)
=
length
(
time
);
nc
(
'ndep
o
_time'
)
=
length
(
time
);
nc
{
'ndep_time'
}
=
ncdouble
(
'ndep_time'
)
;
nc
{
'ndep
o
_time'
}
=
ncdouble
(
'ndep
o
_time'
)
;
nc
{
'ndep'
}
=
ncdouble
(
'ndep_time'
,
'eta_rho'
,
'xi_rho'
)
;
nc
{
'ndep
o
'
}
=
ncdouble
(
'ndep
o
_time'
,
'eta_rho'
,
'xi_rho'
)
;
nc
{
'noyndepo'
}
=
ncdouble
(
'ndep_time'
,
'eta_rho'
,
'xi_rho'
)
;
nc
{
'noyndepo'
}
=
ncdouble
(
'ndep
o
_time'
,
'eta_rho'
,
'xi_rho'
)
;
nc
{
'nhxndepo'
}
=
ncdouble
(
'ndep_time'
,
'eta_rho'
,
'xi_rho'
)
;
nc
{
'nhxndepo'
}
=
ncdouble
(
'ndep
o
_time'
,
'eta_rho'
,
'xi_rho'
)
;
%
%
nc
{
'ndep_time'
}
.
long_name
=
ncchar
(
'time for nitrogen deposition'
);
nc
{
'ndep
o
_time'
}
.
long_name
=
ncchar
(
'time for nitrogen deposition'
);
nc
{
'ndep_time'
}
.
long_name
=
'time for nitrogen deposition'
;
nc
{
'ndep
o
_time'
}
.
long_name
=
'time for nitrogen deposition'
;
nc
{
'ndep_time'
}
.
units
=
ncchar
(
'day'
);
nc
{
'ndep
o
_time'
}
.
units
=
ncchar
(
'day'
);
nc
{
'ndep_time'
}
.
units
=
'day'
;
nc
{
'ndep
o
_time'
}
.
units
=
'day'
;
if
cycle
~=
0
if
cycle
~=
0
nc
{
'ndep_time'
}
.
cycle_length
=
cycle
;
nc
{
'ndep
o
_time'
}
.
cycle_length
=
cycle
;
end
end
%
%
nc
{
'ndep'
}
.
long_name
=
ncchar
(
'Nitrogen Deposition'
);
nc
{
'ndep
o
'
}
.
long_name
=
ncchar
(
'Nitrogen Deposition'
);
nc
{
'ndep'
}
.
long_name
=
'Nitrogen Deposition'
;
nc
{
'ndep
o
'
}
.
long_name
=
'Nitrogen Deposition'
;
nc
{
'ndep'
}
.
units
=
ncchar
(
'KgN m-2 s-1'
);
nc
{
'ndep
o
'
}
.
units
=
ncchar
(
'KgN m-2 s-1'
);
nc
{
'ndep'
}
.
units
=
'KgN m-2 s-1'
;
nc
{
'ndep
o
'
}
.
units
=
'KgN m-2 s-1'
;
nc
{
'ndep'
}
.
fields
=
ncchar
(
'ndep, scalar, series'
);
nc
{
'ndep
o
'
}
.
fields
=
ncchar
(
'ndep
o
, scalar, series'
);
nc
{
'ndep'
}
.
fields
=
'ndep, scalar, series'
;
nc
{
'ndep
o
'
}
.
fields
=
'ndep
o
, scalar, series'
;
%
%
nc
{
'noyndepo'
}
.
long_name
=
ncchar
(
'NOy Deposition'
);
nc
{
'noyndepo'
}
.
long_name
=
ncchar
(
'NOy Deposition'
);
nc
{
'noyndepo'
}
.
long_name
=
'NOy Deposition'
;
nc
{
'noyndepo'
}
.
long_name
=
'NOy Deposition'
;
...
@@ -124,7 +124,7 @@ nc.type = ncchar('CROCO biology forcing file');
...
@@ -124,7 +124,7 @@ nc.type = ncchar('CROCO biology forcing file');
nc
.
type
=
'CROCO biology forcing file'
;
nc
.
type
=
'CROCO biology forcing file'
;
% Write time variable
% Write time variable
nc
{
'ndep_time'
}(:)
=
time
.*
30
;
% if time in month in the dataset !!!
nc
{
'ndep
o
_time'
}(:)
=
time
.*
30
;
% if time in month in the dataset !!!
close
(
nc
)
close
(
nc
)
...
@@ -132,13 +132,13 @@ nc=netcdf(bioname,'write');
...
@@ -132,13 +132,13 @@ nc=netcdf(bioname,'write');
%
%
% Loop on time
% Loop on time
for
tindex
=
1
:
length
(
time
)
for
tindex
=
1
:
length
(
time
)
time
=
nc
{
'ndep_time'
}(
tindex
);
time
=
nc
{
'ndep
o
_time'
}(
tindex
);
nc
{
'ndep'
}(
tindex
,:,:)
=
ext_data
(
ndep_file
,
'ndep'
,
tindex
,
...
nc
{
'ndep
o
'
}(
tindex
,:,:)
=
max
(
0.
,
ext_data
(
ndep_file
,
'ndep'
,
tindex
,
...
lon
,
lat
,
time
,
Roa
,
1
);
lon
,
lat
,
time
,
Roa
,
1
)
)
;
nc
{
'noyndepo'
}(
tindex
,:,:)
=
ext_data
(
ndep_file
,
'noyndepo'
,
tindex
,
...
nc
{
'noyndepo'
}(
tindex
,:,:)
=
max
(
0.
,
ext_data
(
ndep_file
,
'noyndepo'
,
tindex
,
...
lon
,
lat
,
time
,
Roa
,
1
);
lon
,
lat
,
time
,
Roa
,
1
)
)
;
nc
{
'nhxndepo'
}(
tindex
,:,:)
=
ext_data
(
ndep_file
,
'nhxndepo'
,
tindex
,
...
nc
{
'nhxndepo'
}(
tindex
,:,:)
=
max
(
0.
,
ext_data
(
ndep_file
,
'nhxndepo'
,
tindex
,
...
lon
,
lat
,
time
,
Roa
,
1
);
lon
,
lat
,
time
,
Roa
,
1
)
)
;
end
end
%
%
close
(
nc
)
close
(
nc
)
...
...
This diff is collapsed.
Click to expand it.
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