I was working on this JIRA:  CLIMATE-744
<https://issues.apache.org/jira/browse/CLIMATE-744>.  A call to RCMED for
TRMM throws an error about not being able to reshape the data.

I wrote the following based on the info given in the JIRA:

from datetime import datetime as dt
start_time = dt.strptime('1990-01-01', '%Y-%m-%d')
end_time = dt.strptime('2007-12-31', '%Y-%m-%d')
TRMM = rcmed.parameter_dataset(3, 36, -45.76, 42.24, -24.64, 60.28,
start_time, end_time)

In rcmed.py  _get_data, the call to urlopen returned a different amount of
data on each run of the program.

I repeatedly ran the following URL in my browser and each run also returned
a different amount of data.

https://rcmes.jpl.nasa.gov/query-api/query.php?datasetId=3&parameterId=36&latMin=-45.76&latMax=42.24&lonMin=-24.64&lonMax=60.28&timeStart=19900101T0000Z&timeEnd=20071231T0000Z

When I constrain the dates to a smaller range, one year, the same number of
results are returned consistently with each run of the program.

Does RCMED, by any chance, have any constraints on the amount of data that
can be returned?

Thanks,

Michael A. Anderson

Reply via email to