Quickstart

Basic stuff

As a starter we will play with AVHRR L2P METOP product by OSI SAF.

Initialize a product index

We create first a quick index without any specific priorities. The index stores the spatial (shape) and temporal (time range) of each product granule.

We use the naiad-create_index command line tool:

naiad-create-index --elasticsearch http://localhost:9200/ avhrr_sst_metop_a-osisaf-l2p-v1.0

Tile some granules

We have to extract the global shape and time frame from the granules and the tiles constituting these granules.

We use the naiad-tile command line tool:

naiad-tile 20100123-EUR-L2P_GHRSST-SSTsubskin-AVHRR_METOP_A-eumetsat_sstmgr_metop02_20100123_000103-v01.7-fv01.0.nc GHRSSTNCFile --show --xstep=540 --ystep=540

For more information on this, refer to naiad-tile command in details.

Register the granules

Simply ingest the content of the tile files generated above with naiad-register command:

naiad-register avhrr_sst_metop_a-osisaf-l2p-v1.0 20100123-EUR-L2P_GHRSST-SSTsubskin-AVHRR_METOP_A-eumetsat_sstmgr_metop02_20100123_000103-v01.7-fv01.0.nc.tiles

Get a granule description and display

We can get the description of a previously registered granule and also display its shape on a map using naiad-granule-info command:

naiad-granule-info ascat_a ascat_20100820_080601_metopa_19899_eps_o_coa_1100_ovw.l2.nc --show

Do a cross search (colocation)

We want to keep only the granules from different products that cross each other within a time window.

One product, given by --cross argument is considered as the “reference” sensor, the one with which all other products, given by --versus argument must match within the time window given by --time_window:

naiad-cross-search --cross amsr2 --versus srl_oprssha_2 --time_window=720

You can display the crossovers one by one with --show option:

naiad-cross-search --cross amsr2 --versus srl_oprssha_2 --time_window=720 --show
_images/crossover.png

Use --full_footprint option in addition to display the full footprint of the colocated granules(usefull for checking).

naiad-cross-search --cross amsr2 --versus srl_oprssha_2 --time_window=720 --full_footprint --show
_images/crossover_fullprint.png

Some more commands

Delete an index

This will delete the index and all registered granules and tiles. Use with caution.

curl -XDELETE http://localhost:9200/avhrr_sst_metop_a-osisa-l2p-v1.0/