Open
Conversation
849e94a to
32b6740
Compare
5e4b9c4 to
1d50098
Compare
1d50098 to
e52d9dd
Compare
e52d9dd to
813e66f
Compare
Contributor
Author
|
Here is a before and after diff of the header file changes (ignoring history logs) (NOW OUTDATED): --- /dev/fd/63 2024-10-21 17:08:37.446300304 +1100
+++ /dev/fd/62 2024-10-21 17:08:37.446300304 +1100
@@ -1,4 +1,4 @@
-netcdf gridinfo_out_main {
+netcdf gridinfo_out_add-bios-provenance-information {
dimensions:
latitude = 670 ;
longitude = 813 ;
@@ -147,57 +147,91 @@
crs:spatial_ref = "GEOGCS[\"GDA94\",DATUM[\"Geocentric_Datum_of_Australia_1994\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"6283\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\",\"4283\"]]" ;
crs:GeoTransform = "112.925 0.05 0 -10.075 0 -0.05 " ;
float silt(latitude, longitude) ;
- silt:long_name = "GDAL Band Number 1" ;
+ silt:long_name = "UM soil texture - silt fraction" ;
silt:_FillValue = -9999.f ;
silt:grid_mapping = "crs" ;
+ silt:units = "1" ;
+ silt:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ silt:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float clay(latitude, longitude) ;
- clay:long_name = "GDAL Band Number 1" ;
+ clay:long_name = "UM soil texture - clay fraction" ;
clay:_FillValue = -9999.f ;
clay:grid_mapping = "crs" ;
+ clay:units = "1" ;
+ clay:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ clay:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float sand(latitude, longitude) ;
sand:_FillValue = -9999.f ;
sand:grid_mapping = "crs" ;
- sand:long_name = "GDAL Band Number 1" ;
+ sand:long_name = "UM soil texture - sand fraction" ;
+ sand:units = "1" ;
+ sand:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ sand:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float css(latitude, longitude) ;
- css:long_name = "GDAL Band Number 1" ;
+ css:long_name = "Soil specific heat capacity" ;
css:_FillValue = -9999.f ;
css:grid_mapping = "crs" ;
+ css:units = "J/kg/K" ;
+ css:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ css:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float sfc(latitude, longitude) ;
- sfc:long_name = "GDAL Band Number 1" ;
+ sfc:long_name = "VOL SMC AT CRIT PT" ;
sfc:_FillValue = -9999.f ;
sfc:grid_mapping = "crs" ;
+ sfc:units = "m3 m-3" ;
+ sfc:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ sfc:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float rhosoil(latitude, longitude) ;
- rhosoil:long_name = "GDAL Band Number 1" ;
+ rhosoil:long_name = "SOIL BULK DENSITY" ;
rhosoil:_FillValue = -9999.f ;
rhosoil:grid_mapping = "crs" ;
+ rhosoil:units = "kg/m^3" ;
+ rhosoil:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ rhosoil:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float bch(latitude, longitude) ;
bch:_FillValue = -9999.f ;
bch:grid_mapping = "crs" ;
- bch:long_name = "GDAL Band Number 1" ;
+ bch:long_name = "CLAPP-HORNBERGER B COEFFICIENT" ;
+ bch:units = "1" ;
+ bch:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ bch:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float hyds(latitude, longitude) ;
hyds:_FillValue = -9999.f ;
hyds:grid_mapping = "crs" ;
- hyds:long_name = "GDAL Band Number 1" ;
+ hyds:long_name = "SAT SOIL CONDUCTIVITY" ;
+ hyds:units = "m/s" ;
+ hyds:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ hyds:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float ssat(latitude, longitude) ;
ssat:_FillValue = -9999.f ;
ssat:grid_mapping = "crs" ;
- ssat:long_name = "GDAL Band Number 1" ;
+ ssat:long_name = "VOL SMC AT SATURATION" ;
+ ssat:units = "1" ;
+ ssat:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ ssat:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float swilt(latitude, longitude) ;
swilt:_FillValue = -9999.f ;
swilt:grid_mapping = "crs" ;
- swilt:long_name = "GDAL Band Number 1" ;
+ swilt:long_name = "VOL SMC AT WILTING" ;
+ swilt:units = "1" ;
+ swilt:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ swilt:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float sucs(latitude, longitude) ;
sucs:_FillValue = -9999.f ;
sucs:grid_mapping = "crs" ;
- sucs:long_name = "GDAL Band Number 1" ;
+ sucs:long_name = "SATURATED SOIL WATER SUCTION" ;
+ sucs:units = "m" ;
+ sucs:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ sucs:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
int mvg(latitude, longitude) ;
mvg:_FillValue = -9999 ;
mvg:grid_mapping = "crs" ;
- mvg:long_name = "GDAL Band Number 1" ;
+ mvg:long_name = "NVIS major vegetation group (v5.0)" ;
float c4frac(latitude, longitude) ;
- c4frac:long_name = "GDAL Band Number 1" ;
+ c4frac:long_name = "Fractional cover of C4 grass" ;
c4frac:_FillValue = -9999.f ;
c4frac:grid_mapping = "crs" ;
+ c4frac:units = "1" ;
// global attributes:
:title = "CABLE gridinfo file reconciled with CRU forcing" ;
@@ -210,7 +244,7 @@
"/home/189/sb8430/gists/regrid_aus_05x05_to_005x005.sh: Clip to Australian region and subsample from 0.5 degrees resolution to 0.05 degrees using nearest neighbour interpolation. 21.10.2024\n",
"One iveg and patchfrac dimension added for savanna-tiling. L. Nieradzik 11/2015" ;
:map_file = "map_05x05_to_005x005_neareststod.nc" ;
- :input_file = "gridinfo_out_main.nc" ;
+ :input_file = "gridinfo_out_add-bios-provenance-information.nc" ;
"Wed May 31 00:52:23 2023: ncrename -v Band1,c4_grass_frac_cov c4_grass_frac_cov.nc\n",
"Wed May 31 00:31:01 2023: GDAL CreateCopy( c4_grass_frac_cov.nc, ... )\n",
"Wed May 31 00:52:32 2023: ncrename -v Band1,nvis5pre1750grp nvis5pre1750grp.nc\n", |
|
A few notes from me:
|
Contributor
Author
|
@AlisonBennett Thanks for taking a look. I've set the |
5ff5604 to
aad786c
Compare
|
I made the changes in the references for --- /dev/fd/63 2025-01-22 14:59:29.404801158 +1100
+++ /dev/fd/62 2025-01-22 14:59:29.404801158 +1100
@@ -1,4 +1,4 @@
-netcdf gridinfo_CSIRO_CRU005x005_4tiles {
+netcdf gridinfo_CSIRO_CRU005x005_4tiles_v2_with_provenance {
dimensions:
latitude = 670 ;
longitude = 813 ;
@@ -147,214 +147,226 @@
crs:spatial_ref = "GEOGCS[\"GDA94\",DATUM[\"Geocentric_Datum_of_Australia_1994\",SPHEROID[\"GRS 1980\",6378137,298.257222101,AUTHORITY[\"EPSG\",\"7019\"]],AUTHORITY[\"EPSG\",\"6283\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\",\"4283\"]]" ;
crs:GeoTransform = "112.925 0.05 0 -10.075 0 -0.05 " ;
float silt(latitude, longitude) ;
- silt:long_name = "GDAL Band Number 1" ;
+ silt:long_name = "UM SOIL TEXTURE - SILT FRACTION" ;
silt:_FillValue = -9999.f ;
silt:grid_mapping = "crs" ;
+ silt:units = "1" ;
+ silt:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ silt:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float clay(latitude, longitude) ;
- clay:long_name = "GDAL Band Number 1" ;
+ clay:long_name = "UM SOIL TEXTURE - CLAY FRACTION" ;
clay:_FillValue = -9999.f ;
clay:grid_mapping = "crs" ;
+ clay:units = "1" ;
+ clay:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ clay:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float sand(latitude, longitude) ;
sand:_FillValue = -9999.f ;
sand:grid_mapping = "crs" ;
- sand:long_name = "GDAL Band Number 1" ;
+ sand:long_name = "UM SOIL TEXTURE - SAND FRACTION" ;
+ sand:units = "1" ;
+ sand:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ sand:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float css(latitude, longitude) ;
- css:long_name = "GDAL Band Number 1" ;
+ css:long_name = "SOIL SPECIFIC HEAT CAPACITY" ;
css:_FillValue = -9999.f ;
css:grid_mapping = "crs" ;
+ css:units = "J/kg/K" ;
+ css:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ css:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float sfc(latitude, longitude) ;
- sfc:long_name = "GDAL Band Number 1" ;
+ sfc:long_name = "VOL SMC AT CRIT PT" ;
sfc:_FillValue = -9999.f ;
sfc:grid_mapping = "crs" ;
+ sfc:units = "1" ;
+ sfc:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ sfc:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float rhosoil(latitude, longitude) ;
- rhosoil:long_name = "GDAL Band Number 1" ;
+ rhosoil:long_name = "SOIL BULK DENSITY" ;
rhosoil:_FillValue = -9999.f ;
rhosoil:grid_mapping = "crs" ;
+ rhosoil:units = "kg/m^3" ;
+ rhosoil:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ rhosoil:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float bch(latitude, longitude) ;
bch:_FillValue = -9999.f ;
bch:grid_mapping = "crs" ;
- bch:long_name = "GDAL Band Number 1" ;
+ bch:long_name = "CLAPP-HORNBERGER B COEFFICIENT" ;
+ bch:units = "1" ;
+ bch:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ bch:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float hyds(latitude, longitude) ;
hyds:_FillValue = -9999.f ;
hyds:grid_mapping = "crs" ;
- hyds:long_name = "GDAL Band Number 1" ;
+ hyds:long_name = "SAT SOIL CONDUCTIVITY" ;
+ hyds:units = "m/s" ;
+ hyds:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ hyds:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float ssat(latitude, longitude) ;
ssat:_FillValue = -9999.f ;
ssat:grid_mapping = "crs" ;
- ssat:long_name = "GDAL Band Number 1" ;
+ ssat:long_name = "VOL SMC AT SATURATION" ;
+ ssat:units = "1" ;
+ ssat:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ ssat:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float swilt(latitude, longitude) ;
swilt:_FillValue = -9999.f ;
swilt:grid_mapping = "crs" ;
- swilt:long_name = "GDAL Band Number 1" ;
+ swilt:long_name = "VOL SMC AT WILTING" ;
+ swilt:units = "1" ;
+ swilt:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ swilt:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
float sucs(latitude, longitude) ;
sucs:_FillValue = -9999.f ;
sucs:grid_mapping = "crs" ;
- sucs:long_name = "GDAL Band Number 1" ;
+ sucs:long_name = "SATURATED SOIL WATER SUCTION" ;
+ sucs:units = "m" ;
+ sucs:comment = "Data provided from the Atlas of Australian Soils (digital)" ;
+ sucs:references = "https://doi.org/10.25919/5df03e991672d and https://publications.csiro.au/publications/publication/PIlegacy:889" ;
int mvg(latitude, longitude) ;
mvg:_FillValue = -9999 ;
mvg:grid_mapping = "crs" ;
- mvg:long_name = "GDAL Band Number 1" ;
+ mvg:long_name = "NVIS MAJOR VEGETATION GROUP (V5.0)" ;
+ mvg:comment = "Data provided from National Vegetation Information System (NVIS)" ;
+ mvg:references = "https://www.dcceew.gov.au/environment/land/native-vegetation/national-vegetation-information-system/data-products#mvg5" ;
float c4frac(latitude, longitude) ;
- c4frac:long_name = "GDAL Band Number 1" ;
+ c4frac:long_name = "FRACTIONAL COVER OF C4 GRASS" ;
c4frac:_FillValue = -9999.f ;
c4frac:grid_mapping = "crs" ;
- int modis_igbp(latitude, longitude) ;
- modis_igbp:_FillValue = -9999 ;
- modis_igbp:grid_mapping = "crs" ;
- modis_igbp:long_name = "GDAL Band Number 1" ;
- float avgannmax_fapar(latitude, longitude) ;
- avgannmax_fapar:long_name = "GDAL Band Number 1" ;
- avgannmax_fapar:_FillValue = -9999.f ;
- avgannmax_fapar:grid_mapping = "crs" ;
+ c4frac:units = "1" ;
+ c4frac:references = "https://doi.org/10.5194/bg-10-2011-2013 following https://doi.org/10.1007/BF00379569" ;
// global attributes:
:title = "CABLE gridinfo file reconciled with CRU forcing" ;
:introduction = "reconciled to CRU forcing landmask; based on interpolated gridinfo 0.5x0.5 interpolated from CABLE 1x1 gridinfo" ;
:production = "Lei.Cheng@csiro.au & Chris.Lu@csiro.au" ; |
abhaasgoyal
added a commit
to CABLE-LSM/CABLE
that referenced
this pull request
Apr 15, 2025
# CABLE ## Description Fixes #281 Aside from `climate` parameters, BIOS ancillary data is being read from the gridinfo. They are supposed to be read via a separate BLAZE NetCDF file #392 The original 0.5 degree gridinfo file ([`gridinfo_CSIRO_CRU05x05_4tiles.nc`](https://github.com/CABLE-LSM/bios_testing/blob/b45e0736cfd7fd1de1014319eb551b924542a96c/cable.nml#L4C63-L4C96)) went through 2 stages to make it compatible with reading to ancillary inputs TODO: Once these PRs are merged, point to these specific files 1. Subsampling at 0.05 degrees using script CABLE-LSM/gists#3 2. Add BIOS coastal remapping script for gridinfo to have the same mask for all input parameters. CABLE-LSM/gists#4 ## Type of change New feature ## Testing Run `act9test` and `1000pts-configuration` (TODO: provide links) to `BIOS_ancillary_netcdf` and `CABLE_POP-TRENDY` with `derived_parameters` and `check_parameter_values` being called after `cable_load_bios_params` instead of within `load_parameters`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds metadata to the BIOS gridinfo file as per discussions in CABLE-LSM/CABLE#406.