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

Will I be able to create NetCDF files? #8

Closed
ibarraespinosa opened this issue Aug 19, 2017 · 6 comments
Closed

Will I be able to create NetCDF files? #8

ibarraespinosa opened this issue Aug 19, 2017 · 6 comments

Comments

@ibarraespinosa
Copy link

Hi and congrats by the proposal grant. Many people are excited about this package, including me.

I have a question and not really an issue.

Will we be able to create NetCDF files? I have my package which creates a flux of emissions in a grid (currently as SpatialGridDataFrame but I'm gonna migrate to SF soon) and it would be very beneficial to me to have a tool to create NetCDF from this grids. The idea is to create inputs for atmospheric models such as WRF-Chem, CMAQ, BRAMS etc.

Thanks and congrats

@mdsumner
Copy link
Member

Initial support will be via GDAL, so see the description of how that interprets this format and what is supports for file creation:

http://www.gdal.org/frmt_netcdf.html

You can try it on a system with rgdal that includes NetCDF as a driver, I don't think either win or Mac binaries on CRAN currently do but it's relatively easy on a Linux system to install the right systems packages. Then exploration can be done with rgdal and more directly at the command line. The command line utilities are available for mac
and win with nc support independently of CRAN.

Happy to explore details with you, but I suspect the write capabilities won't be configurable enough for your needs. Having this as an example application either with full native support or via workarounds would be useful information.

@ibarraespinosa
Copy link
Author

Ok, I'm gonna think about it. I believe that I would need the headers of the NetCDF files required for each modeling system. I'm gonna try some tests and will let you know.

Many thanks

@edzer
Copy link
Member

edzer commented Mar 1, 2019

I will take this up with @appelmar , when discussing gdalcubes next week.

@edzer
Copy link
Member

edzer commented Apr 2, 2020

So, we have now:

  • through write_stars using the GDAL driver we can write GDAL-like NetCDF files (no time support, everything beyond x/y is a band);
  • I think we don't have generic stars -> netcdf writing, and this would be very nice to have; in particular the new (GDAL >= 3.1) multidimensional arrays options seem promising
  • package ncdfgeom can read and write vector data cubes (@dblodgett-usgs )
  • package gdalcubes can properly write netcdf files with time support, created from image collections

@ibarraespinosa
Copy link
Author

ibarraespinosa commented Apr 5, 2020 via email

@edzer
Copy link
Member

edzer commented May 6, 2021

Closing in favor of #419.

@edzer edzer closed this as completed May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants