Masking/Cropping Meteo data makes data_handling/writenetcdf not work correctly #115
-
I was exploring how to set the model up for regions of interest using the observation data for the variables available and climate data for those that aren't. I keep encountering this error: I have been able to use the model so far, achieve calibration and validation in Danube, and get some outputs for Indian basins using GSWP3-W5E5.
The exact log is as follows: The first file it tries to create for me is 'Rain_daily.nc' and it shows weird lon values which are PS: I tried making edits to data_handling by using set_fill_off, adding fill_value to each createVariable but the error persisted. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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,
|
Beta Was this translation helpful? Give feedback.
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,
{'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,)…