കുഞ്ഞായി kunjaai
2014-Oct-01 11:11 UTC
[R] Opening netCDF file with large number of variables but size is small in R
Dear all, I am trying to open a netcdf file with size 1.2 MB contains more than 3000 variables using 'netcdf' package. I am facing problem that it taking more than 10 minute to open this small nc file. Is any way to make it fast ? I have attached one sample nc-file along with this mail. Thank you all in advance. -- DILEEPKUMAR. R J R F, IIT DELHI
Thiago V. dos Santos
2014-Oct-01 12:40 UTC
[R] Opening netCDF file with large number of variables but size is small in R
Dileepkumar, Which function are you using to open the netcdf file? Without a sample of your data it is not possible to reproduce your issue. However, opening a netcdf file should be straightforward with 'raster' (from raster package) or 'nc.open' (from ncdf4 package). Greetings, -- Thiago V. dos Santos PhD student Land and Atmospheric Science University of Minnesota http://www.laas.umn.edu/CurrentStudents/MeettheStudents/ThiagodosSantos/index.htm Phone: (612) 323 9898 On Wednesday, October 1, 2014 6:11 AM, ???????? kunjaai <dileepkunjaai at gmail.com> wrote: Dear all, I am trying to open a netcdf file with size 1.2 MB contains more than 3000 variables using 'netcdf' package. I am facing problem that it taking more than 10 minute to open this small nc file. Is any way to make it fast ? I have attached one sample nc-file along with this mail. Thank you all in advance. -- DILEEPKUMAR. R J R F, IIT DELHI ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]
Michael Sumner
2014-Oct-01 13:46 UTC
[R] Opening netCDF file with large number of variables but size is small in R
This is really a question for a package maintainer, but you don't say which package. Potentially ncdf4 may be slow with that many vars, try the open with suppress_dimvals=TRUE as an outrageously optimistic guess if that package is the one you use. We need more details from you, as per the posting guide. Cheers, Mike Dear all, I am trying to open a netcdf file with size 1.2 MB contains more than 3000 variables using 'netcdf' package. I am facing problem that it taking more than 10 minute to open this small nc file. Is any way to make it fast ? I have attached one sample nc-file along with this mail. Thank you all in advance. -- DILEEPKUMAR. R J R F, IIT DELHI ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]
Marc Girondot
2014-Oct-01 13:51 UTC
[R] Opening netCDF file with large number of variables but size is small in R
Le 01/10/2014 13:11, ???????? kunjaai a ?crit :> Dear all, > > I am trying to open a netcdf file with size 1.2 MB contains more than > 3000 variables using 'netcdf' package. > > I am facing problem that it taking more than 10 minute to open this small > nc file. > > Is any way to make it fast ?Have you tried the ncdf4 package ? You can find a comparison of these package here: http://max2.ese.u-psud.fr/epc/conservation/Girondot/Publications/Blog_r/Entrees/2014/4/27_Comparison_between_packages_RnetCDF%2C_ncdf4_and_ncdf.html> I have attached one sample nc-file along with this mail.The attachments are not showing on the list. Marc