search for: ncid_new

Displaying 2 results from an estimated 2 matches for "ncid_new".

Did you mean: id_new
2017 Aug 14
2
ncdf4: Why are NAs converted to _FillValue when saving?
...1900-01-01', 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...
2017 Aug 14
0
ncdf4: Why are NAs converted to _FillValue when saving?
...gt; # 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)...