AustralianAntarcticDivision / raadfiles

Data library management tools for files
https://australianantarcticdivision.github.io/raadfiles/
2 stars 1 forks source link

biig update for vapour/warp #24

Open mdsumner opened 3 years ago

mdsumner commented 3 years ago

NOTES

These are the different kinds of things (still need update from notes above, see new VRTDataset capability coming to vapour)

AMPS, CFA, CMIP,

see this tweet, I don't yet know how to nominate the X/Y arrays for the warper, but it's totally doable (probably by sending options into a VRTDataset

i.e. https://github.com/OSGeo/gdal/commit/8adcb58393b224e100bebad3a92cb135eb893db2

this tweet does the barycentric interpolation from the longlat arrays (for truly curvilinear data like CMIP, some ROMS) https://twitter.com/mdsumner/status/1469151164952285188?s=20&t=ft6taP_h8fhB0QUc9Q2cEw - I don

AMPS is really an "assign the grid" problem, more basic VRT

FAST ICE

LEADS

these files are stereographic - flipped, so we need a vrt wrap that first flips by warping, and then warps from that, can the files columns encode that stuff (with ymax < ymin)

... this works note the wonky a_ullr (y-up)

gdal_translate NETCDF:"/rdsi/PUBLIC/raad/data/store.pangaea.de/Publications/ReiserF-etal_2020/Antarctic_Relleads_2003_2019.nc":LeadFrequency -of VRT -a_ullr -3950000 -3950000 3950000 4350000  -a_srs EPSG:3031 leads.vrt

## leads.vrt can now be used directly by raster/stars/terra/vapour-warper

NCEP2 winds

These need expanding, currently we only get the first date of the year so raadtools must be expanding the list

NSIDC ice binary files

a VRT string, see https://github.com/mdsumner/NSIDC-seaice/blob/master/nt_20130114_f17_v01_s.vrt

ALTIMETRY

these are easy, but we need two sets of extents sometimes 180 sometimes 360 see NOTES above

ARGO files

probably forget forever and follow Dewey

BSOSE files

complicated like AMPS but maybe not too bad, I think we need raster GCPs for this one

CAFE

easy, lon180 same as oisst_daily

FSLE

easy, lon180

SST

GEOID

these are fine, ADF files (will benefit from multiple sources - tiles - to the warper)

AMSR

these are HDF or TIF

NCEP2

(not done, just notes)

raymondben commented 3 years ago

FWIW NCEP2 files are structured as one file per year for 6-hourly/daily data, and a single file for monthly

mdsumner commented 2 years ago

a lot of this has moved on, we can currently cover a lot of this with vapour_vrt, and others may be best covered by additions to GDAL.

see updated workflow here for an example of how vapour_vrt can help us: https://github.com/AustralianAntarcticDivision/raadtools/issues/126

to be even more flexible, we need the "vrt:// " support that is a future improvement in GDAL itself.

mdsumner commented 2 years ago

the vapour_vrt way is now quite stable, I'm experimenting with

a lot of this has been stalled because vapour dramas on CRAN, but now looking stable (notably the UBSAN checks and stricter compiler warnings Wconversion from ARM are now cleaned up)