[RELEASE] Podaacpy 2.2.0

[RELEASE] Podaacpy 2.2.0

Postby lmcgibbn » Wed Nov 07, 2018 7:19 pm

Hi Folks,

We are happy to announce release and immediate availability of Podaacpy [0] 2.2.0. Please cross post this to any list who would be interested in using PO.DAAC data via a common, user friendly Python API.

What is Podaacpy?
A python utility library for interacting with NASA JPL's PO.DAAC. Full documentation can be found at [1]. The 2.2.0 release includes full Python API support for PO.DAAC Drive - https://podaac-tools.jpl.nasa.gov/drive/.
Additionally, this release is a follow-up to the recent NASA Earthdata podcast "Goodbye FTP, New Ways to Access NASA's Physical Oceanography Data at PO.DAAC" which featured Podaacpy. The podcast can be found at https://www.youtube.com/watch?v=kd8yjl6YiH8

How can I install Podaacpy?
Podaacpy is available through Pip and Conda package managers, more information can be found at [2]. Between Pypi and Conda, Podaacpy has been downloaded around 100K times.

Community
Please report any issues to the Podaacpy issue tracker at [3].

License
Podaacpy is licensed permissively under the Apache License v2.0, more information can be found at [4].

Best
Lewis

[0] https://github.com/nasa/podaacpy
[1] http://podaacpy.readthedocs.io/en/latest/
[2] https://github.com/nasa/podaacpy#installation
[3] https://github.com/nasa/podaacpy#commun ... evelopment
[4] https://github.com/nasa/podaacpy#license
lmcgibbn
 
Posts: 56
Joined: Wed Feb 17, 2016 9:36 pm

Re: [RELEASE] Podaacpy 2.2.0

Postby waanko » Sat Dec 01, 2018 7:50 am

Hello
I want to extract wave, current and wind (10 meters) from Jason1-2 satellites images.
How can I do this?
e-mail:vaanko@engineer.com
waanko
 
Posts: 1
Joined: Sat Nov 17, 2018 12:19 pm

Re: [RELEASE] Podaacpy 2.2.0

Postby lmcgibbn » Mon Dec 03, 2018 7:27 pm

Hi waanko,
I'm working with the Data Engineering team to identify dataset(s) which include the parameters you need. Once I find the dataset(s), I'll write some example Python code for you.
Thanks for your patience.
Lewis
lmcgibbn
 
Posts: 56
Joined: Wed Feb 17, 2016 9:36 pm

Re: [RELEASE] Podaacpy 2.2.0

Postby ocecept » Wed Feb 06, 2019 5:12 am

I trying to download MUR data doing a subset for an area and time.

I was able to find the granules, paths, etc using:

result=p.granule_search(dataset_id='PODAAC-GHGMR-4FJ04', bbox='0,0,180,90',start_time='2013-01-01T01:30:00Z',end_time=
'2014-01-01T00:00:00Z',start_index='1')

I can not find how to download the data. The examples of Podaacpy do not show how to do it.

I tried p.granule_subset but I do not know how to enter the information from p.granule_search in p.granule_subset.

Can you show us an example of how to download a subset?

Best regards;

Carlos
ocecept
 
Posts: 2
Joined: Wed Feb 06, 2019 4:45 am

Re: [RELEASE] Podaacpy 2.2.0

Postby lmcgibbn » Wed Feb 06, 2019 9:22 am

Hi Carlos,
As you can see from your code so far, the response indicates quite a few hits
Code: Select all
   <opensearch:totalResults>365</opensearch:totalResults>
   <opensearch:startIndex>1</opensearch:startIndex>
   <opensearch:itemsPerPage>7</opensearch:itemsPerPage>

There a few ways you can work with the granules you find

Download full Granules with Drive
Code: Select all
#First lets import the libraries we require
from pprint import pprint
from podaac import podaac as podaac
from podaac import podaac_utils as utils
from podaac import drive as drive

#Then we can create instances of the classes we will use
p = podaac.Podaac()
u = utils.PodaacUtils()
#make sure you encode your details in podaac.ini or passed explicitly, an example can be seen at https://podaacpy.readthedocs.io/en/latest/drive.html#drive.Drive
d = drive.Drive('podaac.ini', None, None)

#Here's the actual granule names
pprint(u.mine_granules_from_granule_search(granule_search_response=str(result)))

#Now we simply need to reproduce the Drive URL's for the above granules.
granules = d.mine_drive_urls_from_granule_search(granule_search_response=(str(result)))
pprint(granules)

#Let's retrieve these granules from PO.DAAC Drive.
#Note that the download_granules function actually decompresses
#and removes the compressed archive files locally for us.
d.download_granules(granule_collection=granules, path='.')


Please let me know if this works for you... happy to help more. Thank you
Lewis
lmcgibbn
 
Posts: 56
Joined: Wed Feb 17, 2016 9:36 pm

Re: [RELEASE] Podaacpy 2.2.0

Postby ocecept » Wed Feb 06, 2019 11:47 am

Hi Lewis;

Thanks for your replay. I was able to download the data. My problem was in the podaac.ini file. I was using the wrong user and password.

After I accessed https://podaac-tools.jpl.nasa.gov/drive/ I was able to retrieve the encrypted password.

Using the right podaac.ini I was able to download the MUR data for the entire globe.

Is it possible to subset the MUR L4 data for an specific area?

i looked in all examples in https://github.com/nasa/podaacpy/blob/master/examples/ but cold not find how to do it.

Many thanks

Carlos
ocecept
 
Posts: 2
Joined: Wed Feb 06, 2019 4:45 am

Re: [RELEASE] Podaacpy 2.2.0

Postby lmcgibbn » Wed Feb 06, 2019 1:05 pm

Hi Carlos,
Right now unfortunately PO.DAAC provides no way to subset level 4 data via a dedicated Webservice (such as L2SS for level 2 or LAS for level 3).
You may wish to try this via OPeNDAP or THREDDS...
An example for THREDDS can be found at https://www.unidata.ucar.edu/software/thredds/current/tds/reference/NetcdfSubsetServiceReference.html.
Hope this helps.
Lewis
lmcgibbn
 
Posts: 56
Joined: Wed Feb 17, 2016 9:36 pm

Re: [RELEASE] Podaacpy 2.2.0

Postby yiboj » Mon Feb 11, 2019 8:31 am

Hi Carlos,

PODAAC Forum has a post on how to subset and download the Level 3/4 dataset granules including MUR dataset. Please check the following link:

viewtopic.php?f=85&t=219

Regards,

PODAAC DE
yiboj
 
Posts: 88
Joined: Mon Mar 30, 2015 11:22 am


Return to Data Recipes