Skip to content

Conversation

@AntonioTorga
Copy link

Added the chimere model adapter that i also pull request'ed to monetio.
Fixed a minor bug in border definition for spatial_overlay graphs.
Might need to confirm that it was non intended behaviour but when making custom polygons for data filtering and creating a spatial_overlay graph an error occured where a float was expected but an xarray.dataarray (or dataset can't recall now) was provided.
You can check that in other if-statements around the fix the values are set to floats (like when the borders are provided for CONUS or EPA regions)
I just changed the order of the operations so it actually provides the minlat, minlon, ... for the vmodel data.

@rschwant rschwant requested review from blychs and rschwant September 8, 2025 16:07
Copy link
Collaborator

@blychs blychs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.
The only reason I'm not approving it yet is that I believe that the chimere reader hasn't been merged into monetio yet?

'var_list': list_input_var,
"surf_only": control_dict['model'][self.label].get('surf_only', False)
})
self.obj = mio.models._chimere_mm.open_mfdataset(self.files, **self.mod_kwargs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should move away from the _modelname_mm in monetio. These should all be exposed to the main readers

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done! fixed in monetio and the reference in driver

@bbakernoaa
Copy link
Contributor

Once the conflicts are resolved it looks good.

@AntonioTorga
Copy link
Author

Forgot to make it a different pull request. Going to do that in the morning so we can keep a clean git log.

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

Successfully merging this pull request may close these issues.

3 participants