Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty subset result should maintain dimensions #36

Closed
skorper opened this issue Dec 21, 2021 · 0 comments
Closed

Empty subset result should maintain dimensions #36

skorper opened this issue Dec 21, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@skorper
Copy link
Contributor

skorper commented Dec 21, 2021

When a subset is requested that is outside of the bounds of the input granule, an empty granule is returned. This empty granule is a shell of the input granule and contains all of the same variable attributes, global attributes, etc., but has empty data.

One issue we are seeing however is that the empty granule doesn't maintain its dimensions. Those dimensions should be maintained which will allow the granule to be used with Harmony concatation.

For example:

➜ ncdump -h ascat_20211220_231800_metopb_48038_eps_o_250_3202_ovw.l2.nc4
netcdf ascat_20211220_231800_metopb_48038_eps_o_250_3202_ovw.l2 {
dimensions:
	time = UNLIMITED ; // (0 currently)
	lat = UNLIMITED ; // (0 currently)
	lon = UNLIMITED ; // (0 currently)
	wind_speed = UNLIMITED ; // (0 currently)
	wind_dir = UNLIMITED ; // (0 currently)
variables:
	double time(time) ;
		time:_FillValue = 1.00000001504747e+30 ;
		time:missing_value = 1.e+30 ;
		time:valid_min = 0 ;
		time:valid_max = 2147483647 ;
		time:standard_name = "time" ;
		time:long_name = "time" ;
		time:coordinates = "lat lon" ;
	double lat(lat) ;
		lat:_FillValue = 1.00000001504747e+30 ;
		lat:missing_value = 1.e+30 ;
		lat:valid_min = -9000000 ;
		lat:valid_max = 9000000 ;
		lat:standard_name = "latitude" ;
		lat:long_name = "latitude" ;
		lat:units = "degrees_north" ;
	double lon(lon) ;
		lon:_FillValue = 1.00000001504747e+30 ;
		lon:missing_value = 1.e+30 ;
		lon:valid_min = 0 ;
		lon:valid_max = 36000000 ;
		lon:standard_name = "longitude" ;
		lon:long_name = "longitude" ;
		lon:units = "degrees_east" ;
	double wind_speed(wind_speed) ;
		wind_speed:_FillValue = 1.00000001504747e+30 ;
		wind_speed:missing_value = 1.e+30 ;
		wind_speed:valid_min = 0s ;
		wind_speed:valid_max = 5000s ;
		wind_speed:standard_name = "wind_speed" ;
		wind_speed:long_name = "wind speed at 10 m" ;
		wind_speed:units = "m s-1" ;
		wind_speed:coordinates = "lat lon" ;
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants