Changing generic coordinates to lat-lon using another file or description.
Added by Luis Ramirez almost 7 years ago
I need help with the aforementioned problem. (english is not my first language, sorry)
I'm working with a file named lai.nc, the coordinates on this file are in generic form because of this i can't use remapbil to change it to the ones i need it.
Below is the sinfon from lai.nc:
File format : NetCDF4 -1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name 1 : unknown unknown v instant 1 1 124416 1 F64 : lai Grid coordinates : 1 : generic : points=124416 (288x432) Vertical coordinates : 1 : surface : levels=1 Time coordinate : 60 steps RefTime = 1989-01-01 00:00:00 Units = days Calendar = standard
I appreciate every help possible.
Regards.
lai.rar (7.1 MB) lai.rar | |||
new_grid.txt (279 Bytes) new_grid.txt |
Replies (2)
RE: Changing generic coordinates to lat-lon using another file or description. - Added by Karin Meier-Fleischer almost 7 years ago
Hi Luis,
I'm not able to unpack your lai.rar file. Please, upload the lai.nc file instead.
-Karin
RE: Changing generic coordinates to lat-lon using another file or description. - Added by Karin Meier-Fleischer almost 7 years ago
OK, got it myself.
Your file shows that the coordinate variables describing the grid are missing, it contains only time and the variable lai. Without the coordinate variables it is not possible to remap the data.
ncdump -h lai.nc
netcdf lai { dimensions: x = 288 ; y = 432 ; time = UNLIMITED ; // (60 currently) variables: double time(time) ; time:standard_name = "time" ; time:units = "days since 1989-01-01 00:00:00" ; time:calendar = "standard" ; double lai(time, y, x) ; lai:long_name = "LAI from Modis" ; lai:_FillValue = -9999. ; lai:missing_value = -9999. ; // global attributes: :CDI = "Climate Data Interface version 1.6.4 (http://code.zmaw.de/projects/cdi)" ; :Conventions = "CF-1.4" ; :history = "Wed Nov 12 20:43:43 2014: cdo -monavg lai.daily.nc lai.nc" ; :Production = "2014/11/12" ; :CDO = "Climate Data Operators version 1.6.4 (http://code.zmaw.de/projects/cdo)" ; }
-Karin