cdo-climate

Change grid size of a netCDF file

折月煮酒 提交于 2021-02-19 03:19:19
问题 Let's assume I have 2 netCDF data files with data for the same region (like South America, Africa, etc) but the different grid sizes as 0.5 degrees x 0.5 degrees and 1.0 degrees x 1.0 degrees in another. I want to increase or decrease its grid size to a different value such as 0.25 x 0.25 or 1.0 x 1.0 so that I can use this easily for raster calculations and comparison, etc. Is there a method to do this using any bash script, CDO, etc. A sample data can be downloaded from here. https://www

Change grid size of a netCDF file

谁说我不能喝 提交于 2021-02-19 03:18:57
问题 Let's assume I have 2 netCDF data files with data for the same region (like South America, Africa, etc) but the different grid sizes as 0.5 degrees x 0.5 degrees and 1.0 degrees x 1.0 degrees in another. I want to increase or decrease its grid size to a different value such as 0.25 x 0.25 or 1.0 x 1.0 so that I can use this easily for raster calculations and comparison, etc. Is there a method to do this using any bash script, CDO, etc. A sample data can be downloaded from here. https://www

Change grid size of a netCDF file

。_饼干妹妹 提交于 2021-02-19 03:18:37
问题 Let's assume I have 2 netCDF data files with data for the same region (like South America, Africa, etc) but the different grid sizes as 0.5 degrees x 0.5 degrees and 1.0 degrees x 1.0 degrees in another. I want to increase or decrease its grid size to a different value such as 0.25 x 0.25 or 1.0 x 1.0 so that I can use this easily for raster calculations and comparison, etc. Is there a method to do this using any bash script, CDO, etc. A sample data can be downloaded from here. https://www

Concatenate netcdf files with different variables - using nco

吃可爱长大的小学妹 提交于 2021-02-10 11:48:41
问题 I want to concatenate two sets of netcdf files using nco , where each set has about 30 files. Set 1 contains: longitude, latitude, time and v. Set 2 contains: longitude, latitude, time and u. I have tried: ncks *.nc out.nc but I get: Error received 97 filenames; need no more than two then I tried: ncks -A *.nc out.nc but the error persists: Error received 97 filenames; need no more than two Please can you point me in the right direction, I am quite new to this. Thanks in advance. 回答1: Your

Concatenate netcdf files with different variables - using nco

允我心安 提交于 2021-02-10 11:48:31
问题 I want to concatenate two sets of netcdf files using nco , where each set has about 30 files. Set 1 contains: longitude, latitude, time and v. Set 2 contains: longitude, latitude, time and u. I have tried: ncks *.nc out.nc but I get: Error received 97 filenames; need no more than two then I tried: ncks -A *.nc out.nc but the error persists: Error received 97 filenames; need no more than two Please can you point me in the right direction, I am quite new to this. Thanks in advance. 回答1: Your

Concatenate netcdf files with different variables - using nco

爷,独闯天下 提交于 2021-02-10 11:48:08
问题 I want to concatenate two sets of netcdf files using nco , where each set has about 30 files. Set 1 contains: longitude, latitude, time and v. Set 2 contains: longitude, latitude, time and u. I have tried: ncks *.nc out.nc but I get: Error received 97 filenames; need no more than two then I tried: ncks -A *.nc out.nc but the error persists: Error received 97 filenames; need no more than two Please can you point me in the right direction, I am quite new to this. Thanks in advance. 回答1: Your

Estimating monthly climatology on NetCDF data using R

五迷三道 提交于 2021-01-27 17:02:07
问题 I am working on NOAA AVHRR daily Sea Surface Temperature (SST) data of 31 years. The data is in NetCDF format with dimensions as 28 (lon) x 40 (lat) x 11686(days). I am supposed to compute monthly climatological mean (e.g. mean of all Januaries of 31 years and so on). Using ncdf4 and chron libraries I was able to get it in array form. ncin <- nc_open('sstfile.nc') sst_array <- ncvar_get(ncin, 'sst') Since time variable is separate from SST data, I had to use it loop over the array. is

Change time axis units from “years since” to “days since” in netcdf file

情到浓时终转凉″ 提交于 2020-12-10 08:42:54
问题 I have a netcdf file that someone passed me that uses "years since DATE" as the time units: double time(time) ; time:standard_name = "time" ; time:long_name = "time" ; time:calendar = "proleptic_gregorian" ; time:axis = "T" ; time:units = "years since 2000-1-1 00:00:00" ; I want to change the units to "Days since" the same base date - Obviously the timevariable needs to be changed to be consistent. I was hoping for a solution using nco or cdo, but I am a bit stumped. (A python solution would

Combine multiple NetCDF files into timeseries multidimensional array python

自作多情 提交于 2020-06-24 10:12:08
问题 I am using data from multiple netcdf files (in a folder on my computer). Each file holds data for the entire USA, for a time period of 5 years. Locations are referenced based on the index of an x and y coordinate. I am trying to create a time series for multiple locations(grid cells), compiling the 5 year periods into a 20 year period (this would be combining 4 files). Right now I am able to extract the data from all files for one location and compile this into an array using numpy append.

Calculating ERA5 Daily Total Precipitation using CDO

余生颓废 提交于 2020-04-13 17:02:08
问题 Essentially, this is a repost of this question: https://confluence.ecmwf.int/pages/viewpage.action?pageId=149341027 I have downloaded ERA5 from the CDS. The input file has 24 hourly steps (0, 1, 2, 3, 4,..,23) for each calendar day starting from Jan 1 to Dec 31 of each considered year. ECMWF state here https://confluence.ecmwf.int/display/CKB/ERA5%3A+How+to+calculate+daily+total+precipitation that daily total precipitation must be calculated by accumulating precipitation for e.g. Jan 1, 1979