Project

General

Profile

Vales from NetCDF files

Added by Muhammad Ramzan over 1 year ago

Hello

I have download the temperature data from the https://cds.climate.copernicus.eu/ as a netCDf format.

I want to get the time series data for the temperature for a given lat and longitude points, how I can do this please.

Thanks


Replies (5)

RE: Vales from NetCDF files - Added by Karin Meier-Fleischer over 1 year ago

Hi Muhammad,

you can retrieve the data near to a lat/lon location using a remap operator with the lon and lat value:

cdo -remapnn,lon=<LON>_lat=<LAT> infile outfile

For instance:

cdo -remapnn,lon=10.0_lat=53.55 infile outfile

RE: Vales from NetCDF files - Added by Muhammad Ramzan over 1 year ago

Thanks how I can do this for a list of lat and long points please

RE: Vales from NetCDF files - Added by Karin Meier-Fleischer over 1 year ago

Write a shell script and loop over the lan/lat values.

RE: Vales from NetCDF files - Added by Muhammad Ramzan over 1 year ago

can you please how I can write a shell script please

RE: Vales from NetCDF files - Added by Karin Meier-Fleischer over 1 year ago

There are many posts about this question. Writing the script is up to you but let me google that for you 'cdo script loop position' ...

https://code.mpimet.mpg.de/boards/1/topics/4461
https://code.mpimet.mpg.de/boards/1/topics/7966
...
https://unix.stackexchange.com/questions/327681/loop-the-cdo-command-remapnn
    (1-5/5)