Skip to content

[Feature Request] Give users finer control over chunking when computing optical properties #191

@dhjx1996

Description

@dhjx1996

Is your feature request related to a problem? Please describe.
When calling

clouds_optical_props = cloud_optics.compute_cloud_optics(
    atmosphere, problem_type="two-stream",
)

the chunking of the resultant clouds_optical_props is different from the chunking of atmosphere and that seems to be the cause of memory problems downstream.

Describe the solution you'd like
The chunking of atmosphere should be maintained and carried over into clouds_optical_props (I suggest the same for compute_gas_optics though I did not test that function).

Describe alternatives you've considered
Alternatively, give users finer control over the chunking in compute_cloud_optics, compute_gas_optics and similar functions.

Additional context
Screenshots of the situation I encountered are attached. Notice that (Ydim, Xdim) of atmosphere is (180, 180) whereas (Ydim, Xdim) of clouds_optical_props is (12, 2880).

Image

Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions