# Dimensional Data: Using 2-dimensional lat,lon dims when defining a DimensionalArray?

**URL:** <https://discourse.julialang.org/t/dimensional-data-using-2-dimensional-lat-lon-dims-when-defining-a-dimensionalarray/34794>\
**Category:** Geo\
**Created:** [February 18, 2020, 7:48am UTC](https://discourse.julialang.org/t/dimensional-data-using-2-dimensional-lat-lon-dims-when-defining-a-dimensionalarray/34794 "2020-02-18T07:48:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![k945](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/k945/32/8906_2.png) [@k945](https://discourse.julialang.org/u/k945)\
**Post date:** [February 18, 2020, 7:48am UTC](https://discourse.julialang.org/t/dimensional-data-using-2-dimensional-lat-lon-dims-when-defining-a-dimensionalarray/34794/1 "2020-02-18T07:48:17Z")

</div>

While it is possible to create a DimensionalArray with 1d dims. For example

```julia
using DimensionalData
arr = rand(4,4)
x = rand(4);
y = rand(4);
z = 1:4
l = DimensionalArray(arr, (X(x), Y(y), Z(z)))

```

is there a way to create one using 2d dims

```julia
x = rand(4,4);
y = rand(4,4);
z = 1:4
l = DimensionalArray(arr, (X(x), Y(y), Z(z)))

```

While reading in netcdf files using [wrf-python](https://wrf-python.readthedocs.io/en/latest/) (which implements xarray), I noticed that the generated output can use 2d dims. This is because due to the fact that lat and lon values are represented as 2d arrays.

Since I am porting some of the functions from wrf-python (for my own project) I was wondering whether it is possible for DimesionalArrays to do the same?
