Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
blaylockbk committed Apr 20, 2024
1 parent a139067 commit cccdaf9
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions docs/user_guide/tutorial/search.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 🪂 Subset with `searchString`

Subsetting is done using the GRIB2 index files. Index files define the grib variables/parameters of each message (sometimes it is useful to think of a grib message as a "layer" of the file) and define the byte range of the message.
Message subsetting is done using the GRIB2 index files. Index files define the grib variables/parameters of each message (sometimes it is useful to think of a grib message as a "layer" of the file) and define the byte range of the message.

Herbie can subset a file by grib message by downloading a byte range of the file. This way, instead of downloading the full file, you can download just the "layer" of the file you want. The searchString method implemented in Herbie to do a partial download is similar to what is explained in the [wgrib2 docs](https://www.cpc.ncep.noaa.gov/products/wesley/fast_downloading_grib.html).

Expand All @@ -17,13 +17,6 @@ You can use regular expression to search for lines in the index file. If `H` is

Here are some examples you can use for the `searchString` argument for the **wgrib2**-style index files.

`":TMP:2 m"`
: Temperature at 2 m.

`":TMP:"`
: Temperature fields at all levels.


| `searchString=` | GRIB messages that will be downloaded |
| --------------------------------------- | --------------------------------------------------------- |
| `":TMP:2 m"` | Temperature at 2 m. |
Expand Down

0 comments on commit cccdaf9

Please sign in to comment.