argopy.stores.indexfilter_box¶
- class indexfilter_box(BOX: list = [], **kwargs)[source]¶
Index filter based on LATITUDE, LONGITUDE, DATE
This is intended to be used by instances of an indexstore
Examples
# Create filters: filt = indexfilter_box(BOX=[-70, -65, 30., 35.]) filt = indexfilter_box(BOX=[-70, -65, 30., 35., ‘2012-01-01’, ‘2012-06-30’])
# Filter name: print(filt.uri)
- # Direct usage:
- with open(“/Volumes/Data/ARGO/ar_index_global_prof.txt”, “r”) as f:
results = filt.run(f)
- # With the indexstore:
indexstore(cache=1, index_file=”/Volumes/Data/ARGO/ar_index_global_prof.txt”).read_csv(filt)
- __init__(BOX: list = [], **kwargs)[source]¶
Create Argo index filter for LATITUDE, LONGITUDE, DATE
- Parameters
- boxlist(float, float, float, float, str, str)
The box domain to load all Argo data for: box = [lon_min, lon_max, lat_min, lat_max, datim_min, datim_max]
Methods
__init__
([BOX])Create Argo index filter for LATITUDE, LONGITUDE, DATE
run
(index_file)Run search on an Argo index file
search_latlon
(index)Search
search_latlontim
(index)Search
search_null
(index)Perform a null search, ie return the full argo index file
search_tim
(index)Search
Attributes
sha
Unique filter hash string
uri
Return a unique name for this filter instance