Project

General

Profile

How to create regular lat/lon NC file from a NC file only with lines

Added by david moreno over 6 years ago

Hi, I have a netcdf file with the following structure:

dimensions:
nobs = UNLIMITED ; // (23562010 currently)
variables:
double Observation_Type(nobs) ;
double Latitude(nobs) ;
double Longitude(nobs) ;
double Pressure(nobs) ;
double Analysis_Use_Flag(nobs) ;
double u_Obs_Minus_Forecast_unadjusted(nobs) ;
double u_Obs_Minus_Forecast_unadjusted(nobs) ;

I need to create a LAT/LOn regular netcdf file where lat and lon are the coordinates of the fields observation_type, pressure, Analysis_use, u_Obs_Minus_Forecast_unadjusted, v_Obs_Minus_Forecast_unadjusted.

Basically, I'll choose a delta lat and delta lon and each values of the variables that falls within each lat/lon bin would be averaged to get one variable value per lat/lon cell.

I will also need to add a time coordinate/time stamp. Each of the input nc files have in its name the corresponding time (ex, name_20100115_00z.nc). How can I add this info as a coordinate or time stamp inside the files, since I will have several times inside each output nc file?

Any suggestions in how can I do this with NCO, or CDO?

Thanks!


    (1-1/1)