Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TSG QC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
US191
TSG QC
Commits
693b22bd
Commit
693b22bd
authored
15 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
corrige en partie un bug sur le type des attributs de variable
parent
dc7c4b4b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tsg_io/writeTSGDataNetCDF.m
+17
-20
17 additions, 20 deletions
tsg_io/writeTSGDataNetCDF.m
tsg_util/headerForm.m
+1
-1
1 addition, 1 deletion
tsg_util/headerForm.m
with
18 additions
and
21 deletions
tsg_io/writeTSGDataNetCDF.m
+
17
−
20
View file @
693b22bd
...
...
@@ -196,26 +196,23 @@ for key = ncv_keys
% -----------------------------------------------------------
if
isnumeric
(
value
)
% le cast ne marche pas avec cette toolbox de netcdf
% a voir
% -------------------------------
% if strcmp(fieldName, 'FillValue_')
% switch nctype
% case {'double', 'real'}
% value = double(value);
% case {'float', 'single'}
% value = single(value);
% case {'int', 'integer', 'int32'}
% value = int32(value);
% case {'short', 'int16'}
% value = int16(value);
% case {'byte', 'int8'}
% value = int8(value);
% end
% nc{variable}.(fieldName) = value;
% else
nc
{
variable
}
.
(
fieldName
)
=
double
(
value
);
% end
switch
nctype
case
{
'double'
,
'real'
}
value
=
double
(
value
);
case
{
'float'
,
'single'
}
value
=
single
(
value
);
case
{
'int'
,
'integer'
,
'int32'
}
value
=
int32
(
value
);
case
{
'short'
,
'int16'
}
value
=
int16
(
value
);
case
'int8'
value
=
int8
(
value
);
% bug dans la toolbox, le type uint ne marche pas
% on met int8
case
{
'byte'
,
'uint8'
}
value
=
int8
(
value
);
end
nc
{
variable
}
.
(
fieldName
)
=
value
;
else
nc
{
variable
}
.
(
fieldName
)
=
char
(
value
);
...
...
This diff is collapsed.
Click to expand it.
tsg_util/headerForm.m
+
1
−
1
View file @
693b22bd
...
...
@@ -205,7 +205,7 @@ end
% -------------------------
add_variables
;
% additinnal coefficient variable here
% additi
o
nnal coefficient variable here
% ------------------------------------
%if ~isempty(tsg.SSJT_CALCOEF)
add_coefficients
;
...
...
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