Giter VIP home page Giter VIP logo

Comments (6)

andersy005 avatar andersy005 commented on July 20, 2024

With SubX the data will be remote.

Is the data hosted on an OpenDAP server?

from intake-esm-datastore.

andersy005 avatar andersy005 commented on July 20, 2024

Is the data hosted on an OpenDAP server?

I just took a look at the script above, and it appears to be reading the data remotely via xarray+openDAP.

Would it be useful and feasible to build a catalog for SubX ?

Is it feasible? Yes, this is doable today. There was an issue about this on intake-esm issue tracker: intake/intake-esm#175

from intake-esm-datastore.

andersy005 avatar andersy005 commented on July 20, 2024

Here's an example of catalog pointing to an OpenDAP server: http://haden.ldeo.columbia.edu/catalogs/hyrax_cmip6.json

from intake-esm-datastore.

aaronspring avatar aaronspring commented on July 20, 2024

Great. I will give this a try tomorrow. The json file looks like cmip6 data and hopefully the structure can get copied a bit.

Any ideas on running a builder there?

from intake-esm-datastore.

aaronspring avatar aaronspring commented on July 20, 2024

I dont get to the individual nc files: http://iridl.ldeo.columbia.edu/SOURCES/.Models/.SubX/.NCEP/.CFSv2/.forecast/.pr/dods where I cannot look further. Anyone an idea?

import xarray as xr
url = 'http://iridl.ldeo.columbia.edu/SOURCES/.Models/.SubX/.RSMAS/.CCSM4/.hindcast/.zg/dods'
remote_data = xr.open_dataarray(url, chunks={'S': 1, 'L': 1})

source: https://stackoverflow.com/questions/50240123/xarray-mean-of-data-stored-via-opendap

the subX output is already concated together in a useful form with dims (S, L, M, X, Y). sure having model included there would be nice, but the datasets are very heavy. I guess a more simple intake-xarray yaml file also does it fine to start with.

from intake-esm-datastore.

aaronspring avatar aaronspring commented on July 20, 2024
plugins:
  source:
    - module: intake_xarray
sources:
  subX:
    description: SubX
    driver: opendap
    metadata:
      url_origin: http://iridl.ldeo.columbia.edu/SOURCES/.Models/.SubX/
    #cache:
    #  - argkey: urlpath
    #    regex: ''
    #    type: file
    parameters:
      model:
        description: model
        type: str
        default: NCEP
        allowed: [CESM, ECCC, EMC, ESRL, GMAO, NCEP, NRL, RSMAS]
      subdataset:
        description: subdataset
        type: str
        default: 30LCESM1
        allowed: [
          30LCESM1, 46LCESM1, # CESM
          GEM, GEPS5, GEPS6, #ECCC
          GEFS, #EMC
          FIMr1p1, #ESRL
          GEOS_V2p1, # GMAO
          NESM, #NRL
          CCSM4, #RSNAS
        ]
      cast:
        description: hindcast or forecast
        type: str
        allowed: [hindcast, forecast]
      variable:
        description: variable name
        type: str
        default: ts
        allowed: [ts, zg, va, ua, tas, rlut, pr, hfls, hfss, huss, mrso, psl, rad, ROMI, snc, stx, sty, swe, tasmax, tasmin, uas, vas, wap]
    args:
      urlpath: http://iridl.ldeo.columbia.edu/SOURCES/.Models/.SubX/.{{model}}/.{{subdataset}}/.{{cast}}/.{variable}/dods
      chunks: {'S': 1, 'L': 1}

from intake-esm-datastore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.