search for: ncfname

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

Did you mean: lc_name
2017 Aug 28
3
Extracting subset from netCDF file using lat/lon and converting into .csv in R
...this dataset using pair of lon and lat points, e.g., (12.875, -11.625) & (8.875, 4.125) and convert the file into .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...
2017 Aug 28
0
Extracting subset from netCDF file using lat/lon and converting into .csv in R
...g., (12.875, -11.625) & (8.875, 4.125) and convert the file into > .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) > > la...