Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Empty resource is created when data are not available #317

Closed
HelenClifton opened this issue Aug 4, 2017 · 10 comments
Closed

Empty resource is created when data are not available #317

HelenClifton opened this issue Aug 4, 2017 · 10 comments
Assignees
Milestone

Comments

@HelenClifton
Copy link

Expected behavior

When opening a local dataset: If a time constraint is selected for which no data are available, a warning should be given to the user and a resource should not be opened.

Actual behavior

A resource of type NoneType is created. This is confusing for the user.

Steps to reproduce the problem

1.In the remote data sources list, select esacci.CLOUD.mon.L3C.CLD_PRODUCTS.multi-sensor.multi-platform.ATSR2-AATSR.2-0.r1 and click “download and/or open remote dataset” button
In “Download Data Source” window:
• Select Time Constraint: 2007-01-01 to 2007-04-01
• Select Region Constraint: Longititude from -100 to 100, Latitude from -60 to 60
• Select Variables from the list: cee, cee_corr_unc, cee_prop_unc, cee_std, cee_unc
• Check “Download and make local data source“
• Leave the unique identifier as the default value
• Ensure “Open dataset from local data source“ is not selected
• Click “Download & Open Local“

2.Wait for download to complete then in the local data sources list, select
local.CLOUD.mon.L3C.CLD_PRODUCTS.multi-sensor.multi-platform.ATSR2-AATSR.2-0.r1
Click “Open local dataset” button
In “Open Local Dataset” window:
• Select Time Constraint: 2007-01-01 to 2007-01-15
• Click on "Open Local"

hc 052 1

4.Look at Workspace panel. New resource has been created of type NoneType .

hc 052 2

Specifications

Cate 0.9.0-dev.4
Windows 7 Professional

@mzuehlke
Copy link
Collaborator

See

kbernat pushed a commit that referenced this issue Aug 22, 2017
@kbernat kbernat self-assigned this Aug 22, 2017
@kbernat kbernat added this to the IPM6 milestone Aug 22, 2017
kbernat added a commit that referenced this issue Aug 24, 2017
* #218, #269, #317 do not create empty datasources

* #218, #269, #317 do not create empty datasources, added tests

* #218, #269, #317 upadated make_local method signature
@kbernat
Copy link
Collaborator

kbernat commented Sep 6, 2017

Checked with CLI, Seems to be fixed.

@mzuehlke
Copy link
Collaborator

mzuehlke commented Sep 7, 2017

The error is still present because open_datasource returns None.

@mzuehlke mzuehlke removed the cu_review label Sep 7, 2017
@kbernat
Copy link
Collaborator

kbernat commented Sep 7, 2017

@mzuehlke , @forman
what is expected behaviour when user select timerange out for available temporal coverage of product?

@kbernat
Copy link
Collaborator

kbernat commented Sep 7, 2017

#351 should fix it now..

@mzuehlke
Copy link
Collaborator

mzuehlke commented Sep 7, 2017

Have you tested it ?

@forman
Copy link
Member

forman commented Sep 15, 2017

Removed cu_mandatory because it is implied by cu_review

@forman forman modified the milestones: IPM6, 1.0 Sep 21, 2017
@HelenClifton
Copy link
Author

Still seen in 0.9.0-dev.7, will retest in 1.0.0

@kbernat
Copy link
Collaborator

kbernat commented Sep 26, 2017

Will handle properly when #393 is done.

@HelenClifton
Copy link
Author

Confirmed it is fixed in cate 1.0.0-dev.2. It gives a warning instead.

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

No branches or pull requests

4 participants