ACT icon indicating copy to clipboard operation
ACT copied to clipboard

ARM Data API Returns Text when File not Available

Open AdamTheisen opened this issue 3 years ago • 5 comments
trafficstars

I tried to download gucceilpblhtM1.a0 but it's not available through the webservice due to it being an a0-level file. Instead the API returned text that was included in the file. We should put in a check to ensure that these cases are caught and files are not produced.

This data file is not available on /data/archive.  To download this file, please an order via Data Discovery. https://adc.arm.gov/discovery

AdamTheisen avatar Sep 27 '22 13:09 AdamTheisen

@AdamTheisen So files produced, so you want this instead to catch the warning, warn the user and just return from the function without writing anything?

zssherman avatar Oct 11 '22 15:10 zssherman

@zssherman yes, if the data are not available, we wouldn't want to write the files and would instead return the message as an error. Right now, it just gives the false sense that it's downloading files

AdamTheisen avatar Oct 11 '22 16:10 AdamTheisen

Gotcha sounds good

zssherman avatar Oct 11 '22 17:10 zssherman

@AdamTheisen So for the datetime i chose for that dataset it returned 2 netcdf files. Are these the files you mentioned? I did not get that message though or is the message in these files?

zssherman avatar Oct 11 '22 17:10 zssherman

Nvm yep found it!

zssherman avatar Oct 11 '22 17:10 zssherman