Hello,
I have created a netcdf file in matlab and am trying to display and process it in ArcMap. I need to overlay it with a shapefile that uses the GCS_WGS_1984 projection and has longitude ranging from -180 to 180. My original netcdf file had a longitude vector ranging from 0.25 to 359.75 so only the positive longitudes could be overlaid with the shapefile (see image attached, netcdf file in blue). I changed the longitude vector to the following format:
0.25
0.75
..
..
..
179.75
-179.75
..
..
..
-0.75
-0.25
I was hoping this would allow me to overlay the shapefile and the netcdf file, and also have the zero latitude (greenwich) in the middle instead of the pacific. The file I created displays fine in Panoply so it is not corrupted or have a faulty coordinate system. However, ArcMap only displays one data point when I open the file and the attribute table only has one line with information FID 0, Shape point, Runoff 0. When I try to convert this netcdf file into a raster I get the following error: ERROR 000276: one or both dimensions have variable spacing in their coordinate values. This happens despite the fact that the longitude vector is spaced at regular 0.5 degree intervals and has 720 values just like the original vector.
I'm confused as to why ArcMap cannot read this file and have run out of ideas on how to overlay the two datasets. The latitude vector is clearly fine but I do not know how I should format longitude for ArcMap to understand it and display negative (western) longitudes in the left and positive (eastern) longitudes in the right. Any help would be greatly appreciated!