Project

General

Profile

conversion latlon to united states

Added by Steppe Röttgering over 3 years ago

Hi!

I downloaded some General Circulation Models (GCM's) from the Coupled Model Intercomparison Project Phase 5 (CMIP5) , which are NetCDF files. I can use R and Python to open the data and found Panoply a good format to visualize the data. Now, I'm looking for a NetCDF tool which can convert latitude and longitude to states in the United States? Is there a function in CDO which can do this?

In the end, I want for all states in the United States one precipitation / maximum temperature value per timestamp (months).

Thanks in advance.


Replies (1)

RE: conversion latlon to united states - Added by Karin Meier-Fleischer over 3 years ago

Hi Steppe,

as far as I know, CDO can't do that. You need a shapefile containing the polygon data for the states to extract the data for each state.
There is an example using NCL to do something similar. See https://www.ncl.ucar.edu/Applications/Scripts/Germany_coastal_counties_DEU_adm.ncl

-Karin

    (1-1/1)