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
2d9328c6
Commit
2d9328c6
authored
13 years ago
by
jacques.grelet_ird.fr
Browse files
Options
Downloads
Patches
Plain Diff
bug: DATE_UPDATE was initialized with a bad format, corrected in version 1.23
parent
4cfb80a7
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tsg_util/headerForm.m
+1
-1
1 addition, 1 deletion
tsg_util/headerForm.m
tsg_util/tsg_initialisation.m
+1
-1
1 addition, 1 deletion
tsg_util/tsg_initialisation.m
tsg_util/updateTsgStruct.m
+4
-4
4 additions, 4 deletions
tsg_util/updateTsgStruct.m
tsgqc.m
+2
-2
2 additions, 2 deletions
tsgqc.m
with
8 additions
and
8 deletions
tsg_util/headerForm.m
+
1
−
1
View file @
2d9328c6
...
...
@@ -659,7 +659,7 @@ uiwait(hHeaderFig);
if
isnan
(
tsg
.
(
var
)(
ii
))
value
=
''
;
elseif
strcmpi
(
cle
,
padding
(
'DATE'
,
tsg
.
dim
.
COEF_CONV_SIZE
))
value
=
datestr
(
julianToDatenum
(
tsg
.
(
var
)(
ii
)),
'
YYYY
mmdd'
);
value
=
datestr
(
julianToDatenum
(
tsg
.
(
var
)(
ii
)),
'
yyyy
mmdd'
);
else
value
=
num2str
(
tsg
.
(
var
)(
ii
));
end
...
...
This diff is collapsed.
Click to expand it.
tsg_util/tsg_initialisation.m
+
1
−
1
View file @
2d9328c6
...
...
@@ -80,7 +80,7 @@ REFERENCE_DATE_TIME = '19500101000000';
% get actual date with ISO8601
% ----------------------------
date
=
datestr
(
now
,
'yyyy
dd
mmHHMMSS'
);
date
=
datestr
(
now
,
'yyyymm
dd
HHMMSS'
);
% -------------------------------------------------------------------------
%% Levitus fields for climatology
...
...
This diff is collapsed.
Click to expand it.
tsg_util/updateTsgStruct.m
+
4
−
4
View file @
2d9328c6
...
...
@@ -69,13 +69,13 @@ tsg.DATE_END = datestr(max(tsg.DAYD), tsg.preference.date_format_attribute)
% if date is in standard format, change, if not, user need to update
% inside headerform
% ------------------------------------------------------------------
if
size
(
tsg
.
DATE
,
2
)
==
14
if
size
(
tsg
.
DATE
_CREATION
,
2
)
==
14
tsg
.
DATE_CREATION
=
datestr
(
datenum
(
tsg
.
DATE_CREATION
,
...
'yyyy
dd
mmHHMMSS'
),
tsg
.
preference
.
date_format_attribute
);
'yyyymm
dd
HHMMSS'
),
tsg
.
preference
.
date_format_attribute
);
end
if
size
(
tsg
.
DATE
,
2
)
==
14
if
size
(
tsg
.
DATE
_UPDATE
,
2
)
==
14
tsg
.
DATE_UPDATE
=
datestr
(
datenum
(
tsg
.
DATE_UPDATE
,
...
'yyyy
dd
mmHHMMSS'
),
tsg
.
preference
.
date_format_attribute
);
'yyyymm
dd
HHMMSS'
),
tsg
.
preference
.
date_format_attribute
);
end
% update tsg.xxx_DATE_xxx with new or ISO8601 format if necessary
...
...
This diff is collapsed.
Click to expand it.
tsgqc.m
+
2
−
2
View file @
2d9328c6
...
...
@@ -37,8 +37,8 @@ global NETCDF_FORMAT_VERSION
% version number, may be used to initialize some files when it change
% 0.90x -> 1.0RCx
% -------------------------------------------------------------------
VERSION
=
1.2
2
;
% -> 1.3
CHAR_VERSION
=
'1.2
2
'
;
VERSION
=
1.2
3
;
% -> 1.3
CHAR_VERSION
=
'1.2
3
'
;
% netcdf file version, see DATA FORMAT TSG document:
% CORTSG_format_gosud_1.5.doc
...
...
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