ACT
ACT copied to clipboard
ARM Data API Returns Text when File not Available
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 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 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
Gotcha sounds good
@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?
Nvm yep found it!