Displaying 3 results from an estimated 3 matches for "ncin".
Did you mean:
cin
2017 Aug 28
3
Extracting subset from netCDF file using lat/lon and converting into .csv in R
....csv format.
so far I could make up to this step:
# load the ncdf4 package
library(ncdf4)
# set path and filename
setwd("D:/netcdf")
ncname <- "gfdl_preci"
ncfname <- paste(ncname, ".nc", sep = "")
dname <- "prAdjust"
# open a netCDF file
ncin <- nc_open(ncfname)
print(ncin)# get longitude and latitude
lon <- ncvar_get(ncin,"lon")
nlon <- dim(lon)
head(lon)
lat <- ncvar_get(ncin,"lat")
nlat <- dim(lat)
head(lat)
print(c(nlon,nlat))
# get time
time <- ncvar_get(ncin,"time")
time
tunits &l...
2017 Aug 28
0
Extracting subset from netCDF file using lat/lon and converting into .csv in R
Two questions:
1. Is the order of the dimensions shown what is shown if you look at str(ncin) - I mean shown at the end where it describes the variable and its dimensions?
2. Is you problem how to subset the netcdf file, how to write to the .csv file, or both?
-Roy
> On Aug 28, 2017, at 2:21 PM, Eeusha Nafi <eshad002 at gmail.com> wrote:
>
> I have a series of nertCDF...
2018 May 20
3
Loop Function to Create Multiple Scatterplots
Hello,
I am trying to create multiple scatter plot graphs. I have 1 independent
variable (Age - weeks post conception) and 18 dependent variables ("Gene n"
Expression) in one csv file. Is there a way to set up a looped function to
produce 18 individual scatterplots? At the moment, I am writing the plot()
function out 18 times to make the 18 graphs. My code is below and csv file
is