|
81 | 81 |
|
82 | 82 | % rename some fields |
83 | 83 |
|
84 | | - if strcmp(this_varname,'pfaf_index' ), this_varname = 'pfaf'; end |
85 | 84 | if strcmp(this_varname,'i_indg1' ), this_varname = 'i_indg'; end |
86 | 85 | if strcmp(this_varname,'j_indg1' ), this_varname = 'j_indg'; end |
87 | 86 | if strcmp(this_varname,'frac_cell1' ), this_varname = 'frac_cell'; end |
|
346 | 345 | tile_coord.elev = tmpNaN; % elevation of tile |
347 | 346 |
|
348 | 347 | tile_coord.area = tmpNaN; % area of "atm" grid cell |
349 | | - tile_coord.pfaf = tmpNaN; % index of (hydrological) Pfafstetter catchment |
| 348 | + tile_coord.pfaf_index = tmpNaN; % index of (hydrological) Pfafstetter catchment |
350 | 349 | tile_coord.frac_pfaf = tmpNaN; % area fraction of Pfafstetter catchment |
351 | 350 |
|
352 | 351 | if ~isEASE |
|
372 | 371 | if isEASE |
373 | 372 |
|
374 | 373 | col_area = NaN; |
375 | | - col_pfaf = 2; % land tiles only |
376 | | - col_frac_pfaf = NaN; % land tiles only |
| 374 | + col_pfafindex = 2; % land tiles only |
| 375 | + col_fracpfaf = NaN; % land tiles only |
377 | 376 |
|
378 | 377 | else |
379 | 378 |
|
380 | 379 | col_area = 2; |
381 | | - col_pfaf = 9; % land tiles only |
382 | | - col_frac_pfaf = 11; |
| 380 | + col_pfafindex = 9; % land tiles only |
| 381 | + col_fracpfaf = 11; |
383 | 382 |
|
384 | 383 | end |
385 | 384 |
|
|
390 | 389 |
|
391 | 390 | end |
392 | 391 |
|
393 | | - tile_coord.pfaf( ind_NOTocean) = tmpdata(ind_NOTocean, col_pfaf); |
| 392 | + tile_coord.pfaf_index( ind_NOTocean) = tmpdata(ind_NOTocean, col_pfafindex); |
394 | 393 |
|
395 | 394 | % ------------------------------------------------- |
396 | 395 | % |
|
401 | 400 | % |
402 | 401 | % non-EASE grid tile file: |
403 | 402 | % |
404 | | - % column 9: i_indg2 [for ocean tiles] *OR* pfaf [for non-ocean tiles] |
| 403 | + % column 9: i_indg2 [for ocean tiles] *OR* pfaf_index [for non-ocean tiles] |
405 | 404 | % column 10: j_indg2 |
406 | | - % column 11: frac_cell2 [for ocean tiles] *OR* frac_pfaf [for non-ocean tiles] |
| 405 | + % column 11: frac_cell2 [for ocean tiles] *OR* frac_pfaf [for non-ocean tiles] |
407 | 406 | % column 12: dummy_index2 |
408 | 407 |
|
409 | 408 | if ~isEASE |
410 | 409 |
|
411 | | - tile_coord.frac_pfaf( ind_NOTocean) = tmpdata(ind_NOTocean, col_frac_pfaf); |
| 410 | + tile_coord.frac_pfaf( ind_NOTocean) = tmpdata(ind_NOTocean, col_fracpfaf); |
412 | 411 |
|
413 | 412 | tile_coord.i_indg2( ind_ocean) = tmpdata(ind_ocean, 9); |
414 | 413 | tile_coord.j_indg2( ind_ocean) = tmpdata(ind_ocean, 10); |
|
430 | 429 |
|
431 | 430 | end |
432 | 431 |
|
433 | | - if ( any(tile_coord.tile_id(ind_land) - tctmp.tile_id) | ... |
434 | | - any(tile_coord.pfaf( ind_land) - tctmp.pfaf ) ... |
| 432 | + if ( any(tile_coord.tile_id( ind_land) - tctmp.tile_id ) | ... |
| 433 | + any(tile_coord.pfaf_index(ind_land) - tctmp.pfaf_index) ... |
435 | 434 | ) |
436 | 435 |
|
437 | | - error('mismatch between tile file and catchment.def file: tile_id or pfaf') |
| 436 | + error('mismatch between tile file and catchment.def file: tile_id or pfaf_index') |
438 | 437 |
|
439 | 438 | end |
440 | 439 |
|
|
0 commit comments