Solved

NetCDF with rotated coordinates

  • 26 September 2019
  • 8 replies
  • 8 views

Badge

I'm working on a project where I need wave models created in MatLab. I have download them but when reading I get rotated coordinates.

For some reason, wave models operate with rotated coordinate systems as opposed to conventional ocean models (rlat, rlon). How can I manage to read and rotate this data with FME?

 

icon

Best answer by david_r 26 September 2019, 17:51

View original

8 replies

Userlevel 4

Is this concerning coordinate systems with rotated (offset) poles?

Unfortunately FME does not handle these very well out of the box, but there may be some workarounds.

Badge

Is this concerning coordinate systems with rotated (offset) poles?

Unfortunately FME does not handle these very well out of the box, but there may be some workarounds.

Yes, that's the problem. Here is a print screen:

 

 

Badge

Is this concerning coordinate systems with rotated (offset) poles?

Unfortunately FME does not handle these very well out of the box, but there may be some workarounds.

Yes, that's the problem. Here is a printscreen of the netcdf.

 

 

 

Userlevel 4

There are a couple of hints and tips over at this post that you may want to take a close look at:

https://knowledge.safe.com/questions/43959/netcdf-rotated-coordinate-system-rlat-rlon.html

It includes a small python library that I wrote to calculate back and forth between rotated poles and regular lon/lat. It's fairly easy to incorporate the functionality into FME (PythonCaller) if you know a little Python.

Hope it can help.

Badge

There are a couple of hints and tips over at this post that you may want to take a close look at:

https://knowledge.safe.com/questions/43959/netcdf-rotated-coordinate-system-rlat-rlon.html

It includes a small python library that I wrote to calculate back and forth between rotated poles and regular lon/lat. It's fairly easy to incorporate the functionality into FME (PythonCaller) if you know a little Python.

Hope it can help.

Thanks @david_r. I had already read this question but I was just wondering if FME had already a new solution. I will take a look at it.

Badge +5

There are a couple of hints and tips over at this post that you may want to take a close look at:

https://knowledge.safe.com/questions/43959/netcdf-rotated-coordinate-system-rlat-rlon.html

It includes a small python library that I wrote to calculate back and forth between rotated poles and regular lon/lat. It's fairly easy to incorporate the functionality into FME (PythonCaller) if you know a little Python.

Hope it can help.

David, I would be interested to look at the python, however time moves on and the safe site seems determined not to show me that link, has it been moved?

Userlevel 4

David, I would be interested to look at the python, however time moves on and the safe site seems determined not to show me that link, has it been moved?

It probably went missing in The Great Forum Migration a few months back. Here's the file in question: https://www.dropbox.com/s/mib2t17nrs92k1t/rotated_grid_transform.py?dl=0

Badge +5

David, I would be interested to look at the python, however time moves on and the safe site seems determined not to show me that link, has it been moved?

thanks David

 

Reply