Skip to content

This repository contains instructions for downloading climate data in NetCDF format, clipping to region of interest and conversion of the data to CSV format.

Notifications You must be signed in to change notification settings

WCT-Riverine-Ecology-And-Livelihoods/Climate-NetCDFtoCSV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Climate-NetCDFtoCSV

This repository contains instructions for downloading climate data in NetCDF format, clipping to region of interest and conversion of the data to CSV format.

  1. Data download in NetCDF format (ex.CHIRPS for precipitation): https://data.chc.ucsb.edu/products/CHIRPS-2.0/
  2. Clip the NetCDF file to region of interest using the CDO (Climate Data Operator) command line tool

After clicking the cygwin install option the following screen should appear

cygwin_1

Go through all the the default options till you come to the window for selecting packages

cyg_3

Type 'cdo' in the searchbar and choose: 'cdo' and 'libcdo0'

cyg_4

Choose version number for 'cdo' and 'libcdo0' and click 'Next' to finish installation

From the cygwin terminal, give the following commands for clipping the Netcdf file
(for ex. clipping to region between 72 and 98 E and 20 and 32 N)
cd /cygdrive/file location
cdo -sellonlatbox,72,98,20,32 <input file.nc> <output file.nc>

  1. Using the clipped files from above, run the example R script (based on this script) to convert to csv format

About

This repository contains instructions for downloading climate data in NetCDF format, clipping to region of interest and conversion of the data to CSV format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages