From brideout at haystack.mit.edu Tue Apr 13 13:13:18 2010 From: brideout at haystack.mit.edu (Bill Rideout) Date: Tue, 13 Apr 2010 13:13:18 -0400 Subject: [OpenMadrigal-developers] New Madrigal Calculator web service - madCalculator2 In-Reply-To: <40017CA7-1548-492D-A505-E05B6E874978@haystack.mit.edu> References: <40017CA7-1548-492D-A505-E05B6E874978@haystack.mit.edu> Message-ID: <6833428D-B491-4E56-9D69-E4E5832F6930@haystack.mit.edu> Phil has asked me to supply one additional madCalculator service. This service will effectively allow you to call madCalculator2 multiple times using multiple input times with a single API call. Right now both madCalculator and madCalculator2 operate on only one time at a time. As with madCalculator, the difference will only be in performance. Calling madCalculator3 for a series of different times will be much faster than calling madCalculator2 independently for each time. The arguments for madCalculator3 will essentially be the same as madCalculator2, except that every individual argument for madCalcultor2 will instead be a list of arguments for madCalculator3, where the list length is the number of times being passed in. For example, one argument of madCalculator2 is a list of latitudes. For madCalculator3, that argument will instead be a list of lists of latitudes, one for each input time. For madCalculator3, all the position arrays will be independent; that is, they can be different from one time to the next. The requested parameters, however, will not change for each time requested. Again, for the moment, this webService will only be available via the python remote API. The matlab version will be written on as-needed basis. Bill Rideout On Mar 31, 2010, at 10:51 AM, Bill Rideout wrote: > Right now Madrigal has a web service that allows uses to run the > Madrigal derivation engine for a grid of points in space, where the > grid is defined by start, stop, and step geodetic latitudes, > longitudes, and altitudes. Phil Erickson has request a new web > service that provides the same service for a random collection of > points in space. This can be accomplished today by repeatedly > calling the existing madCalculator service, but this can be quite > slow due to the set-up time often required to run the Madrigal > derivation engine. This existing web service is documented at: > > http://madrigal.haystack.mit.edu/madrigal/madpyDoc/services/madCalculatorService.py.html > > For the new web service, instead of a grid being specified, the user > will supply lists of geodetic latitudes, longitudes, and altitudes. > The new web service will be called madCalculator2, to emphasize its > similarity to the existing service. I will immediately release a > new version of the python remote Madrigal API that will be able to > use this service on the Millstone Madrigal server. This service > will be accessible from all other Madrigal servers after the next > release. A Matlab remote Madrigal API will follow later. > > Bill Rideout