Skip to main content
Solved

NetCDF - no CRS desposited

  • January 27, 2017
  • 7 replies
  • 102 views

Forum|alt.badge.img

Dear FME-community,

I use NetCDF-Data for a FME-Transformation as input (Reader).

The problem is that there’s no CRS (Coordinate Reference System) deposited.

I've add a screenshot (Inspector) in the attachment. "Koordinatensystem" stands for CRS and "Unbekannt" stands for unknown (Line 2).

What I’m doing wrong? Has somebody an idea with transformer I’ve to use?

Thank your very much and best regards!

Konrad

Best answer by david_r

If you only need FME to recognize the CRS used when reading the NetCDF file, you can e.g. use a Tester to check for

netcdf_coordinate_variable{1}.name = lat

If that is so, you can use a CoordinateSystemSetter set to LL84.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

david_r
Celebrity
  • January 27, 2017

The NetCDF format is a bit particular like that, FME doesn't automatically parse the metadata to detect the coordinate system. However it isn't too difficult to do yourself if you know your way around FME lists.

Make sure to expose the reader format attributes "netcdf_coordinate_variable{}.name" and check the list contents for relevant keywords. Here's an example for a NetCDF in WGS84 LatLong:


Forum|alt.badge.img
  • Author
  • February 6, 2017

The NetCDF format is a bit particular like that, FME doesn't automatically parse the metadata to detect the coordinate system. However it isn't too difficult to do yourself if you know your way around FME lists.

Make sure to expose the reader format attributes "netcdf_coordinate_variable{}.name" and check the list contents for relevant keywords. Here's an example for a NetCDF in WGS84 LatLong:

Thank you very much @david_r .

 

I know how to expose the reader format attributes. But I don't know how to work with lists.

 

Which transformer(s) would you recommend?

 

Thank you very much. :)

 


david_r
Celebrity
  • February 6, 2017
Thank you very much @david_r .

 

I know how to expose the reader format attributes. But I don't know how to work with lists.

 

Which transformer(s) would you recommend?

 

Thank you very much. :)

 

In this instance, the absolute easiest to do is to create the list items manually using e.g. the AttributeCreator. You can create them like any other attribute name:

 

 

And so on.

 

 

Otherwise you have the ListBuilder etc, but I think they're overkill for this, personally.

 


Forum|alt.badge.img
  • Author
  • February 6, 2017

Thank you @david_r ! Now I know how to create attributes, but I don't unterstand the connection to the missing CRS. Can I get the projection from the metadata with this transformer? Thank you very much!


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • February 6, 2017

just a guess... from looking at your screen dump it seems like the raster is in LL, if that is the case and you know that for sure you can specify it in the reader coordinate system parameter.

Hope this helps.


david_r
Celebrity
  • Best Answer
  • February 7, 2017

If you only need FME to recognize the CRS used when reading the NetCDF file, you can e.g. use a Tester to check for

netcdf_coordinate_variable{1}.name = lat

If that is so, you can use a CoordinateSystemSetter set to LL84.


Forum|alt.badge.img
  • Author
  • February 8, 2017

I've setted to "LL84", now it works! :) Thank you @david_r.

Best regards!

Konrad