Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapter for NetCDF-CF metadata #82

Closed
eblondel opened this issue Aug 3, 2017 · 1 comment

Comments

1 participant
@eblondel
Copy link
Owner

commented Aug 3, 2017

No description provided.

@eblondel eblondel added the RnD label Aug 3, 2017

@eblondel eblondel self-assigned this Aug 3, 2017

@eblondel eblondel added this to Need sponsors in R Consortium 2019 Sep 14, 2018

@eblondel eblondel moved this from Need sponsors to Unsupported in R Consortium 2019 Sep 14, 2018

@eblondel eblondel moved this from Unsupported to To do in R Consortium 2019 Jan 14, 2019

eblondel added a commit that referenced this issue Apr 29, 2019

eblondel added a commit that referenced this issue Apr 29, 2019

eblondel added a commit that referenced this issue Apr 29, 2019

eblondel added a commit that referenced this issue Apr 29, 2019

eblondel added a commit that referenced this issue Apr 29, 2019

eblondel added a commit that referenced this issue Apr 29, 2019

Merge pull request #132 from eblondel/geometa-mapping
#101 #82 #83 geometa metadata generic mapper + 1st impl for ncdf4 (from), eml (from/to)
@eblondel

This comment has been minimized.

Copy link
Owner Author

commented Apr 30, 2019

This feature is now available in geometa master branch.

It is documented here: https://github.com/eblondel/geometa/wiki#43-convert-metadata-objects-fromto-other-metadata-languages-mapping

The conversion from NetCDF-CF is now possible as implementation of the generic metadata converter implemented in #101. The main format retained for this adapter is the class ncdf4 from ncdf4 package. For the timebeing (and in accordance with R Consortium grant Milestone 4), this format can only be a source format for conversion.

The final user function to convert from ncdf4 is a method of the generic as function:

#from ncdf4 to ISOMetadata
nc <- ncdf4::nc_open("http://gsics.eumetsat.int/thredds/dodsC/DemoLevel1B25Km/W_XX-EUMETSAT-Darmstadt,SURFACE+SATELLITE,METOPA+ASCAT_C_EUMP_20131231231800_37368_eps_o_125_l1.nc")
my_ogc <- as(nc, "ISOMetadata")

As per design of the generic metadata converter, mapping rules for ncdf4 are described in the mapping file embedded in geometa package. An interactive file is made available as read-only (and used for development purpose) at https://docs.google.com/spreadsheets/d/1N-Xpp8-YjVzQ4CORfdas_9CaRV4hdrRKPbO4xXNs8-Q/edit?usp=sharing

A unit test is available at: https://github.com/eblondel/geometa/blob/master/tests/testthat/test_geometa_mapping.R

@eblondel eblondel added this to the 0.5 milestone Apr 30, 2019

@eblondel eblondel removed this from To do in R Consortium 2019 Apr 30, 2019

@eblondel eblondel added this to In progress in R Consortium 2019 May 3, 2019

@eblondel eblondel moved this from In progress to Done in R Consortium 2019 May 3, 2019

@eblondel eblondel closed this May 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.