One method would be to use the
load_graph command to create a graphic over the flags you want to exclude (e.g. clouds, land). You could then use
mband_cmd to set the pixel values under the graphic to a missing value like "-999" and then output all the data using the
out command. See this
FAQ.
Or, after creating the graphic over flagged pixels with load_graph you could use the
out_ascii command with the
blotch_col option to output only the non-flagged chlorophyll pixels to a text file.