Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rose_regrid_setup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mike Bedington
rose_regrid_setup
Commits
6adff206
Commit
6adff206
authored
Apr 08, 2020
by
Modellers Operational
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change dimension ordering in writing out to netCDF
parent
f91a3f36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
app/regrid_domain_ceto/file/grid_interp.py
app/regrid_domain_ceto/file/grid_interp.py
+4
-5
No files found.
app/regrid_domain_ceto/file/grid_interp.py
View file @
6adff206
...
...
@@ -88,8 +88,8 @@ if rank == 0:
all_attributes
=
{
'lon'
:{
'standard_name'
:
'longitude'
,
'units'
:
'degrees_east'
,
'long_name'
:
'longitude'
},
'lat'
:{
'standard_name'
:
'latitude'
,
'units'
:
'degrees_north'
,
'long_name'
:
'latitude'
},
'depth'
:{
'standard_name'
:
'depth'
,
'units'
:
'm'
,
'long_name'
:
'depth, measured downwards from free surface'
,
'axis'
:
'
Z
'
,
'positive'
:
'down'
},
'h'
:{
'standard_name'
:
'h'
,
'units'
:
'm'
,
'long_name'
:
'model bathymetry depth, measured downwards from geoid'
,
'axis'
:
'
Z
'
,
'positive'
:
'down'
,
'missing_value'
:
-
32768
},
'depth'
:{
'standard_name'
:
'depth'
,
'units'
:
'm'
,
'long_name'
:
'depth, measured downwards from free surface'
,
'axis'
:
'
depth
'
,
'positive'
:
'down'
},
'h'
:{
'standard_name'
:
'h'
,
'units'
:
'm'
,
'long_name'
:
'model bathymetry depth, measured downwards from geoid'
,
'axis'
:
'
depth
'
,
'positive'
:
'down'
,
'missing_value'
:
-
32768
},
'temp'
:{
'standard_name'
:
'sea_water_potential_temperature'
,
'units'
:
'C'
,
'missing_value'
:
-
32768
,
'long_name'
:
'Sea Water Potential Temperature'
}
,
'salinity'
:{
'standard_name'
:
'sea_water_salinity'
,
'units'
:
'psu'
,
'missing_value'
:
-
32768
,
'long_name'
:
'Sea Water Salinity'
},
'u'
:{
'standard_name'
:
'eastward_sea_water_velocity'
,
'units'
:
'm s-1'
,
'missing_value'
:
-
32768
,
'long_name'
:
'Eastward Current Velocity'
},
...
...
@@ -126,10 +126,9 @@ if rank == 0:
for
this_var
,
this_mode
in
varlist
.
items
():
if
this_mode
==
'surface'
:
outfile
.
add_variable
(
this_var
,
np
.
swapaxes
(
collected_interp_data
[
this_var
],
1
,
2
),
[
'time'
,
'lon'
,
'lat'
],
attributes
=
all_attributes
[
this_var
],
ncopts
=
ncopts
)
outfile
.
add_variable
(
this_var
,
np
.
swapaxes
(
collected_interp_data
[
this_var
],
1
,
2
),
[
'time'
,
'lat'
,
'lon'
],
attributes
=
all_attributes
[
this_var
],
ncopts
=
ncopts
)
else
:
outfile
.
add_variable
(
this_var
,
np
.
swapaxes
(
collected_interp_data
[
this_var
],
1
,
3
),
[
'time'
,
'
lon'
,
'lat'
,
'depth
'
],
outfile
.
add_variable
(
this_var
,
np
.
swapaxes
(
collected_interp_data
[
this_var
],
1
,
3
),
[
'time'
,
'
depth'
,
'lat'
,
'lon
'
],
attributes
=
all_attributes
[
this_var
],
ncopts
=
ncopts
)
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment