Closed benbovy closed 3 years ago
Yeah that's a bit unfortunate, but on the other hand it would be a bit overkill to create a pydantic model (with an example) just for the fieldnames parameter.
Maybe we could make it optional (by default return extracted values for all data variables in dataset)?
The example should work now without any modification.
Looks great now!
We could do a better job at handling errors (for example, a bad fieldname will return a internal server error
), but this could be done later.
I'm going to merge this.
Actually, I don't have commit rights on this repo so I can't merge it :)
@benbovy I've given you maintainer status here. Lets see if this helps.
Great, thanks!
This simplifies things:
/docs
API endpoint. @alirezamdv I think it will be much easier for you to use this rather than going through the previous examples shown in a jupyter notebook.Also closes #6. The
/esm/extract_tracks
endpoint now returns GeoJSON formatted data, just like input data (field values are returned as feature properties).TODO:
SupportWill be done in a follow-up PR.MultiLineString
features.