Skip to content

Commit 2972971

Browse files
committed
follow COARDS convention
1 parent 4118b22 commit 2972971

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/IO_ASAGI.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ function write_ASAGI(fname::String, Data::CartData;
4343
ds = NCDataset(fname_asagi,"c", format=:netcdf4)
4444

4545
# Write dimensions
46-
x_dimid = nc_def_dim(ds.ncid, "nx", nx)
47-
y_dimid = nc_def_dim(ds.ncid, "ny", ny)
48-
z_dimid = nc_def_dim(ds.ncid, "nz", nz)
46+
x_dimid = nc_def_dim(ds.ncid, "x", nx)
47+
y_dimid = nc_def_dim(ds.ncid, "y", ny)
48+
z_dimid = nc_def_dim(ds.ncid, "z", nz)
4949

50-
v_x = defVar(ds,"x",Float32,("nx",))
51-
v_y = defVar(ds,"y",Float32,("ny",))
52-
v_z = defVar(ds,"z",Float32,("nz",))
50+
v_x = defVar(ds,"x",eltype(x),("x",))
51+
v_y = defVar(ds,"y",eltype(x),("y",))
52+
v_z = defVar(ds,"z",eltype(x),("z",))
5353
v_x[:] = x
5454
v_y[:] = y
5555
v_z[:] = z

0 commit comments

Comments
 (0)