This simple python script is used to subset and download L2/L2P datasets from the PODAAC server. The script in the previous post "Using Python to subset large gridded datasets (v2)" is mainly for L3/L4 dataset subsetting. The L2 subsetting script uses pydap package, and combines the PODAAC web granule spatial and temporal search service, and the OPeNDAP to subset and download most of the Level 2 and 2P datasets from PODAAC server.
Please note that you have to have the python software, pydap package, wget or curl installed on the computer.
You can download the script subset_dataset_l2.py here.
For example, to extract REMSS TMI data from 2010-01-01 to 2010-02-01 for a region bounded by -140 to -110 degrees longitude and -30 to 30 degrees latitude, this request can be made on the UNIX command line:
% python subset_dataset_l2.py -s 20100101 -f 20100201 -b -140 -110 -30 30 -x TMI-REMSS-L2P-v4
where TMI-REMSS-L2P-v4 is the short name for REMSS TMI dataset. Shortname is the required field for the script to run and the script will print out the help menu without the shortname. Shortname can be found from PODAAC web portal.