Skip to content

Masking/Cropping Meteo data makes data_handling/writenetcdf not work correctly #115

Closed Answered by dubeysarth
dubeysarth asked this question in Q&A
Discussion options

You must be logged in to vote

I was able to figure out the issue. Anyone who bumps into something similar, kindly note that you would have to use netCDF instead of xarray to write the .nc files. When xarray's to_netcdf is used, the metadata changes. An example is below,

  • ds.variables for GSWP3-W5E5 returns
    {'lon': <class 'netCDF4._netCDF4.Variable'> float64 lon(lon) standard_name: longitude long_name: Longitude units: degrees_east axis: X unlimited dimensions: current shape = (720,) filling on, default _FillValue of 9.969209968386869e+36 used, 'lat': <class 'netCDF4._netCDF4.Variable'> float64 lat(lat) standard_name: latitude long_name: Latitude units: degrees_north axis: Y unlimited dimensions: current shape = (360,)…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dubeysarth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant