search for: nc_create

Displaying 8 results from an estimated 8 matches for "nc_create".

2017 Aug 14
2
ncdf4: Why are NAs converted to _FillValue when saving?
..., 0, unlim=TRUE ) #--------- # Make var #--------- mv <- 1.e30 # missing value var_temp <- ncvar_def('Temperature','K', list(xdim,ydim,tdim), mv ) #--------------------- # Make new output file #--------------------- output_fname <-'test_real3d.nc' ncid_new <- nc_create( output_fname, list(var_temp)) #------------------------------- # Put some test data in the file #------------------------------- data_temp <- array(0.,dim=c(nx,ny,1)) for( j in 1:ny ) for( i in 1:nx ) data_temp[i,j,1] <- sin(i/10)*sin(j/10) # add some NAs data_temp[1:10, 1:5, 1] <- NA #...
2017 Aug 14
0
ncdf4: Why are NAs converted to _FillValue when saving?
...> #--------- > mv <- 1.e30 # missing value > var_temp <- ncvar_def('Temperature','K', list(xdim,ydim,tdim), mv ) > #--------------------- > # Make new output file > #--------------------- > output_fname <-'test_real3d.nc' > ncid_new <- nc_create( output_fname, list(var_temp)) > #------------------------------- > # Put some test data in the file > #------------------------------- > data_temp <- array(0.,dim=c(nx,ny,1)) > for( j in 1:ny ) > for( i in 1:nx ) > data_temp[i,j,1] <- sin(i/10)*sin(j/10) > > # add...
2013 Feb 05
1
ncdf4 installation problem: undefined symbol [SEC=UNCLASSIFIED]
...INSTALL3e7b250a942e/ncdf4/man/ancdf4.Rd:58: missing file link 'ncvar_put' Rd warning: /tmp/RtmpSxjZ1u/R.INSTALL3e7b250a942e/ncdf4/man/ancdf4.Rd:76: missing file link 'ncvar_put' ancvar_put html nc_close html nc_create html nc_enddef html nc_open html nc_redef html nc_sync html nc_version html nca...
2015 Mar 24
3
NetCDF
...tCDF-4 a netCDF-3, ¿es posible guardar con raster ese archivo .nc que pude abrir en R y ya llevarlo al SIG? Para ello he cargado el paquete/librería 'raster' en Rstudio. Otra idea que se me había ocurrido, pero que desconozco cómo realizar en R es, crear un nuevo netcdf con el comando 'nc_create' diciendo que copie todas las variables del archivo netcdf en cuestión que está en versión 4 y en esta opción del comando establecerle que el nuevo netcdf quede en versión 3: *force_v4 : *If TRUE, then the created output file will always be in netcdf-4 format (which supports more features, bu...
2013 Mar 07
1
install error - Netcdf library (linux)
...R_nc4_create?: ncdf.c:499:15: error: ?NC_SHARE? undeclared (first use in this function) ncdf.c:501:15: error: ?NC_64BIT_OFFSET? undeclared (first use in this function) ncdf.c:503:15: error: ?NC_NETCDF4? undeclared (first use in this function) ncdf.c:505:2: warning: implicit declaration of function ?nc_create? [-Wimplicit-function-declaration] ncdf.c: In function ?R_nc4_ttc_to_nctype?: ncdf.c:518:11: error: ?NC_INT? undeclared (first use in this function) ncdf.c: In function ?R_nc4_put_att_logical?: ncdf.c:554:4: warning: implicit declaration of function ?nc_put_att_float? [-Wimplicit-function-declarati...
2013 Mar 07
0
install Netcdf library (linux)
...R_nc4_create?: ncdf.c:499:15: error: ?NC_SHARE? undeclared (first use in this function) ncdf.c:501:15: error: ?NC_64BIT_OFFSET? undeclared (first use in this function) ncdf.c:503:15: error: ?NC_NETCDF4? undeclared (first use in this function) ncdf.c:505:2: warning: implicit declaration of function ?nc_create? [-Wimplicit-function-declaration] ncdf.c: In function ?R_nc4_ttc_to_nctype?: ncdf.c:518:11: error: ?NC_INT? undeclared (first use in this function) ncdf.c: In function ?R_nc4_put_att_logical?: ncdf.c:554:4: warning: implicit declaration of function ?nc_put_att_float? [-Wimplicit-function-declarati...
2015 Mar 24
3
NetCDF
Buenas tardes, pido disculpas si mi consulta es demasiado elemental, pero actualmente encuentro una gran barrera para continuar mi trabajo si no lo solvento. Soy usuaria principiante de R, estoy trabajando con una base de datos climática <https://digital.csic.es/handle/10261/104742>que se encuentra en formato netcdf4 y necesito transformarla a la versión 3 con el fin de visualizarlo en un
2012 Aug 28
4
[ncdf4] error converting GEIA data to netCDF
summary: I can successfully ncvar_put(...) data to a file, but when I try to ncvar_get(...) the same data, I get > Error in if (nc$var[[li]]$hasAddOffset) addOffset = nc$var[[li]]$addOffset else addOffset = 0 : > argument is of length zero How to fix or debug? details: R code @ https://github.com/TomRoche/GEIA_to_NetCDF successfully (if crudely) uses R packages={ncdf4, maps, fields}