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

unable to read attributes when the size of attribute lists is relatively big #41

Open
jduan8109 opened this issue Feb 27, 2018 · 2 comments

Comments

@jduan8109
Copy link

No description provided.

@jjhelmus
Copy link
Owner

@jduan8109 Can you provide additional details or an example of this behavior? Either would make debugging the issue much easier.

@jduan8109
Copy link
Author

@jjhelmus , thanks. I am trying to load a netcdf4 file in with your code. When i have a short list of attributes in the data like this:
//group attributes
:parent_grid_name = "GERMANY" ;
:number_of_subgrids = "0" ;
:minimum_latitude = "50.85" ;
:maximum_latitude = "51.7" ;
:left_longitude = "12.08333333333333" ;
:right_longitude = "13.5" ;
I have no problem getting all the attributes via calling "xxx.attrs", however, if there is a long list of attributes in the file like below, using "xxx.attrs" will return an empty dict instead.

//group attributes
:parent_grid_name = "GERMANY" ;
:number_of_subgrids = "0" ;
:minimum_latitude = "50.85" ;
:maximum_latitude = "51.7" ;
:left_longitude = "12.08333333333333" ;
:right_longitude = "13.5" ;
:north_south_node_interval = "0.001666666666666667" ;
:east_west_node_interval = "0.08333333333333333" ;
:north_south_node_sequence = "south_to_north" ;
:east_west_node_sequence = "west_to_east" ;
:array_node_order_arrangement_method = "row_major" ;
:number_of_rows = "766" ;
:number_of_columns = "851" ;
:recommended_interpolation_method = "bilinear" ;
:dataset_date_time = "13-01-03" ;
:dataset_begin_date = "13-01-03" ;
:dataset_end_date = "NONE" ;
:dataset_epoch = "2013.163" ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants