Skip to main content
Question

Create JSON-files from NetCDF-data


Forum|alt.badge.img

Dear FME-Users,

 

 

I’d like to create JSON-files which describes some metadata of NetCDF input data.

 

 

It works well when I use the “RasterToPolygonCoercer” before, but this transformer takes a lot of time. Without conversion to vector data the JSON-file doesn’t describe the metadata of every single pixel, even by using “RasterCellCoecer”.

 

 

Please take a look in the attachment, there are 2 screenshots of 2 JSON-files.

 

 

Necessary is that every cell value of the input data is listed in the JSON-file.

 

 

Maybe it works with the “JSONTemplater”, but I don’t have any experience with this transformer.

 

 

If you have some ideas, it makes me happy. :)

 

 

Thank you very much and best regards.

 

 

Konrad

2 replies

takashi
Evangelist
  • April 25, 2017

Hi @UBA_KP, probably the JSONTemplater could be the right way, but the configuration of the parameters should be considered according to your desired contents and structure to be written in the JSON document.


itay
Supporter
Forum|alt.badge.img+17
  • Supporter
  • April 25, 2017

Yes the JSONTemplater is the way to go as @takashi mention.

Is it possible for you to add the desired JSON document schema to the post? in your attachment ( netcdfjson-raster.png) it is not clear what is the tag in JSON for the raster cell values.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings