Error using remapbil: Unsupported generic coordinates (Variable: E)!
Added by Diego Araujo over 1 year ago
Hello!
I need some help.
I have a file with global evaporation data from GLEAM, with daily data. I need to clip this global file to an area of interest (northern part of Morocco). I created a .nc file in QGIS using the original GLEAM file, but clipping it just to the area of interest. Now, I need to clip the original file (since the clipped file in QGIS doesn't have all the daily data layers, i.e., 365 days of data).
I was trying to follow this procedure to match the projections and then clip:
- regrid
cdo remapbil,e_gleam_2017.nc mask_morocco.nc remap_mask_morocco.nc
- mask
cdo ifthen remap_mask_morocco.nc e_gleam_2017.nc masked_e_gleam_2017.nc
The error is: Unsupported generic coordinates (Variable: E)!
Does anyone know how I can resolve? Or is this the wrong way to clip?
Attached you can find the reference file (mask_morocco.nc) and the file to be cut (in the attachment is the annual total, as files with daily data exceed the maximum size, but the structure is the same)
masked_morocco.nc (10.2 KB) masked_morocco.nc | |||
e_gleam_2017.nc (4 MB) e_gleam_2017.nc |
Replies (2)
RE: Error using remapbil: Unsupported generic coordinates (Variable: E)! - Added by Karin Meier-Fleischer over 1 year ago
Hi Diego,
the file dimensions lon and lat do not have a units attribute. You can add it with NCO's ncatted before you do the remapping and masking.
ncatted -O -a units,lon,c,c,"degrees_east" -a units,lat,c,c,"degrees_north" e_gleam_2017.nc cdo -remapbil,e_gleam_2017.nc masked_morocco.nc remap_mask_morocco.nc cdo -ifthen remap_mask_morocco.nc e_gleam_2017.nc masked_e_gleam_2017.nc
RE: Error using remapbil: Unsupported generic coordinates (Variable: E)! - Added by Diego Araujo over 1 year ago
Thank you, Karin.
It works perfectly.