Project

General

Profile

remapping NETCDF file

Added by pooran khedri about 2 years ago

Hi everybody,

I used the following command to remap my file, but I got many warning and It did not work well. I have attached the used files.

cdo remapbil,p.nc sediment_properties.nc ss.nc

Any help would be appreciated.

cheers,
Pooran


Replies (2)

RE: remapping NETCDF file - Added by Karin Meier-Fleischer about 2 years ago

Hi Pooran,

the units of Longitude and Latitude in sediment_properties.nc are only degrees which is not valid.

Use NCO's ncatted to change the units attributes

ncatted -a units,Longitude,o,c,"degrees_east" -a units,Latitude,o,c,"degrees_north" sediment_properties.nc sediment_properties_modified.nc

Now you can remap the data

cdo remapbil,p.nc sediment_properties_modified.nc ss.nc

-Karin

RE: remapping NETCDF file - Added by pooran khedri about 2 years ago

Thanks Karin,

They worked well.

    (1-2/2)