Displaying 3 results from an estimated 3 matches for "geia_n2o_ocean".
Did you mean:
geia_n2o_oceanic
2012 Sep 06
1
[Rscript] difficulty passing named arguments from commandline
...;n'd
https://github.com/TomRoche/GEIA_to_netCDF/blob/master/netCDF.stats.to.stdout.r
However it wasn't as quick as hoped, because I spent quite a bit of time
figuring out how to pass the arguments. This works (note the quoting):
$ Rscript ./netCDF.stats.to.stdout.r 'netcdf.fp="./GEIA_N2O_oceanic.nc"' 'var.name="emi_n2o"'
> For ./GEIA_N2O_oceanic.nc var=emi_n2o
> cells=64800
> obs=36143
> min=5.96e-08
> max=1.17e+03
> mean=99.5
> med=67.7
but this fails
roche at amad1:/project/inf14w/roche/GEIA_to_netCDF $ Rscript ./netCDF.stats.to.s...
2012 Oct 21
1
[newbie] failure to plot a RasterLayer with raster::plot or fields::image.plot
...mple" @
https://github.com/TomRoche/GEIA_to_netCDF/blob/master/README.md
(and presuming your R is appropriately configured, notably with
packages=fields, ncdf4) it will output netCDF and plot the
output to a PDF, which is also available @
https://github.com/downloads/TomRoche/GEIA_to_netCDF/GEIA_N2O_oceanic.pdf
). The distribution of the output data appears very similar to the input
data, and the output plot appears correct, so problem 1 seems solved.
Problem 2 (aka the "second example") is somewhat more difficult. Driver
regrid_GEIA_netCDF.sh calls regrid.global.to.AQMEII.r, which runs...
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}